Clan x86

General Forums => General Discussion => Topic started by: iago on September 23, 2009, 10:27:47 AM

Title: A stick figure's guilde to AES
Post by: iago on September 23, 2009, 10:27:47 AM
http://www.moserware.com/2009/09/stick-figure-guide-to-advanced.html

How AES (advanced encryption standard) works, illustrated by stick figures!
Title: Re: A stick figure's guilde to AES
Post by: rabbit on September 23, 2009, 11:03:23 AM
Great :D
Title: Re: A stick figure's guilde to AES
Post by: Towelie on September 23, 2009, 11:43:22 AM
Yeah... the stick figures didn't help me understand it :P
Title: Re: A stick figure's guilde to AES
Post by: Camel on September 23, 2009, 12:17:14 PM
This is an awesome breakdown, very well written. I think that some of the math frames could have been made easier to understand; the notation could be overwhelming. They don't explicitly state that the 0-7 field corresponds to bits in a byte, so this frame could be interpreted as nonsense to someone who didn't get that, when in reality it's pretty simple stuff:
(http://1.bp.blogspot.com/_Zfbv3mHcYrc/Srjn2np0aSI/AAAAAAAABzE/Ds-5ZLttFEM/s576/aes_act_4_scene_08_divide_by_mx_576.png)

[edit] their choice of 0xb for the low four bits a few frames later is also confusing, since they used the same character as a variable earlier. They could have clarified that by using B instead of b.
Title: Re: A stick figure's guilde to AES
Post by: iago on September 23, 2009, 12:30:57 PM
I got lost in the math bits, but everything else was cool. :)
Title: Re: A stick figure's guilde to AES
Post by: Camel on September 23, 2009, 12:36:20 PM
I'm assuming you know the math pretty well though? Just the way they explained it was confusing?
Title: Re: A stick figure's guilde to AES
Post by: iago on September 23, 2009, 12:58:23 PM
I didn't really look. I've never dealt with the math behind encryption before, it falls in my "don't know don't care" domain.
Title: Re: A stick figure's guilde to AES
Post by: Ergot on September 23, 2009, 02:16:16 PM
Mmm, I wish all material was presented like that. So fun and educational
Title: Re: A stick figure's guilde to AES
Post by: while1 on September 23, 2009, 11:20:09 PM
Quote from: Camel on September 23, 2009, 12:36:20 PM
I'm assuming you know the math pretty well though? Just the way they explained it was confusing?

Yeah, the way they explained it is unnecessarily cluttered and confusing.  And the notation they used not very friendly to readability (i.e. the circle around a plus sign made me go WTF for a second).
Title: Re: A stick figure's guilde to AES
Post by: iago on September 23, 2009, 11:56:24 PM
Quote from: while1 on September 23, 2009, 11:20:09 PM
Quote from: Camel on September 23, 2009, 12:36:20 PM
I'm assuming you know the math pretty well though? Just the way they explained it was confusing?

Yeah, the way they explained it is unnecessarily cluttered and confusing.  And the notation they used not very friendly to readability (i.e. the circle around a plus sign made me go WTF for a second).
Circle around the plus sign is a standard symbol for 'xor' -- I assume that's what it's supposed to be?
Title: Re: A stick figure's guilde to AES
Post by: Camel on September 25, 2009, 04:00:03 PM
Yes, that's what it's supposed to be.

Quote from: iago on September 23, 2009, 12:30:57 PM
I got lost in the math bits, but everything else was cool. :)
i see wut u did there
Title: Re: A stick figure's guilde to AES
Post by: Sidoh on September 25, 2009, 04:06:08 PM
Quote from: iago on September 23, 2009, 11:56:24 PM
Quote from: while1 on September 23, 2009, 11:20:09 PM
Quote from: Camel on September 23, 2009, 12:36:20 PM
I'm assuming you know the math pretty well though? Just the way they explained it was confusing?

Yeah, the way they explained it is unnecessarily cluttered and confusing.  And the notation they used not very friendly to readability (i.e. the circle around a plus sign made me go WTF for a second).
Circle around the plus sign is a standard symbol for 'xor' -- I assume that's what it's supposed to be?

In the cryptography community, it's normally referred to as "mod 2 addition", which is, of course, equivalent to xor when we're talking about binary.
Title: Re: A stick figure's guilde to AES
Post by: Camel on September 25, 2009, 04:29:28 PM
(http://3.bp.blogspot.com/_Zfbv3mHcYrc/Srr6oWjBrxI/AAAAAAAAB0E/cqPyUXLK7hE/s576/aes_act_4_scene_06_clock_math_576.png)