Fixes for AES CTR mode from mikeb:
authorthib <thib@openbsd.org>
Thu, 22 Jul 2010 12:47:40 +0000 (12:47 +0000)
committerthib <thib@openbsd.org>
Thu, 22 Jul 2010 12:47:40 +0000 (12:47 +0000)
commit5aa80da6d9309a6b3da440a3341a051d5918f791
tree98e422ee6202b0ec1135b1e854c6eb1e5cd2957c
parent0b1a326cee1df9f0530b4d6be9d79913ee9c0b84
Fixes for AES CTR mode from mikeb:

o Fix up counter increment for buffers larger then 64 bytes, by
  calling the increment routine before loading the IV into the
  encryption routine input register.

o In aesni_encdec() regenerate the IV for every new request.

Also use nice defines instead of magic constants for the size
of ses_iv.
sys/arch/amd64/amd64/aes_intel.S
sys/arch/amd64/amd64/aesni.c