Searched refs:kPlaintext (Results 1 – 4 of 4) sorted by relevance
/external/boringssl/src/fipstools/ |
D | test_fips.c | 49 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/ |
D | bcm.c | 327 static const uint8_t kPlaintext[64] = in BORINGSSL_bcm_power_on_self_test() local 486 AES_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &aes_key, aes_iv, in BORINGSSL_bcm_power_on_self_test() 500 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_bcm_power_on_self_test() 517 kPlaintext, sizeof(kPlaintext), NULL, 0) || in BORINGSSL_bcm_power_on_self_test() 528 !check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_bcm_power_on_self_test() 543 DES_ede3_cbc_encrypt(kPlaintext, output, sizeof(kPlaintext), &des1, &des2, in BORINGSSL_bcm_power_on_self_test() 554 if (!check_test(kPlaintext, output, sizeof(kPlaintext), in BORINGSSL_bcm_power_on_self_test() 560 SHA1(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_bcm_power_on_self_test() 567 SHA256(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_bcm_power_on_self_test() 574 SHA512(kPlaintext, sizeof(kPlaintext), output); in BORINGSSL_bcm_power_on_self_test()
|
/external/boringssl/src/crypto/cipher_extra/ |
D | aead_test.cc | 481 static const uint8_t kPlaintext[260] = in TEST_P() local 492 std::vector<uint8_t> valid_encryption(sizeof(kPlaintext) + max_overhead); in TEST_P() 496 sizeof(kPlaintext) + max_overhead, nonce.data(), nonce_len, kPlaintext, in TEST_P() 497 sizeof(kPlaintext), nullptr, 0)) in TEST_P() 506 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P() 509 ctx.get(), out1 /* in - 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P() 510 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P() 512 ctx.get(), out2 /* in + 1 */, &out_len, sizeof(kPlaintext) + max_overhead, in TEST_P() 513 nonce.data(), nonce_len, in, sizeof(kPlaintext), nullptr, 0)); in TEST_P() 526 OPENSSL_memcpy(in, kPlaintext, sizeof(kPlaintext)); in TEST_P() [all …]
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_test.cc | 77 static const uint8_t kPlaintext[] = "\x54\x85\x9b\x34\x2c\x49\xea\x2a"; variable 78 static const size_t kPlaintextLen = sizeof(kPlaintext) - 1; 406 sizeof(ciphertext), kPlaintext, kPlaintextLen, in TEST_P() 415 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P() 420 sizeof(ciphertext), kPlaintext, kPlaintextLen, in TEST_P() 428 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P() 435 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
|