TwlIPL/build/tools/acsign/aes2.h
yosiokat 60f18e5554 新規追加。(まだビルドできない。)
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1 b08762b0-b915-fc4b-9d8c-17b2551a87ff
2007-09-06 05:28:51 +00:00

22 lines
527 B
C

#ifndef __AES_2_H__
#define __AES_2_H__
#include "aes.h"
#define AES_BLOCK_SIZE 16
#define AES_NONCE_SIZE 12
#define AES_QUANTITY (AES_BLOCK_SIZE - AES_NONCE_SIZE - 1)
#ifdef __cplusplus
extern "C" {
#endif
void AES_SetKey(AES_KEY *key, const unsigned char seed[AES_BLOCK_SIZE], const unsigned char id[AES_BLOCK_SIZE]);
void AES_Ctr(AES_KEY *key, unsigned char *outdata, const unsigned char *indata, int len, unsigned char iv[AES_BLOCK_SIZE]);
#ifdef __cplusplus
}
#endif
#endif // __AES_2_H__