Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.crypt > #50160

Re: CHAL2X

From Max <maxturv26@gmx.net>
Newsgroups sci.crypt
Subject Re: CHAL2X
Date 2021-09-26 18:42 +0200
Organization Aioe.org NNTP Server
Message-ID <siq7ua$83v$1@gioia.aioe.org> (permalink)
References (6 earlier) <sipqp0$n4l$1@dont-email.me> <sipu37$1kbj$1@gioia.aioe.org> <sipupa$kk8$1@dont-email.me> <siq2j8$1nl7$1@gioia.aioe.org> <siq50v$1s7$1@dont-email.me>

Show all headers | View raw


On 26.09.21 17:53, Richard Heathfield wrote:
> On 26/09/2021 16:11, Max wrote:
>> On 26.09.21 16:06, Richard Heathfield wrote:
>>
>> [...]
>>
>>>
>>> CDX4
>>>
>>
>> I compiled the source to "cdx4". Then, I made a plaintext-file (128 
>> "a"s) and a key-file (16 "1"s). Then I run
>>
>> # cdx4 plaintextfile.txt ciphertext keyfile.txt sbseed
> 
> Don't be root. But although that's your problem, it isn't your problem.

I'm not. Thanks for mentioning, I typed the wrong prompt.

> 
>>
>> I expected it to create a file "ciphertext" with the generated 
>> ciphertext. It doesn't. What am I doing wrong?
> 
> sbseed is a numeric seed for the PRNG, used for generating S-boxes. 
> Giving it a non-numeric is your problem.
> 
> Try, for example:
> 
> cdx4 plaintextfile.txt ciphertext keyfile.txt 12345

Cool. Works like a charm now. I thought sbseed was an option/keyword to add.

Is it correct that

plaintext: 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
(128 x a / 0x61)

key: 1111111111111111
(16 x 1 / 0x31)

seed: 12345

encrypts to:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
(128 x ? / 0x3F)

Shouldn't there be a little more diffusion?



> 
> rjh@here:~/cdx4$ hexhex h < max.in
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61
>   0A
> rjh@here:~/cdx4$ hexhex h < max.key
>   31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31
>   0A
> rjh@here:~/alldata/dev/crypto/cdx/cdx4$ ./cdx4 max.in max.out max.key 12345
> .................
> rjh@here:~/cdx4$ hexhex h < max.out
>   19 AB 60 21 BB 9F 61 CC EA C9 E5 C3 1A 4F BD 56
>   8F C9 16 CA 0B F2 31 CF 3D 2B 97 20 E1 CE DB 42
>   A6 A0 9B B9 DB 5C 4E AF 62 40 D0 9D F1 C1 13 49
>   17 50 78 98 9D 50 3E 99 55 E0 E0 48 59 D3 15 53
>   49 12 DF EB 2D 8B 7F 2C 1F 65 82 4E A3 F6 A9 15
>   53 49 12 DF EB 2D 8B DE D2 E9 A3 7B D6 35 C6 A9
>   15 5E 84 5E 10 1A CF B9 D0 62 E9 A3 78 02 2F AB
>   29 A9 67 BA DE 10 1A CC EA C9 E9 73 18 4B E0 BE
>   B6
> 
> 
> (Note 0A newlines in my plaintext and keyfile)

I purposely omitted the line-break (0x0a) at the end of the plaintext 
and the keyfile. I just wanted the input to be as plain as possible.

> 
> 

Back to sci.crypt | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-23 16:34 +0100
  Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-25 19:45 +0200
    Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-25 19:04 +0100
      Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-25 20:08 +0200
  Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-25 23:03 +0200
    Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-25 22:14 +0100
      Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 00:53 +0200
        Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 06:59 +0100
          Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 14:40 +0200
            Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 13:58 +0100
              Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 15:54 +0200
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 15:06 +0100
                Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 17:11 +0200
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 16:53 +0100
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 17:12 +0100
                Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 18:42 +0200
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 18:27 +0100
                Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 20:43 +0200
                Re: CHAL2X Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-09-26 20:41 +0100
                Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 21:46 +0200
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 20:57 +0100
                Re: CHAL2X Stefan Claas <spam.trap.usenet@gmail.com> - 2021-09-26 13:19 -0700
                Re: CHAL2X Max <maxturv26@gmx.net> - 2021-09-26 22:30 +0200
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 21:37 +0100
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 21:33 +0100
                Re: CHAL2X Stefan Claas <spam.trap.usenet@gmail.com> - 2021-09-26 13:39 -0700
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-26 20:53 +0100
                Re: CHAL2X Colin <a@b.com> - 2021-09-27 19:11 +1300
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-27 07:41 +0100
                Re: CHAL2X Colin <a@b.com> - 2021-09-27 20:02 +1300
                Re: CHAL2X Richard Heathfield <rjh@cpax.org.uk> - 2021-09-27 08:27 +0100
                Re: CHAL2X Colin <a@b.com> - 2021-09-28 20:09 +1300

csiph-web