Lines Matching refs:key
88 ENCRYPT(&ctx->key, len, out, in); \
98 DECRYPT(&ctx->key, len, out, in); \
117 cbc_encrypt(&ctx->key, ENCRYPT, BLEN, ctx->iv, len, out, in); \
127 cbc_decrypt(&ctx->key, DECRYPT, BLEN, ctx->iv, len, out, in); \
146 ctr_crypt(&ctx->key, ENCRYPT, BLEN, ctx->iv, len, out, in); \
176 xts_encrypt(&ctx->key, &ctx->key_xts, \
188 xts_decrypt(&ctx->key, &ctx->key_xts, \
202 xts_encrypt_message(&ctx->key, &ctx->key_xts, ENCRYPT, \
213 xts_decrypt_message(&ctx->key, &ctx->key_xts, DECRYPT, ENCRYPT, \
243 struct des_ctx key;
265 struct des3_ctx key;
288 /* First key from pair is encode, second key is decode. */
289 struct aes128_ctx key[2], key_xts[2];
314 /* First key from pair is encode, second key is decode. */
315 struct aes192_ctx key[2], key_xts[2];
340 /* First key from pair is encode, second key is decode. */
341 struct aes256_ctx key[2], key_xts[2];
366 struct cast128_ctx key, key_xts;
389 struct serpent_ctx key, key_xts;
413 struct twofish_ctx key, key_xts;
435 struct sm4_ctx key[2];
494 const uint8_t *key,
534 des_set_key(&ctx->key, key);
560 des3_set_key(&ctx->key, key);
581 aes128_set_encrypt_key(&ctx->key_xts[0], key + nkey);
582 aes128_set_decrypt_key(&ctx->key_xts[1], key + nkey);
587 aes128_set_encrypt_key(&ctx->key[0], key);
588 aes128_set_decrypt_key(&ctx->key[1], key);
610 aes192_set_encrypt_key(&ctx->key_xts[0], key + nkey);
611 aes192_set_decrypt_key(&ctx->key_xts[1], key + nkey);
616 aes192_set_encrypt_key(&ctx->key[0], key);
617 aes192_set_decrypt_key(&ctx->key[1], key);
639 aes256_set_encrypt_key(&ctx->key_xts[0], key + nkey);
640 aes256_set_decrypt_key(&ctx->key_xts[1], key + nkey);
645 aes256_set_encrypt_key(&ctx->key[0], key);
646 aes256_set_decrypt_key(&ctx->key[1], key);
672 cast5_set_key(&ctx->key, nkey, key);
696 serpent_set_key(&ctx->key_xts, nkey, key + nkey);
701 serpent_set_key(&ctx->key, nkey, key);
725 twofish_set_key(&ctx->key_xts, nkey, key + nkey);
730 twofish_set_key(&ctx->key, nkey, key);
750 sm4_set_encrypt_key(&ctx->key[0], key);
751 sm4_set_decrypt_key(&ctx->key[1], key);