Lines Matching refs:AES_KEY
76 AES_KEY ks;
88 AES_KEY ks;
131 const AES_KEY *key, uint8_t ivec[16], int enc);
133 const AES_KEY *key, const uint8_t ivec[16]);
142 const AES_KEY *key, uint8_t ivec[16], int enc) {
147 size_t len, const AES_KEY *key,
156 int vpaes_set_encrypt_key(const uint8_t *userKey, int bits, AES_KEY *key);
157 int vpaes_set_decrypt_key(const uint8_t *userKey, int bits, AES_KEY *key);
159 void vpaes_encrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key);
160 void vpaes_decrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key);
163 const AES_KEY *key, uint8_t *ivec, int enc);
172 AES_KEY *key) {
176 AES_KEY *key) {
179 static void vpaes_encrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key) {
182 static void vpaes_decrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key) {
186 const AES_KEY *key, uint8_t *ivec, int enc) {
193 int aesni_set_encrypt_key(const uint8_t *userKey, int bits, AES_KEY *key);
194 int aesni_set_decrypt_key(const uint8_t *userKey, int bits, AES_KEY *key);
196 void aesni_encrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key);
197 void aesni_decrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key);
200 const AES_KEY *key, int enc);
202 const AES_KEY *key, uint8_t *ivec, int enc);
208 static void aesni_encrypt(const uint8_t *in, uint8_t *out, const AES_KEY *key) {
212 AES_KEY *key) {
341 ctr128_f aes_ctr_set_key(AES_KEY *aes_key, GCM128_CONTEXT *gcm_ctx,
345 aesni_set_encrypt_key(key, key_bytes * 8, aes_key);
347 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)aesni_encrypt, 1);
356 aes_hw_set_encrypt_key(key, key_bytes * 8, aes_key);
358 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)aes_hw_encrypt, 0);
367 AES_set_encrypt_key(key, key_bytes * 8, aes_key);
369 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)AES_encrypt, 0);
378 vpaes_set_encrypt_key(key, key_bytes * 8, aes_key);
383 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)vpaes_encrypt, 0);
388 AES_set_encrypt_key(key, key_bytes * 8, aes_key);
390 CRYPTO_gcm128_init(gcm_ctx, aes_key, (block128_f)AES_encrypt, 0);
1143 AES_KEY ks;
1234 const AES_KEY *key = &gcm_ctx->ks.ks;
1292 const AES_KEY *key = &gcm_ctx->ks.ks;