Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 2 of 2) sorted by relevance

/crypto/
Dfips140-selftests.c200 const struct skcipher_testvec *vec = &test->skcipher; in fips_test_aes_library() local
205 if (WARN_ON(vec->message_size != AES_BLOCK_SIZE)) in fips_test_aes_library()
208 err = aes_expandkey(&ctx, vec->key, vec->key_size); in fips_test_aes_library()
213 aes_encrypt(&ctx, block, vec->plaintext); in fips_test_aes_library()
214 err = fips_check_result(block, vec->ciphertext, AES_BLOCK_SIZE, in fips_test_aes_library()
219 return fips_check_result(block, vec->plaintext, AES_BLOCK_SIZE, in fips_test_aes_library()
227 const struct skcipher_testvec *vec = &test->skcipher; in fips_test_skcipher() local
235 if (WARN_ON(vec->iv_size > MAX_IV_SIZE)) in fips_test_skcipher()
237 if (WARN_ON(vec->message_size <= 0)) in fips_test_skcipher()
246 if (crypto_skcipher_ivsize(tfm) != vec->iv_size) { in fips_test_skcipher()
[all …]
Dtestmgr.c1126 const struct hash_testvec *vec, in build_hash_sglist() argument
1134 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1135 kv.iov_len = vec->psize; in build_hash_sglist()
1136 iov_iter_kvec(&input, WRITE, &kv, 1, vec->psize); in build_hash_sglist()
1137 return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, in build_hash_sglist()
1143 const struct hash_testvec *vec, in check_hash_result() argument
1148 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result()
1172 static int test_shash_vec_cfg(const struct hash_testvec *vec, in test_shash_vec_cfg() argument
1190 if (vec->ksize) { in test_shash_vec_cfg()
1191 err = do_setkey(crypto_shash_setkey, tfm, vec->key, vec->ksize, in test_shash_vec_cfg()
[all …]