Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SAGE multplication in 2^8

Hi guys, I have a questions:

If I want to do the multiplication 0x09 * x where x is another number hex.

or another example, 0x0d * x, how can I do this in sage?

Because for example when I multiply by 2, I do: x=2*x if x>=256: x=(x-256)^^0x1b

the multplication is in 2⁸ Thank you very much

click to hide/show revision 2
retagged

SAGE multplication in 2^8

Hi guys, I have a questions:

If I want to do the multiplication 0x09 * x where x is another number hex.

or another example, 0x0d * x, how can I do this in sage?

Because for example when I multiply by 2, I do: x=2*x if x>=256: x=(x-256)^^0x1b

the multplication is in 2⁸ Thank you very much