Home
last modified time | relevance | path

Searched refs:kZeros (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/crypto/
Dimpl_dispatch_test.cc104 const uint8_t kZeros[16] = {0}; in TEST_F() local
109 ASSERT_TRUE(EVP_AEAD_CTX_init(&ctx, EVP_aead_aes_128_gcm(), kZeros, in TEST_F()
110 sizeof(kZeros), in TEST_F()
113 &ctx, ciphertext, &ciphertext_len, sizeof(ciphertext), kZeros, in TEST_F()
127 static const uint8_t kZeros[16] = {0}; in TEST_F() local
128 AES_set_encrypt_key(kZeros, sizeof(kZeros) * 8, &key); in TEST_F()
134 static const uint8_t kZeros[16] = {0}; in TEST_F() local
135 AES_set_encrypt_key(kZeros, sizeof(kZeros) * 8, &key); in TEST_F()
/external/boringssl/src/crypto/rand_extra/
Drand_test.cc46 static const uint8_t kZeros[256] = {0}; in TEST() local
53 EXPECT_NE(Bytes(buf1), Bytes(kZeros)); in TEST()
54 EXPECT_NE(Bytes(buf2), Bytes(kZeros)); in TEST()
129 static const uint8_t kZeros[16] = {0}; in TEST() local
148 EXPECT_NE(Bytes(buf1), Bytes(kZeros)); in TEST()
149 EXPECT_NE(Bytes(buf2), Bytes(kZeros)); in TEST()
150 EXPECT_NE(Bytes(buf3), Bytes(kZeros)); in TEST()
157 static const uint8_t kZeros[256] = {0}; in RunConcurrentRands() local
171 EXPECT_NE(Bytes(bufs[i]), Bytes(kZeros)); in RunConcurrentRands()
/external/boringssl/src/crypto/curve25519/
Dx25519_test.cc87 static const uint8_t kZeros[32] = {0}; in TEST() local
88 EXPECT_EQ(Bytes(kZeros), Bytes(out)); in TEST()
/external/boringssl/src/crypto/cipher_extra/
Daead_test.cc613 static const uint8_t kZeros[32] = {0}; in TEST() local
619 ASSERT_TRUE(EVP_AEAD_CTX_init(ctx.get(), EVP_aead_aes_128_gcm(), kZeros, 16, in TEST()
630 nullptr /* nonce */, 0, kZeros /* in */, in TEST()
631 sizeof(kZeros), nullptr /* ad */, 0)); in TEST()
638 ASSERT_TRUE(EVP_AEAD_CTX_init(ctx.get(), EVP_aead_aes_256_gcm(), kZeros, 32, in TEST()
649 nullptr /* nonce */, 0, kZeros /* in */, in TEST()
650 sizeof(kZeros), nullptr /* ad */, 0)); in TEST()
/external/boringssl/src/crypto/rsa_extra/
Drsa_test.cc690 static const uint8_t kZeros[32] = {0}; in TEST() local
693 RSA_sign(NID_sha256, kZeros, sizeof(kZeros), sig, &sig_len, rsa.get())); in TEST()
695 RSA_verify(NID_sha256, kZeros, sizeof(kZeros), sig, sig_len, rsa.get())); in TEST()
/external/boringssl/src/ssl/test/
Dtest_config.cc530 static const uint8_t kZeros[16] = {0}; in TicketKeyCallback() local
533 OPENSSL_memcpy(key_name, kZeros, sizeof(kZeros)); in TicketKeyCallback()
535 } else if (OPENSSL_memcmp(key_name, kZeros, 16) != 0) { in TicketKeyCallback()
539 if (!HMAC_Init_ex(hmac_ctx, kZeros, sizeof(kZeros), EVP_sha256(), NULL) || in TicketKeyCallback()
540 !EVP_CipherInit_ex(ctx, EVP_aes_128_cbc(), NULL, kZeros, iv, encrypt)) { in TicketKeyCallback()
/external/boringssl/src/crypto/bytestring/
Dbytestring_test.cc790 static const uint8_t kZeros[256] = {0}; in TEST() local
793 ASSERT_TRUE(CBB_add_bytes(&child, kZeros, sizeof(kZeros))); in TEST()
806 ASSERT_FALSE(CBB_add_bytes(cbb.get(), kZeros, sizeof(kZeros))); in TEST()
/external/boringssl/src/crypto/evp/
Devp_extra_test.cc619 static const uint8_t kZeros[32] = {0}; in TEST() local
620 bssl::UniquePtr<EVP_PKEY> pubkey2(EVP_PKEY_new_ed25519_public(kZeros)); in TEST()
/external/boringssl/src/ssl/
Dssl_test.cc2250 static const uint8_t kZeros[16] = {0}; in RenewTicketCallback() local
2253 OPENSSL_memcpy(key_name, kZeros, sizeof(kZeros)); in RenewTicketCallback()
2255 } else if (OPENSSL_memcmp(key_name, kZeros, 16) != 0) { in RenewTicketCallback()
2259 if (!HMAC_Init_ex(hmac_ctx, kZeros, sizeof(kZeros), EVP_sha256(), NULL) || in RenewTicketCallback()
2260 !EVP_CipherInit_ex(ctx, EVP_aes_128_cbc(), NULL, kZeros, iv, encrypt)) { in RenewTicketCallback()
2285 static const uint8_t kZeros[16] = {0}; in GetServerTicketTime() local
2289 if (!EVP_DecryptInit_ex(ctx.get(), EVP_aes_128_cbc(), nullptr, kZeros, iv) || in GetServerTicketTime()
/external/skia/tests/
DGrShapeTest.cpp82 const uint8_t* kZeros = reinterpret_cast<uint8_t*>(calloc(kRes, 1)); in test_bounds_by_rasterizing() local
84 static constexpr uint8_t kZeros[kRes] = {0}; in test_bounds_by_rasterizing() local
88 if (0 != memcmp(kZeros, row, kRes)) { in test_bounds_by_rasterizing()
93 free(const_cast<uint8_t*>(kZeros)); in test_bounds_by_rasterizing()
/external/skqp/tests/
DGrShapeTest.cpp82 const uint8_t* kZeros = reinterpret_cast<uint8_t*>(calloc(kRes, 1)); in test_bounds_by_rasterizing() local
84 static constexpr uint8_t kZeros[kRes] = {0}; in test_bounds_by_rasterizing() local
88 if (0 != memcmp(kZeros, row, kRes)) { in test_bounds_by_rasterizing()
93 free(const_cast<uint8_t*>(kZeros)); in test_bounds_by_rasterizing()
/external/boringssl/src/third_party/fiat/
Dcurve25519.c2133 static const uint8_t kZeros[32] = {0}; in X25519() local
2136 return CRYPTO_memcmp(kZeros, out_shared_key, 32) != 0; in X25519()