Re: What are the chances of this encrytion being broken?

Liste des GroupesRevenir à s crypt 
Sujet : Re: What are the chances of this encrytion being broken?
De : spamcollector393 (at) *nospam* gmail.com (colin)
Groupes : sci.crypt
Date : 27. Mar 2025, 06:03:41
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vs2m7e$3f962$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
On 27/03/25 08:25, Marcel Logen wrote:
colin in sci.crypt:
 
On 26/03/25 10:54, Marcel Logen wrote:
colin in sci.crypt:
On 25/03/25 12:18, Marcel Logen wrote:
 [...]
 
The Base64 decoded 'text' has 528 bytes.
[...]
>
Possibly 33 128 bit blocks ( aes has a block size 0f 128 bits )
>
32, I think.
>
512 bytes of plaintext become 528 bytes of ciphertext
with AES256 CBC (without salt).
>
I can produce 528 bytes of ciphertext with 513 bytes of plaintext. ie an
extra block is added.
>
eg:
$ cat 512bytes.txt | aespipe -e aes256 -P password.txt | wc -c
512
$ cat 513bytes.txt | aespipe -e aes256 -P password.txt | wc -c
528
 Ah, OK. I have found the cause: the padding.
 | user15@o15:/tmp$ stat -c '%s' 512bytes.txt
| 512
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 512bytes.txt   -salt -pass pass:1234 -pbkdf2 | wc -c
| 544
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 512bytes.txt -nosalt -pass pass:1234 -pbkdf2 | wc -c
| 528
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 512bytes.txt -nosalt -pass pass:1234 -pbkdf2 -nopad | wc -c
| 512
 | user15@o15:/tmp$ stat -c '%s' 513bytes.txt
| 513
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 513bytes.txt -nosalt -pass pass:1234 -pbkdf2 | wc -c
| 528
| user15@o15:/tmp$ openssl enc -aes-256-cbc -in 513bytes.txt -nosalt -pass pass:1234 -pbkdf2 -nopad | wc -c
| bad encrypt
| 40E7A9630B7F0000:error:1C80006B:Provider routines:ossl_cipher_generic_block_final:wrong final block length:../providers/implementations/ciphers/ciphercommon.c:420:
| 512
 Marcel                                                       (Lines: 53)
Looks like it's up to the implementation of how it implements padding 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.
Colin

Date Sujet#  Auteur
24 Mar 25 * Re: What are the chances of this encrytion being broken?40The Running Man
24 Mar 25 `* Re: What are the chances of this encrytion being broken?39Richard Heathfield
24 Mar 25  `* Re: What are the chances of this encrytion being broken?38The Running Man
24 Mar 25   `* Re: What are the chances of this encrytion being broken?37Richard Heathfield
24 Mar 25    `* Re: What are the chances of this encrytion being broken?36The Running Man
24 Mar 25     `* Re: What are the chances of this encrytion being broken?35Richard Heathfield
24 Mar 25      `* Re: What are the chances of this encrytion being broken?34Chris M. Thomasson
24 Mar 25       `* Re: What are the chances of this encrytion being broken?33Stefan Claas
24 Mar 25        +- Re: What are the chances of this encrytion being broken?1Chris M. Thomasson
24 Mar 25        +* Re: What are the chances of this encrytion being broken?3Richard Heathfield
24 Mar 25        i`* Re: What are the chances of this encrytion being broken?2Chris M. Thomasson
24 Mar 25        i `- Re: What are the chances of this encrytion being broken?1Chris M. Thomasson
24 Mar 25        +* Re: What are the chances of this encrytion being broken?2Stefan Claas
24 Mar 25        i`- Re: What are the chances of this encrytion being broken?1Richard Heathfield
24 Mar 25        +* Re: What are the chances of this encrytion being broken?16Richard Heathfield
25 Mar 25        i+* Re: What are the chances of this encrytion being broken?14Marcel Logen
25 Mar 25        ii+* Re: What are the chances of this encrytion being broken?2Richard Heathfield
25 Mar 25        iii`- Re: What are the chances of this encrytion being broken?1Marcel Logen
25 Mar 25        ii`* Re: What are the chances of this encrytion being broken?11colin
25 Mar 25        ii +- Re: What are the chances of this encrytion being broken?1Richard Heathfield
25 Mar 25        ii `* Re: What are the chances of this encrytion being broken?9Marcel Logen
26 Mar 25        ii  +* Re: What are the chances of this encrytion being broken?2Richard Heathfield
26 Mar 25        ii  i`- Re: What are the chances of this encrytion being broken?1colin
26 Mar 25        ii  `* Re: What are the chances of this encrytion being broken?6colin
26 Mar 25        ii   `* Re: What are the chances of this encrytion being broken?5Marcel Logen
27 Mar 25        ii    `* Re: What are the chances of this encrytion being broken?4colin
27 Mar 25        ii     `* Re: What are the chances of this encrytion being broken?3Marcel Logen
28 Mar 25        ii      `* Re: What are the chances of this encrytion being broken?2colin
29 Mar 25        ii       `- Re: What are the chances of this encrytion being broken?1Marcel Logen
25 Mar 25        i`- Re: What are the chances of this encrytion being broken?1Chris M. Thomasson
27 Mar 25        +* Re: What are the chances of this encrytion being broken?4Peter Fairbrother
27 Mar 25        i+* Re: What are the chances of this encrytion being broken?2Peter Fairbrother
27 Mar 25        ii`- Re: What are the chances of this encrytion being broken?1Richard Heathfield
27 Mar 25        i`- Re: What are the chances of this encrytion being broken?1Chris M. Thomasson
27 Mar 25        `* Re: What are the chances of this encrytion being broken?6Peter Fairbrother
9 Apr 25         `* Re: What are the chances of this encrytion being broken?5Mini Mailer
11 Apr 25          `* Re: What are the chances of this encrytion being broken?4Peter Fairbrother
11 Apr 25           `* Re: What are the chances of this encrytion being broken?3Mini Mailer
11 Apr 25            `* Re: What are the chances of this encrytion being broken?2Peter Fairbrother
11 Apr 25             `- Re: What are the chances of this encrytion being broken?1Mini Mailer

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal