Jump to content

A Statistical Test Suite for Random and Pseudorandom Number Generators by NIST

- - - - -

  • This topic is locked This topic is locked
5 replies to this topic

#1
slowflake

slowflake

    Newbie

  • Members
  • Pip
  • 1 posts
Hi all,
I am doing an MSc project in cryptography and trying to develop a good pseudorandom number generator for a stream cipher.

Today probably the best package of tests for pseudorandom numbers is created by NIST.
The latest revisions were done on an Apple MacBook Pro with an Intel Core 2 Duo processor using the gcc compiler.

It said in the documentation (section 5.3) that one of the properties is the "Platform Independence: The source code was written in ANSI C. However, some modification may have to be made, depending on the target platform and the compiler."

and

"Portability:With minor modifications, source code may be ported to different platforms. The
NIST source code was ported to a Windows XP system running Visual Studio 2005 compiler and
a Ubuntu Linux system running gcc."

However, I am using windows seven and I have visual studio 2010 on my computer. A have no idea how to compile the source code.

Could you please give me the instructions how I can do it? Or it would be great if you could compile the code for windows and upload it somewhere!

I will appreciate any help! Thank you very much

Edited by slowflake, 09 September 2010 - 06:08 AM.


#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
If you have the source directory, just create a new project, add the files to the project (preferably the whole folder at once), and compile it.
sudo rm -rf /

#3
dbug

dbug

    Programmer

  • Members
  • PipPipPipPip
  • 155 posts
You can create a new "Win32 Console Application" checking the option "Empty project" in the wizard. It compiles with some warnings that can be removed changing some options but are not critical. Additionally I would change the encoding to multibyte instead of unicode, and use C compiler instead of C++, but it's possible this is not necessary.

The problematic part are the functions erf and erfc that don't exist in the Microsoft's math library. One solution is to integrate its implementation into the code (here is a fragment of code implementing those functions) or using some other math library that implements them (searching with google you can find some).

I haven't tried it, so I don't know if these changes will be enough to get the final executable working as it's supposed to do...

#4
samkkk

samkkk

    Newbie

  • Members
  • Pip
  • 5 posts

slowflake said:

Hi all,
I am doing an MSc project in cryptography and trying to develop a good pseudorandom number generator for a stream cipher.

Today probably the best package of tests for pseudorandom numbers is created by NIST.
The latest revisions were done on an Apple MacBook Pro with an Intel Core 2 Duo processor using the gcc compiler.

It said in the documentation (section 5.3) that one of the properties is the "Platform Independence: The source code was written in ANSI C. However, some modification may have to be made, depending on the target platform and the compiler."

and

"Portability:With minor modifications, source code may be ported to different platforms. The
NIST source code was ported to a Windows XP system running Visual Studio 2005 compiler and
a Ubuntu Linux system running gcc."

However, I am using windows seven and I have visual studio 2010 on my computer. A have no idea how to compile the source code.

Could you please give me the instructions how I can do it? Or it would be great if you could compile the code for windows and upload it somewhere!

I will appreciate any help! Thank you very much

I'm new to this program (A Statistical Test Suite for Random and Pseudorandom Number Generators by NIST). So, can someone please help me with how to compile and run this program on Ubuntu 10.04?

#5
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Hey samkkk! Welcome to CodeCall. :)

Just an FYI, please don't revive threads more than a month old. The original people involved have probably moved on to other problems, and it pushes down newer active threads in the list. Next time please start your own thread. Don't worry, everyone makes this mistake when they first join. I did multiple times. :D

As for your question, I'm not entirely sure what you mean by "help."
sudo rm -rf /

#6
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200

dargueta said:

Hey samkkk! Welcome to CodeCall. :)

Just an FYI, please don't revive threads more than a month old. The original people involved have probably moved on to other problems, and it pushes down newer active threads in the list. Next time please start your own thread. Don't worry, everyone makes this mistake when they first join. I did multiple times. :D

As for your question, I'm not entirely sure what you mean by "help."

I've moved his non-moderated post here: http://forum.codecal...ators-nist.html
I suppose he was confused and made another thread. I instructed him to use that one.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users