Lines Matching defs:key
34 isc_aes128_crypt(const unsigned char *key, const unsigned char *in,
45 RUNTIME_CHECK(EVP_EncryptInit(c, EVP_aes_128_ecb(), key, NULL) == 1);
54 isc_aes192_crypt(const unsigned char *key, const unsigned char *in,
65 RUNTIME_CHECK(EVP_EncryptInit(c, EVP_aes_192_ecb(), key, NULL) == 1);
74 isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
85 RUNTIME_CHECK(EVP_EncryptInit(c, EVP_aes_256_ecb(), key, NULL) == 1);
98 isc_aes128_crypt(const unsigned char *key, const unsigned char *in,
103 RUNTIME_CHECK(AES_set_encrypt_key(key, 128, &k) == 0);
108 isc_aes192_crypt(const unsigned char *key, const unsigned char *in,
113 RUNTIME_CHECK(AES_set_encrypt_key(key, 192, &k) == 0);
118 isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
123 RUNTIME_CHECK(AES_set_encrypt_key(key, 256, &k) == 0);
135 static void isc_aes_crypt(const unsigned char *key, CK_ULONG keylen,
139 isc_aes128_crypt(const unsigned char *key, const unsigned char *in,
142 isc_aes_crypt(key, ISC_AES128_KEYLENGTH, in, out);
146 isc_aes192_crypt(const unsigned char *key, const unsigned char *in,
149 isc_aes_crypt(key, ISC_AES192_KEYLENGTH, in, out);
153 isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
156 isc_aes_crypt(key, ISC_AES256_KEYLENGTH, in, out);
160 isc_aes_crypt(const unsigned char *key, CK_ULONG keylen,
180 DE_CONST(key, keyTemplate[5].pValue);