Home
last modified time | relevance | path

Searched refs:plaintext (Results 1 - 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/crypto/
H A Dtestmgr.h30 * @plaintext: Pointer to source data
39 const char *plaintext; member
53 * @ptext: Pointer to plaintext
83 * @ptext: Pointer to plaintext
2825 .plaintext = "",
2829 .plaintext = "a",
2834 .plaintext = "abc",
2839 .plaintext = "message digest",
2844 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2849 .plaintext
[all...]
H A Danubis.c573 u8 *ciphertext, const u8 *plaintext, const int R) in anubis_crypt()
575 const __be32 *src = (const __be32 *)plaintext; in anubis_crypt()
582 * map plaintext block to cipher state (mu) in anubis_crypt()
572 anubis_crypt(u32 roundKey[ANUBIS_MAX_ROUNDS + 1][4], u8 *ciphertext, const u8 *plaintext, const int R) anubis_crypt() argument
H A Dkhazad.c803 u8 *ciphertext, const u8 *plaintext) in khazad_crypt()
805 const __be64 *src = (const __be64 *)plaintext; in khazad_crypt()
802 khazad_crypt(const u64 roundKey[KHAZAD_ROUNDS + 1], u8 *ciphertext, const u8 *plaintext) khazad_crypt() argument
H A Dtestmgr.c1131 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1603 generate_random_bytes((u8 *)vec->plaintext, vec->psize); in generate_random_hash_testvec()
1625 vec->digest_error = crypto_shash_digest(desc, vec->plaintext, in generate_random_hash_testvec()
1722 vec.plaintext = kmalloc(maxdatasize, GFP_KERNEL); in test_hash_vs_generic_impl()
1724 if (!vec.key || !vec.plaintext || !vec.digest) { in test_hash_vs_generic_impl()
1745 kfree(vec.plaintext); in test_hash_vs_generic_impl()
2091 /* Check for the correct output (ciphertext or plaintext) */ in test_aead_vec_cfg()
2226 /* Generate a random plaintext and encrypt it. */ in generate_aead_message()
2300 /* AAD, plaintext, and ciphertext lengths */ in generate_random_aead_testvec()
2310 * Generate the AAD, plaintext, an in generate_random_aead_testvec()
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dtestmgr.h30 * @plaintext: Pointer to source data
40 const char *plaintext; member
55 * @ptext: Pointer to plaintext
85 * @ptext: Pointer to plaintext
4410 .plaintext = "",
4414 .plaintext = "a",
4419 .plaintext = "abc",
4424 .plaintext = "message digest",
4429 .plaintext = "abcdefghijklmnopqrstuvwxyz",
4434 .plaintext
[all...]
H A Dkhazad.c803 u8 *ciphertext, const u8 *plaintext) in khazad_crypt()
805 const __be64 *src = (const __be64 *)plaintext; in khazad_crypt()
802 khazad_crypt(const u64 roundKey[KHAZAD_ROUNDS + 1], u8 *ciphertext, const u8 *plaintext) khazad_crypt() argument
H A Danubis.c573 u8 *ciphertext, const u8 *plaintext, const int R) in anubis_crypt()
575 const __be32 *src = (const __be32 *)plaintext; in anubis_crypt()
582 * map plaintext block to cipher state (mu) in anubis_crypt()
572 anubis_crypt(u32 roundKey[ANUBIS_MAX_ROUNDS + 1][4], u8 *ciphertext, const u8 *plaintext, const int R) anubis_crypt() argument
H A Dtestmgr.c1232 kv.iov_base = (void *)vec->plaintext; in build_hash_sglist()
1700 generate_random_bytes(rng, (u8 *)vec->plaintext, vec->psize); in generate_random_hash_testvec()
1722 vec->digest_error = crypto_shash_digest(desc, vec->plaintext, in generate_random_hash_testvec()
1822 vec.plaintext = kmalloc(maxdatasize, GFP_KERNEL); in test_hash_vs_generic_impl()
1824 if (!vec.key || !vec.plaintext || !vec.digest) { in test_hash_vs_generic_impl()
1846 kfree(vec.plaintext); in test_hash_vs_generic_impl()
2194 /* Check for the correct output (ciphertext or plaintext) */ in test_aead_vec_cfg()
2336 /* Generate a random plaintext and encrypt it. */ in generate_aead_message()
2411 /* AAD, plaintext, and ciphertext lengths */ in generate_random_aead_testvec()
2421 * Generate the AAD, plaintext, an in generate_random_aead_testvec()
[all...]
/kernel/linux/linux-6.6/net/sunrpc/auth_gss/
H A Dgss_krb5_test.c30 const struct xdr_netobj *plaintext; member
76 .head[0].iov_len = param->plaintext->len, in checksum_case()
77 .len = param->plaintext->len, in checksum_case()
103 memcpy(buf.head[0].iov_base, param->plaintext->data, buf.head[0].iov_len); in checksum_case()
235 .plaintext = &nfold_test1_plaintext,
241 .plaintext = &nfold_test2_plaintext,
247 .plaintext = &nfold_test3_plaintext,
253 .plaintext = &nfold_test4_plaintext,
259 .plaintext = &nfold_test5_plaintext,
265 .plaintext
[all...]
/kernel/linux/linux-6.6/drivers/virt/coco/sev-guest/
H A Dsev-guest.c228 * | msg header | plaintext | hdr->authtag | in enc_dec_message()
255 void *plaintext, size_t len) in __enc_payload()
263 return enc_dec_message(crypto, msg, plaintext, msg->payload, len, true); in __enc_payload()
267 void *plaintext, size_t len) in dec_payload()
276 return enc_dec_message(crypto, msg, msg->payload, plaintext, len, false); in dec_payload()
254 __enc_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, void *plaintext, size_t len) __enc_payload() argument
266 dec_payload(struct snp_guest_dev *snp_dev, struct snp_guest_msg *msg, void *plaintext, size_t len) dec_payload() argument
/kernel/linux/linux-5.10/net/bluetooth/
H A Damp.c128 static int hmac_sha256(u8 *key, u8 ksize, char *plaintext, u8 psize, u8 *output) in hmac_sha256() argument
158 ret = crypto_shash_digest(shash, plaintext, psize, output); in hmac_sha256()
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Daesni-intel_asm.S374 # (r13 is the number of bytes in plaintext mod 16)
666 # r16-r13 is the number of bytes in plaintext mod 16)
780 * if a = number of total plaintext bytes
837 # write back plaintext/ciphertext for num_initial_blocks
845 # prepare plaintext/ciphertext for GHASH computation
1331 movdqu \XMM1, (%arg3,%r11,1) # Write to plaintext buffer
1335 movdqu \XMM2, 16(%arg3,%r11,1) # Write to plaintext buffer
1339 movdqu \XMM3, 32(%arg3,%r11,1) # Write to plaintext buffer
1343 movdqu \XMM4, 48(%arg3,%r11,1) # Write to plaintext buffer
1528 * // given authentication tag and only return the plaintext i
[all...]
H A Daesni-intel_avx-x86_64.S309 mov arg5, %r13 # save the number of bytes of plaintext/ciphertext
451 # number of bytes in plaintext mod 16)
467 # (r13 is the number of bytes in plaintext mod 16)
775 # r16-r13 is the number of bytes in plaintext mod 16)
994 ## if a = number of total plaintext bytes
1942 ## if a = number of total plaintext bytes
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Daesni-intel_asm.S370 # (r13 is the number of bytes in plaintext mod 16)
662 # r16-r13 is the number of bytes in plaintext mod 16)
776 * if a = number of total plaintext bytes
833 # write back plaintext/ciphertext for num_initial_blocks
841 # prepare plaintext/ciphertext for GHASH computation
1327 movdqu \XMM1, (%arg3,%r11,1) # Write to plaintext buffer
1331 movdqu \XMM2, 16(%arg3,%r11,1) # Write to plaintext buffer
1335 movdqu \XMM3, 32(%arg3,%r11,1) # Write to plaintext buffer
1339 movdqu \XMM4, 48(%arg3,%r11,1) # Write to plaintext buffer
1524 * // given authentication tag and only return the plaintext i
[all...]
H A Daesni-intel_avx-x86_64.S275 mov arg5, %r13 # save the number of bytes of plaintext/ciphertext
417 # number of bytes in plaintext mod 16)
433 # (r13 is the number of bytes in plaintext mod 16)
743 # r16-r13 is the number of bytes in plaintext mod 16)
962 ## if a = number of total plaintext bytes
1910 ## if a = number of total plaintext bytes

Completed in 36 milliseconds