Ask Your Question

mimoo's profile - activity

2023-06-07 11:12:37 +0200 received badge  Famous Question (source)
2022-10-09 16:35:12 +0200 received badge  Notable Question (source)
2022-10-09 16:35:12 +0200 received badge  Popular Question (source)
2021-01-19 15:50:48 +0200 received badge  Notable Question (source)
2021-01-19 15:50:48 +0200 received badge  Popular Question (source)
2020-07-23 14:59:43 +0200 received badge  Famous Question (source)
2020-03-09 20:11:40 +0200 received badge  Notable Question (source)
2017-08-10 18:19:17 +0200 received badge  Popular Question (source)
2017-01-27 12:46:38 +0200 answered a question Error when trying to input an 8-bit Sbox into the argument of S = mq.SBox(.)

I know this is old, but pass out the arguments as a list of numbers instead of a list of arguments. Example with the AES Sbox:

S = mq.SBox([0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16])
2016-12-15 05:33:04 +0200 commented answer exponentiation of 2k-bit number

awesome! TIL

2016-12-15 04:20:15 +0200 asked a question exponentiation of 2k-bit number

Hello all,

I'm trying to to do N^(0.26) with N a 2k-bit number. And what I get is "inf" :/

N = 0x367198d6b5614e95813add8f22a4717bc72be1eabd933d1b86944fdb75b8ed230be62d7d1b69d222095c128c86f82012ecb116191fd9d018a6d02f84db27bc51a21307dc86f4bf771c691c143e5abe549b5bd2d6eb1a21fd6270e7e1b48fe0611fbb2e1b0b3524e6f4de8b4e4a345da44a13de825b72608db6c7c4a40b78266e6c87bbfdef6b48381d49c4507a58bcd47b76d64b45908b158bd7ebc4dacb0b1cfd6c2c19574f40eb2efd0e9e10dc7005cad39bcaf52b9eac3873368d69031c5e724684a44f068efd1d3dc096d9b5d6411e58bdee43e46b99a0d0494b9db28195af901aff130d4a6e203dad08da57fa7e40262a5badb2a323eda28b44696ab305d
delta = float(0.26)

print N^delta

this will print inf

2015-05-20 22:14:50 +0200 received badge  Popular Question (source)
2015-05-20 22:14:50 +0200 received badge  Famous Question (source)
2015-05-20 22:14:50 +0200 received badge  Notable Question (source)
2015-05-20 22:11:32 +0200 asked a question Get decomposition of vector in basis

Hey!

I have a matrix that represents my basis (it's actually a lattice so the vectors are rows, but it's not important I can transpose)

I have a vector aa in a canonical basis, I want to know what's the linear combination in R of my lattice's vectors that gives my vector aa

2015-03-10 17:09:43 +0200 asked a question How to know if [program] is still running? (LLL to be precise)

I have not a lot of experience in running programs that take several hours to end.

I'm running an attack which complexity is dominated by the LLL function

It has been running for several hours now and I have no idea how well it's doing, or if the thing just crashed (I'm using sage in a virtualbox)

I've seen some people talking about syslog to continuously log

But I'm sure some people here have been in my situation and could share some light on this problem :)

David

2015-03-04 16:13:08 +0200 received badge  Nice Question (source)
2015-03-03 18:26:48 +0200 received badge  Supporter (source)
2015-03-03 18:26:45 +0200 commented answer substitute x*y by u

it works! magic

2015-03-01 21:11:21 +0200 received badge  Student (source)
2015-03-01 02:16:06 +0200 commented question substitute x*y by u
2015-02-28 19:10:59 +0200 received badge  Editor (source)
2015-02-28 19:00:54 +0200 asked a question substitute x*y by u

Hi there!

I have a polynomial $f(x,y) = xy + x^2y^2 + x*y^2$

I want to substitute $x*y$ instances by a new unknown $u$ (s.t. $u = x * y$)

This is how I proceeded:

# this is the default code
P.<x, y> = PolynomialRing(Zmod(5))
f = x*y + x^2*y^2 + x*y^2
# now I want to introduce the substitution so I have a f(x,y,u)
new_ring.<x,y,u> = PolynomialRing(ZZ)
ff = f.sub(x*y = u)

Of course this code doesn't work... Any idea what I could do?

2015-02-28 18:55:09 +0200 commented answer how to get doc for object methods in sage

yep thanks a lot!

2015-02-28 18:54:59 +0200 received badge  Scholar (source)
2015-02-04 21:54:19 +0200 asked a question how to get doc for object methods in sage

Hi, I don't know if my question is clear but

to get the doc for a function I usually type "isprime?" for example

but for a method like small_roots that is used like this : "f.small_roots()" I cannot find the doc by typing "small_roots?" in sage.

Any idea?