Lines Matching defs:key
638 AES_KEY *key);
643 * Expand the cipher key into the encryption key schedule.
647 AES_KEY *key)
653 if (!userKey || !key)
658 rk = key->rd_key;
661 key->rounds = 10;
663 key->rounds = 12;
665 key->rounds = 14;
746 AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key)
748 return aes_set_encrypt_key_internal(userKey, bits, key);
754 AES_KEY *key);
758 * Expand the cipher key into the decryption key schedule.
762 AES_KEY *key)
769 status = AES_set_encrypt_key(userKey, bits, key);
773 rk = key->rd_key;
776 for (i = 0, j = 4 * (key->rounds); i < j; i += 4, j -= 4) {
791 for (i = 1; i < (key->rounds); i++) {
819 AES_set_decrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key)
821 return aes_set_decrypt_key_internal(userKey, bits, key);
827 const AES_KEY *key);
835 const AES_KEY *key)
843 rk = key->rd_key;
847 * and add initial round key:
899 if (key->rounds > 10) {
910 if (key->rounds > 12) {
923 rk += key->rounds << 2;
928 r = key->rounds >> 1;
1022 AES_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key)
1024 aes_encrypt_internal(in, out, key);
1030 const AES_KEY *key);
1038 const AES_KEY *key)
1046 rk = key->rd_key;
1050 * and add initial round key:
1102 if (key->rounds > 10) {
1113 if (key->rounds > 12) {
1126 rk += key->rounds << 2;
1131 r = key->rounds >> 1;
1225 AES_decrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key)
1227 aes_decrypt_internal(in, out, key);