Lines Matching refs:cbc_tfm

530 	struct crypto_sync_skcipher *cts_tfm, *cbc_tfm;  in rfc3962_encrypt_case()  local
541 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc3962_encrypt_case()
542 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cbc_tfm); in rfc3962_encrypt_case()
543 err = crypto_sync_skcipher_setkey(cbc_tfm, param->Ke->data, param->Ke->len); in rfc3962_encrypt_case()
564 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, in rfc3962_encrypt_case()
582 crypto_free_sync_skcipher(cbc_tfm); in rfc3962_encrypt_case()
1117 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in rfc6803_encrypt_case() local
1147 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc6803_encrypt_case()
1148 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cbc_tfm); in rfc6803_encrypt_case()
1149 err = crypto_sync_skcipher_setkey(cbc_tfm, Ke.data, Ke.len); in rfc6803_encrypt_case()
1190 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, NULL, 0); in rfc6803_encrypt_case()
1209 crypto_free_sync_skcipher(cbc_tfm); in rfc6803_encrypt_case()
1612 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in rfc8009_encrypt_case() local
1641 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in rfc8009_encrypt_case()
1642 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cbc_tfm); in rfc8009_encrypt_case()
1643 err = crypto_sync_skcipher_setkey(cbc_tfm, Ke.data, Ke.len); in rfc8009_encrypt_case()
1681 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, NULL, 0); in rfc8009_encrypt_case()
1702 crypto_free_sync_skcipher(cbc_tfm); in rfc8009_encrypt_case()
1787 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in encrypt_selftest_case() local
1798 cbc_tfm = crypto_alloc_sync_skcipher(gk5e->aux_cipher, 0, 0); in encrypt_selftest_case()
1799 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cbc_tfm); in encrypt_selftest_case()
1800 err = crypto_sync_skcipher_setkey(cbc_tfm, param->Ke->data, param->Ke->len); in encrypt_selftest_case()
1809 crypto_sync_skcipher_blocksize(cbc_tfm)), in encrypt_selftest_case()
1820 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, NULL, 0); in encrypt_selftest_case()
1822 err = krb5_cbc_cts_decrypt(cts_tfm, cbc_tfm, 0, &buf); in encrypt_selftest_case()
1835 crypto_free_sync_skcipher(cbc_tfm); in encrypt_selftest_case()