aes_glue.h 555 B

1234567891011121314151617181920
  1. #define AES_MAXNR 14
  2. struct AES_KEY {
  3. unsigned int rd_key[4 * (AES_MAXNR + 1)];
  4. int rounds;
  5. };
  6. struct AES_CTX {
  7. struct AES_KEY enc_key;
  8. struct AES_KEY dec_key;
  9. };
  10. asmlinkage void AES_encrypt(const u8 *in, u8 *out, struct AES_KEY *ctx);
  11. asmlinkage void AES_decrypt(const u8 *in, u8 *out, struct AES_KEY *ctx);
  12. asmlinkage int private_AES_set_decrypt_key(const unsigned char *userKey,
  13. const int bits, struct AES_KEY *key);
  14. asmlinkage int private_AES_set_encrypt_key(const unsigned char *userKey,
  15. const int bits, struct AES_KEY *key);