Liste des Groupes | Revenir à s crypt |
colin in sci.crypt:I think I have got my head around it now.
[...]
Looks like it's up to the implementation of how it implements padding| user15@o15:/tmp$ stat -c '%s' 511bytes.txt
and how many bytes it requires to do it.
>
$ openssl enc -aes-256-cbc -in 511bytes.txt -pass pass:1234 -pbkdf2 | wc -c
528
$ cat 511bytes.txt | aespipe -e aes256 -P password.txt | wc -c
512
>
The way I understand it is AES is only a basic building block that takes
a 128bit block and scrambles it to a different 128bit block.
All the other building blocks ( eg: salt, IV, padding, mode of operation
etc ) are added in to suit what the implementation requires.
| 511
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 511bytes.txt -pass pass:1234 -pbkdf2 | wc -c
| 528
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 511bytes.txt -pass pass:1234 -pbkdf2 -nosalt | wc -c
| 512
-nosalt => 512
Les messages affichés proviennent d'usenet.