Thread Crypt::Rijndael und die blocksize (4 answers)
Opened by styx-cc at 2007-11-25 04:11

GwenDragon
 2007-11-25 13:42
#102974 #102974
User since
2005-01-17
14555 Artikel
Admin1
[Homepage]
user image
Quote
keysize

Returns the keysize, which is 32 (bytes). The Rijndael cipher actually supports keylengths of 16, 24 or 32 bytes, but there is no way to communicate this to Crypt::CBC.
http://search.cpan.org/~bdfoy/Crypt-Rijndael-1.05/...

und da CPAN:Crypt-CBC verwendet wird, das eine Blockgröße von 16 Byte standardgemäß verwendet.

Quote
When the last block of plaintext is shorter than the block size, it must be padded. Padding methods include: "standard" (i.e., PKCS#5), "oneandzeroes", "space", and "null".

http://search.cpan.org/~lds/Crypt-CBC-2.24/CBC.pm#...

Du musst also "nachfüllen".

Warum rufts du nicht gleich Crypt-CBC auf?
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread Crypt::Rijndael und die blocksize