Home
last modified time | relevance | path

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

/external/boringssl/src/fipstools/
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 …]
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c233 static const uint8_t kPlaintext[64] = in BORINGSSL_self_test() local
400 AES_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &aes_key, aes_iv, in BORINGSSL_self_test()
415 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_self_test()
432 kPlaintext, sizeof(kPlaintext), NULL, 0) || in BORINGSSL_self_test()
444 !check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_self_test()
458 DES_ede3_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &des1, &des2, in BORINGSSL_self_test()
469 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_self_test()
475 SHA1(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_self_test()
482 SHA256(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_self_test()
489 SHA512(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_self_test()
/external/boringssl/src/crypto/cipher_extra/
Daead_test.cc482 static const uint8_t kPlaintext[260] = in TEST_P() local
493 std::vector<uint8_t> valid_encryption(sizeof(kPlaintext) + max_overhead); in TEST_P()
497 sizeof(kPlaintext) + max_overhead, nonce.data(), nonce_len, kPlaintext, in TEST_P()
498 sizeof(kPlaintext), nullptr, 0)) in TEST_P()
507 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P()
510 ctx.get(), out1 /* in - 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P()
511 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P()
513 ctx.get(), out2 /* in + 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P()
514 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P()
527 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P()
[all …]
/external/boringssl/src/crypto/
Dimpl_dispatch_test.cc105 const uint8_t kPlaintext[40] = {1, 2, 3, 4, 0}; in TEST_F() local
106 uint8_t ciphertext[sizeof(kPlaintext) + 16]; in TEST_F()
114 EVP_AEAD_nonce_length(EVP_aead_aes_128_gcm()), kPlaintext, in TEST_F()
115 sizeof(kPlaintext), nullptr, 0)); in TEST_F()
/external/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()