Lines Matching refs:aeskey
538 AES_KEY *aeskey) { in aes_nohw_set_encrypt_key() argument
543 if (!key || !aeskey) { in aes_nohw_set_encrypt_key()
549 aeskey->rounds = 10; in aes_nohw_set_encrypt_key()
552 aeskey->rounds = 12; in aes_nohw_set_encrypt_key()
555 aeskey->rounds = 14; in aes_nohw_set_encrypt_key()
561 rk = aeskey->rd_key; in aes_nohw_set_encrypt_key()
634 AES_KEY *aeskey) { in aes_nohw_set_decrypt_key() argument
640 status = AES_set_encrypt_key(key, bits, aeskey); in aes_nohw_set_decrypt_key()
645 rk = aeskey->rd_key; in aes_nohw_set_decrypt_key()
648 for (i = 0, j = 4 * aeskey->rounds; i < j; i += 4, j -= 4) { in aes_nohw_set_decrypt_key()
664 for (i = 1; i < (int)aeskey->rounds; i++) { in aes_nohw_set_decrypt_key()
836 int AES_set_encrypt_key(const uint8_t *key, unsigned bits, AES_KEY *aeskey) { in AES_set_encrypt_key() argument
838 return aes_hw_set_encrypt_key(key, bits, aeskey); in AES_set_encrypt_key()
840 return vpaes_set_encrypt_key(key, bits, aeskey); in AES_set_encrypt_key()
842 return aes_nohw_set_encrypt_key(key, bits, aeskey); in AES_set_encrypt_key()
846 int AES_set_decrypt_key(const uint8_t *key, unsigned bits, AES_KEY *aeskey) { in AES_set_decrypt_key() argument
848 return aes_hw_set_decrypt_key(key, bits, aeskey); in AES_set_decrypt_key()
850 return vpaes_set_decrypt_key(key, bits, aeskey); in AES_set_decrypt_key()
852 return aes_nohw_set_decrypt_key(key, bits, aeskey); in AES_set_decrypt_key()