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 : 333200007110-0201 (at) *nospam* ybtra.de (Marcel Logen)
Groupes : sci.crypt
Date : 26. Mar 2025, 20:25:25
Autres entêtes
Organisation : Bureau Logen
Message-ID : <20250326we192526@o15.ybtra.de>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : geLogen/28 (ZmxuZXdzLzEuMy4wcHJlMjggKGZvciBHTlUvTGludXgp)
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)
--
  ╭─────╮  ╭──╮    ╭───╮  ╭─────╮  ╭───╮ ╭─╮  ╭────╮    ╭──────╮    ╭───
──╯     ╰──╯  ╰─╮  ╰─╮ ╰──╯  ╭──╯  ╰─╮ ╰─╯ │  ╰──╮ ╰─╮  ╰───╮  ╰─╮  ╰──╮
       ...8..╭──╯ ╭──╯     ╭─╯     ╭─╯  ╭──╯  ╭──╯   ╰─╮ ╭──╯  ╭─╯   ╭─╯
             ╰────╯        ╰───────╯    ╰─────╯  ..50..╰─╯     ╰─────╯ 

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