3 setupAESstate, aesCBCencrypt, aesCBCdecrypt, setupAESXCBCstate, aesXCBCmac - advanced encryption standard (rijndael)
11 .B #include <libsec.h>
16 void aes_encrypt(ulong rk[], int Nr, uchar pt[16], uchar ct[16]);
19 void aes_decrypt(ulong rk[], int Nr, uchar ct[16], uchar pt[16]);
22 void setupAESstate(AESstate *s, uchar key[], int keybytes, uchar *ivec)
25 void aesCBCencrypt(uchar *p, int len, AESstate *s)
28 void aesCBCdecrypt(uchar *p, int len, AESstate *s)
31 void setupAESXCBCstate(AESstate *s)
34 void aesXCBCmac(uchar *p, int len, AESstate *s)
36 AES (a.k.a. Rijndael) has replaced DES as the preferred
41 are the block ciphers, corresponding to
48 implement cipher-block-chaining encryption.
52 implement AES XCBC message authentication, per RFC 3566.
53 All ciphering is performed in place.
55 should be 16, 24, or 32.
56 The initialization vector
60 bytes should be random enough to be unlikely to be reused
61 but does not need to be
62 cryptographically strongly unpredictable.
80 .B http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
85 .IR setupAESXCBCstate ,
88 have not yet been verified by running test vectors through them.