Lines Matching refs:cts_tfm
530 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in rfc3962_encrypt_case() local
546 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc3962_encrypt_case()
547 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cts_tfm); in rfc3962_encrypt_case()
548 err = crypto_sync_skcipher_setkey(cts_tfm, param->Ke->data, param->Ke->len); in rfc3962_encrypt_case()
551 iv = kunit_kzalloc(test, crypto_sync_skcipher_ivsize(cts_tfm), GFP_KERNEL); in rfc3962_encrypt_case()
564 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, in rfc3962_encrypt_case()
565 iv, crypto_sync_skcipher_ivsize(cts_tfm)); in rfc3962_encrypt_case()
581 crypto_free_sync_skcipher(cts_tfm); in rfc3962_encrypt_case()
1117 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in rfc6803_encrypt_case() local
1152 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc6803_encrypt_case()
1153 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cts_tfm); in rfc6803_encrypt_case()
1154 err = crypto_sync_skcipher_setkey(cts_tfm, Ke.data, Ke.len); in rfc6803_encrypt_case()
1156 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in rfc6803_encrypt_case()
1190 err = krb5_cbc_cts_encrypt(cts_tfm, cbc_tfm, 0, &buf, NULL, NULL, 0); in rfc6803_encrypt_case()
1208 crypto_free_sync_skcipher(cts_tfm); in rfc6803_encrypt_case()
1612 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in rfc8009_encrypt_case() local
1646 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in rfc8009_encrypt_case()
1647 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cts_tfm); in rfc8009_encrypt_case()
1648 err = crypto_sync_skcipher_setkey(cts_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()
1683 err = krb5_etm_checksum(cts_tfm, ahash_tfm, &buf, 0, &checksum); in rfc8009_encrypt_case()
1701 crypto_free_sync_skcipher(cts_tfm); in rfc8009_encrypt_case()
1787 struct crypto_sync_skcipher *cts_tfm, *cbc_tfm; in encrypt_selftest_case() local
1803 cts_tfm = crypto_alloc_sync_skcipher(gk5e->encrypt_name, 0, 0); in encrypt_selftest_case()
1804 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, cts_tfm); in encrypt_selftest_case()
1805 err = crypto_sync_skcipher_setkey(cts_tfm, param->Ke->data, param->Ke->len); 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()
1834 crypto_free_sync_skcipher(cts_tfm); in encrypt_selftest_case()