[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-24 Thread vpv
Thanks for the useful links, Martin. I downloaded and compiled the source for Sage (3.1.2). I'll have a look at crypto/mq/sr.py and i'll try to figure how to add my code there. If i have questions i'll ask. Cheers, vpv On Sep 19, 6:48 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > >  * I'd b

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-19 Thread Martin Albrecht
> >  * I'd be very happy if you'd share your code! I would like to make sure > > that it fits into the current framework/is compatible and reuses the > > existing machinery. Are you doing that? > > I don't think so. What should I do to make my code to fit in the SAGE > framework? Maybe there are s

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-19 Thread vpv
Hi Martin, Thanks for your reply. Please, see my comments inline. On Sep 18, 12:18 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: > Hivpv, > > you can certainly post-process the first option to get an equation system in > the plaintext and key variables alone. You'll need an appropriate term > o

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-18 Thread Martin Albrecht
Hi vpv, you can certainly post-process the first option to get an equation system in the plaintext and key variables alone. You'll need an appropriate term ordering where each layer's head term is bigger than the previous layer's head term. You'll also replace the S-Box equations by direct equ

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-18 Thread vpv
Thanks for your replies, Martin. Yes, indeed I'd like to encrypt variables rather than constants. Maybe still I can use your first reply to achieve somehow my goal. You say that encrypting variables is not supported and should be added, right? For my own needs I have developed an implementation i

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-17 Thread Martin Albrecht
On Wednesday 17 September 2008, vpv wrote: > I've successfully created a 4x4 4-bit variant of SR > > sage: sr = mq.SR(1,4,4,4,allow_zero_inversions=True) > sage: sr > SR(1,4,4,4) > > Next I would like to create a plaintext/key pair, which is composed of > variables (say x0,x1,...,x15,k0,k1,...,k15

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-17 Thread Martin Albrecht
On Wednesday 17 September 2008, vpv wrote: > I've successfully created a 4x4 4-bit variant of SR > > sage: sr = mq.SR(1,4,4,4,allow_zero_inversions=True) > sage: sr > SR(1,4,4,4) > > Next I would like to create a plaintext/key pair, which is composed of > variables (say x0,x1,...,x15,k0,k1,...,k15