Home
last modified time | relevance | path

Searched refs:kPlaintext (Results 1 – 5 of 5) sorted by relevance

/third_party/boringssl/src/util/fipstools/cavp/
Dtest_fips.c49 static const uint8_t kPlaintext[64] = in main() local
78 hexdump(kPlaintext, sizeof(kPlaintext)); in main()
79 AES_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &aes_key, aes_iv, in main()
82 hexdump(output, sizeof(kPlaintext)); in main()
91 hexdump(output, sizeof(kPlaintext)); in main()
92 AES_cbc_encrypt(output, output, sizeof(kPlaintext), &aes_key, aes_iv, in main()
95 hexdump(output, sizeof(kPlaintext)); in main()
109 hexdump(output, sizeof(kPlaintext)); in main()
112 kPlaintext, sizeof(kPlaintext), NULL, 0)) { in main()
142 hexdump(kPlaintext, sizeof(kPlaintext)); in main()
[all …]
/third_party/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c284 static const uint8_t kPlaintext[64] = in boringssl_fips_self_test() local
451 AES_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &aes_key, aes_iv, in boringssl_fips_self_test()
466 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in boringssl_fips_self_test()
483 kPlaintext, sizeof(kPlaintext), NULL, 0) || in boringssl_fips_self_test()
495 !check_test(kPlaintext, output, sizeof(kPlaintext), in boringssl_fips_self_test()
509 DES_ede3_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &des1, &des2, in boringssl_fips_self_test()
520 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in boringssl_fips_self_test()
526 SHA1(kPlaintext, sizeof(kPlaintext), output); in boringssl_fips_self_test()
533 SHA256(kPlaintext, sizeof(kPlaintext), output); in boringssl_fips_self_test()
540 SHA512(kPlaintext, sizeof(kPlaintext), output); in boringssl_fips_self_test()
/third_party/boringssl/src/crypto/
Dimpl_dispatch_test.cc104 const uint8_t kPlaintext[40] = {1, 2, 3, 4, 0}; in TEST_F() local
105 uint8_t ciphertext[sizeof(kPlaintext) + 16]; in TEST_F()
113 EVP_AEAD_nonce_length(EVP_aead_aes_128_gcm()), kPlaintext, in TEST_F()
114 sizeof(kPlaintext), nullptr, 0)); in TEST_F()
/third_party/boringssl/src/crypto/cipher_extra/
Daead_test.cc484 static const uint8_t kPlaintext[260] = in TEST_P() local
495 std::vector<uint8_t> valid_encryption(sizeof(kPlaintext) + max_overhead); in TEST_P()
499 sizeof(kPlaintext) + max_overhead, nonce.data(), nonce_len, kPlaintext, in TEST_P()
500 sizeof(kPlaintext), nullptr, 0)) in TEST_P()
509 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P()
512 ctx.get(), out1 /* in - 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P()
513 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P()
515 ctx.get(), out2 /* in + 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P()
516 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P()
529 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P()
[all …]
/third_party/boringssl/src/crypto/rsa_extra/
Drsa_test.cc82 static const uint8_t kPlaintext[] = "\x54\x85\x9b\x34\x2c\x49\xea\x2a"; variable
83 static const size_t kPlaintextLen = sizeof(kPlaintext) - 1;
411 sizeof(ciphertext), kPlaintext, kPlaintextLen, in TEST_P()
420 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
425 sizeof(ciphertext), kPlaintext, kPlaintextLen, in TEST_P()
433 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
440 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()