Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:53

0001 /* Header file for use with Cryptogam's ARMv4 AES.         */
0002 /* Also see http://www.openssl.org/~appro/cryptogams/ and  */
0003 /* https://wiki.openssl.org/index.php?title=Cryptogams_AES */
0004 
0005 #ifndef CRYPTOGAMS_AES_ARMV4_H
0006 #define CRYPTOGAMS_AES_ARMV4_H
0007 
0008 #ifdef __cplusplus
0009 extern "C" {
0010 #endif
0011 
0012 //#define AES_MAXNR 14

0013 //typedef struct AES_KEY_st {

0014 //    unsigned int rd_key[4 * (AES_MAXNR + 1)];

0015 //    int rounds;

0016 //} AES_KEY;

0017 
0018 // Instead of AES_KEY we use a 'word32 rkey[4*15+4]'. It has space for

0019 // both the AES_MAXNR round keys and the number of rounds in the tail.

0020 
0021 int cryptogams_AES_set_encrypt_key(const unsigned char *userKey, const int bits, unsigned int *rkey);
0022 int cryptogams_AES_set_decrypt_key(const unsigned char *userKey, const int bits, unsigned int *rkey);
0023 void cryptogams_AES_encrypt_block(const unsigned char *in, unsigned char *out, const unsigned int *rkey);
0024 void cryptogams_AES_decrypt_block(const unsigned char *in, unsigned char *out, const unsigned int *rkey);
0025 
0026 #ifdef __cplusplus
0027 }
0028 #endif
0029 
0030 #endif  /* CRYPTOGAMS_AES_ARMV4_H */