Main Page | Report this Page
 
   
Science Forum Index  »  Cryptography Forum  »  Generating DES/3DES keys
Page 1 of 1    
Author Message
CJ
Posted: Wed Jan 28, 2004 9:51 am
Guest
Are there any guidelines or standards for generating DES (or 3DES)
keys? Is it sufficient to use something like .NET's
RNGCryptoServiceProvider(), which returns the required number of
random bytes, or is there a procedure that should be followed?
kurt wismer
Posted: Wed Jan 28, 2004 7:57 pm
Guest
CJ wrote:

Quote:
Are there any guidelines or standards for generating DES (or 3DES)
keys? Is it sufficient to use something like .NET's
RNGCryptoServiceProvider(), which returns the required number of
random bytes, or is there a procedure that should be followed?

the cryptographic service provider has a specific function for
generating keys for the algorithms it supports and DES is supported by
even the most basic of the standard ms csp's...

--
"hungry people don't stay hungry for long
they get hope from fire and smoke as the weak grow strong
hungry people don't stay hungry for long
they get hope from fire and smoke as they reach for the dawn"
CJ
Posted: Thu Jan 29, 2004 2:07 am
Guest
kurt wismer <kurtw@sympatico.ca> wrote in message news:<uUYRb.35466$mf4.1117541@news20.bellglobal.com>...
Quote:
CJ wrote:

Are there any guidelines or standards for generating DES (or 3DES)
keys? Is it sufficient to use something like .NET's
RNGCryptoServiceProvider(), which returns the required number of
random bytes, or is there a procedure that should be followed?

the cryptographic service provider has a specific function for
generating keys for the algorithms it supports and DES is supported by
even the most basic of the standard ms csp's...

That is true, but I'm trying to write a complete DES/3DES
implementation. My encryption and decryption works great, so it would
be a pity to have to use the .NET base classes just for generating
keys.
Paul Rubin
Posted: Thu Jan 29, 2004 2:30 am
Guest
cjohns@cs.uct.ac.za (CJ) writes:
Quote:
That is true, but I'm trying to write a complete DES/3DES
implementation.

Why?
CJ
Posted: Thu Jan 29, 2004 8:19 am
Guest
Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote in message news:<7xsmhz9pov.fsf@ruckus.brouhaha.com>...
Quote:
cjohns@cs.uct.ac.za (CJ) writes:
That is true, but I'm trying to write a complete DES/3DES
implementation.

Why?

Because it's at least twice as fast as the version that comes with .NET.
kurt wismer
Posted: Thu Jan 29, 2004 12:15 pm
Guest
CJ wrote:
Quote:
kurt wismer <kurtw@sympatico.ca> wrote in message news:<uUYRb.35466$mf4.1117541@news20.bellglobal.com>...
CJ wrote:

Are there any guidelines or standards for generating DES (or 3DES)
keys? Is it sufficient to use something like .NET's
RNGCryptoServiceProvider(), which returns the required number of
random bytes, or is there a procedure that should be followed?

the cryptographic service provider has a specific function for
generating keys for the algorithms it supports and DES is supported by
even the most basic of the standard ms csp's...


That is true, but I'm trying to write a complete DES/3DES
implementation. My encryption and decryption works great, so it would
be a pity to have to use the .NET base classes just for generating
keys.

the cryptographic service provider can be used with an api that
predates .NET... the .NET classes do little more than provide a managed
code wrapper around the crypto api... so if you don't want to use .NET
you don't have to... (though it sounds like you were ready to use the
..NET classes to generate pseudo random numbers in order to use as keys)

--
"hungry people don't stay hungry for long
they get hope from fire and smoke as the weak grow strong
hungry people don't stay hungry for long
they get hope from fire and smoke as they reach for the dawn"
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Fri Dec 05, 2008 2:41 am