/external/openthread/tests/unit/ |
D | test_data.cpp | 54 VerifyOrQuit(data.GetBytes() == nullptr); in TestData() 61 VerifyOrQuit(data.GetBytes() == &kData[0]); in TestData() 73 VerifyOrQuit(data2.GetBytes() == &kDataCopy[0]); in TestData() 80 VerifyOrQuit(data2.GetBytes() == &kDataCopy[0]); in TestData() 88 VerifyOrQuit(data2.GetBytes() == &kDataCopy[0]); in TestData() 98 VerifyOrQuit(data.GetBytes() == nullptr); in TestData() 109 VerifyOrQuit(data.GetBytes() == &u8); in TestData() 113 VerifyOrQuit(data.GetBytes() == reinterpret_cast<uint8_t *>(&u16)); in TestData() 138 VerifyOrQuit(mutableData.GetBytes() == nullptr); in TestMutableData() 142 VerifyOrQuit(mutableData.GetBytes() == &buffer[0]); in TestMutableData() [all …]
|
D | test_frame_builder.cpp | 68 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 77 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 85 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 92 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 98 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 105 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 109 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 116 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 122 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder() 133 VerifyOrQuit(frameBuilder.GetBytes() == buffer); in TestFrameBuilder()
|
D | test_ecdsa.cpp | 96 DumpBuffer("PublicKey", publicKey.GetBytes(), Ecdsa::P256::PublicKey::kSize); in TestEcdsaVector() 99 VerifyOrQuit(memcmp(publicKey.GetBytes(), kPublicKey, sizeof(kPublicKey)) == 0, in TestEcdsaVector() 107 DumpBuffer("Hash", hash.GetBytes(), sizeof(hash)); in TestEcdsaVector() 111 DumpBuffer("Signature", signature.GetBytes(), sizeof(signature)); in TestEcdsaVector() 117 VerifyOrQuit(memcmp(signature.GetBytes(), kExpectedSignature, sizeof(kExpectedSignature)) == 0); in TestEcdsaVector() 151 DumpBuffer("PublicKey", publicKey.GetBytes(), Ecdsa::P256::PublicKey::kSize); in TestEdsaKeyGenerationSignAndVerify() 158 DumpBuffer("Hash", hash.GetBytes(), sizeof(hash)); in TestEdsaKeyGenerationSignAndVerify() 162 DumpBuffer("Signature", signature.GetBytes(), sizeof(signature)); in TestEdsaKeyGenerationSignAndVerify()
|
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/ |
D | cavp_aes_gcm_test.cc | 64 !t->GetBytes(&key, "Key") || in TestAEADEncrypt() 65 !t->GetBytes(&iv, "IV") || in TestAEADEncrypt() 66 !t->GetBytes(&pt, "PT") || in TestAEADEncrypt() 67 !t->GetBytes(&aad, "AAD") || in TestAEADEncrypt() 105 !t->GetBytes(&key, "Key") || in TestAEADDecrypt() 106 !t->GetBytes(&aad, "AAD") || in TestAEADDecrypt() 107 !t->GetBytes(&tag, "Tag") || in TestAEADDecrypt() 108 !t->GetBytes(&iv, "IV") || in TestAEADDecrypt() 109 !t->GetBytes(&ct, "CT") || in TestAEADDecrypt()
|
D | cavp_tdes_test.cc | 95 (num_keys == 0 && !t->GetBytes(&keys, "KEYs")) || in TestKAT() 97 (!t->GetBytes(&key1, "KEY1") || in TestKAT() 98 !t->GetBytes(&key2, "KEY2") || in TestKAT() 99 !t->GetBytes(&key3, "KEY3"))) || in TestKAT() 100 (ctx->has_iv && !t->GetBytes(&iv, "IV")) || in TestKAT() 101 !t->GetBytes(&in, in_label)) { in TestKAT() 213 if (!t->GetBytes(&key1, "KEY1") || in TestMCT() 214 !t->GetBytes(&key2, "KEY2") || in TestMCT() 215 !t->GetBytes(&key3, "KEY3") || in TestMCT() 216 (ctx->has_iv && !t->GetBytes(&iv, "IV")) || in TestMCT() [all …]
|
D | cavp_tlskdf_test.cc | 53 if (!t->GetBytes(&premaster, "pre_master_secret") || in TestTLSKDF() 54 !t->GetBytes(&server_random, "serverHello_random") || in TestTLSKDF() 55 !t->GetBytes(&client_random, "clientHello_random") || in TestTLSKDF() 58 !t->GetBytes(&key_block_server_random, "server_random") || in TestTLSKDF() 59 !t->GetBytes(&key_block_client_random, "client_random") || in TestTLSKDF()
|
D | cavp_ctr_drbg_test.cc | 50 !t->GetBytes(&entropy, "EntropyInput") || in TestCTRDRBG() 51 !t->GetBytes(&nonce, "Nonce") || in TestCTRDRBG() 52 !t->GetBytes(&personalization_str, "PersonalizationString") || in TestCTRDRBG() 53 !t->GetBytes(&ai1, "AdditionalInput") || in TestCTRDRBG() 54 !t->GetBytes(&ai2, "AdditionalInput/2") || in TestCTRDRBG()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rand/ |
D | ctrdrbg_test.cc | 90 ASSERT_TRUE(t->GetBytes(&seed, "EntropyInput")); in TEST() 91 ASSERT_TRUE(t->GetBytes(&personalisation, "PersonalizationString")); in TEST() 92 ASSERT_TRUE(t->GetBytes(&reseed, "EntropyInputReseed")); in TEST() 93 ASSERT_TRUE(t->GetBytes(&ai_reseed, "AdditionalInputReseed")); in TEST() 94 ASSERT_TRUE(t->GetBytes(&ai1, "AdditionalInput1")); in TEST() 95 ASSERT_TRUE(t->GetBytes(&ai2, "AdditionalInput2")); in TEST() 96 ASSERT_TRUE(t->GetBytes(&expected, "ReturnedBits")); in TEST()
|
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/rand/ |
D | ctrdrbg_test.cc | 100 ASSERT_TRUE(t->GetBytes(&seed, "EntropyInput")); in TEST() 101 ASSERT_TRUE(t->GetBytes(&personalisation, "PersonalizationString")); in TEST() 102 ASSERT_TRUE(t->GetBytes(&reseed, "EntropyInputReseed")); in TEST() 103 ASSERT_TRUE(t->GetBytes(&ai_reseed, "AdditionalInputReseed")); in TEST() 104 ASSERT_TRUE(t->GetBytes(&ai1, "AdditionalInput1")); in TEST() 105 ASSERT_TRUE(t->GetBytes(&ai2, "AdditionalInput2")); in TEST() 106 ASSERT_TRUE(t->GetBytes(&expected, "ReturnedBits")); in TEST()
|
/external/openthread/src/core/common/ |
D | data.hpp | 167 const uint8_t *GetBytes(void) const { return mBuffer; } in GetBytes() function in ot::Data 327 uint8_t *GetBytes(void) { return AsNonConst(Base::GetBytes()); } in GetBytes() function in ot::MutableData 335 const uint8_t *GetBytes(void) const { return Base::GetBytes(); } in GetBytes() function in ot::MutableData 341 void ClearBytes(void) { memset(GetBytes(), 0, mLength); } in ClearBytes() 386 return CopyBytesFrom(aData.GetBytes(), aData.GetLength()); in CopyBytesFrom()
|
D | heap_data.hpp | 84 bool IsNull(void) const { return (mData.GetBytes() == nullptr); } in IsNull() 92 const uint8_t *GetBytes(void) const { return mData.GetBytes(); } in GetBytes() function in ot::Heap::Data 160 …Error CopyBytesTo(Message &aMessage) const { return aMessage.AppendBytes(mData.GetBytes(), mData.G… in CopyBytesTo()
|
/external/boringssl/src/crypto/fipsmodule/rand/ |
D | ctrdrbg_test.cc | 100 ASSERT_TRUE(t->GetBytes(&seed, "EntropyInput")); in TEST() 101 ASSERT_TRUE(t->GetBytes(&personalisation, "PersonalizationString")); in TEST() 102 ASSERT_TRUE(t->GetBytes(&reseed, "EntropyInputReseed")); in TEST() 103 ASSERT_TRUE(t->GetBytes(&ai_reseed, "AdditionalInputReseed")); in TEST() 104 ASSERT_TRUE(t->GetBytes(&ai1, "AdditionalInput1")); in TEST() 105 ASSERT_TRUE(t->GetBytes(&ai2, "AdditionalInput2")); in TEST() 106 ASSERT_TRUE(t->GetBytes(&expected, "ReturnedBits")); in TEST()
|
/external/cronet/third_party/boringssl/src/crypto/kyber/ |
D | kyber_test.cc | 33 ASSERT_TRUE(t->GetBytes(&input, "Input")); in KeccakFileTest() 34 ASSERT_TRUE(t->GetBytes(&sha3_256_expected, "SHA3-256")); in KeccakFileTest() 35 ASSERT_TRUE(t->GetBytes(&sha3_512_expected, "SHA3-512")); in KeccakFileTest() 36 ASSERT_TRUE(t->GetBytes(&shake128_expected, "SHAKE-128")); in KeccakFileTest() 37 ASSERT_TRUE(t->GetBytes(&shake256_expected, "SHAKE-256")); in KeccakFileTest() 156 ASSERT_TRUE(t->GetBytes(&seed, "seed")); in KyberFileTest() 157 ASSERT_TRUE(t->GetBytes(&public_key_expected, "pk")); in KyberFileTest() 158 ASSERT_TRUE(t->GetBytes(&private_key_expected, "sk")); in KyberFileTest() 159 ASSERT_TRUE(t->GetBytes(&ciphertext_expected, "ct")); in KyberFileTest() 160 ASSERT_TRUE(t->GetBytes(&shared_secret_expected, "ss")); in KyberFileTest()
|
/external/boringssl/src/crypto/kyber/ |
D | kyber_test.cc | 33 ASSERT_TRUE(t->GetBytes(&input, "Input")); in KeccakFileTest() 34 ASSERT_TRUE(t->GetBytes(&sha3_256_expected, "SHA3-256")); in KeccakFileTest() 35 ASSERT_TRUE(t->GetBytes(&sha3_512_expected, "SHA3-512")); in KeccakFileTest() 36 ASSERT_TRUE(t->GetBytes(&shake128_expected, "SHAKE-128")); in KeccakFileTest() 37 ASSERT_TRUE(t->GetBytes(&shake256_expected, "SHAKE-256")); in KeccakFileTest() 156 ASSERT_TRUE(t->GetBytes(&seed, "seed")); in KyberFileTest() 157 ASSERT_TRUE(t->GetBytes(&public_key_expected, "pk")); in KyberFileTest() 158 ASSERT_TRUE(t->GetBytes(&private_key_expected, "sk")); in KyberFileTest() 159 ASSERT_TRUE(t->GetBytes(&ciphertext_expected, "ct")); in KyberFileTest() 160 ASSERT_TRUE(t->GetBytes(&shared_secret_expected, "ss")); in KyberFileTest()
|
/external/openthread/src/core/radio/ |
D | trel_packet.hpp | 292 uint8_t *GetBuffer(void) { return Base::GetBytes(); } in GetBuffer() 300 const uint8_t *GetBuffer(void) const { return Base::GetBytes(); } in GetBuffer() 325 Header &GetHeader(void) { return *reinterpret_cast<Header *>(Base::GetBytes()); } in GetHeader() 333 …const Header &GetHeader(void) const { return *reinterpret_cast<const Header *>(Base::GetBytes()); } in GetHeader() 341 uint8_t *GetPayload(void) { return Base::GetBytes() + GetHeader().GetLength(); } in GetPayload() 349 const uint8_t *GetPayload(void) const { return Base::GetBytes() + GetHeader().GetLength(); } in GetPayload()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/cmac/ |
D | cmac_test.cc | 132 ASSERT_TRUE(t->GetBytes(&key, "key")); in TEST() 133 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in TEST() 134 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in TEST() 199 ASSERT_TRUE(t->GetBytes(&key, "Key1")); in RunCAVPTest() 200 ASSERT_TRUE(t->GetBytes(&key2, "Key2")); in RunCAVPTest() 201 ASSERT_TRUE(t->GetBytes(&key3, "Key3")); in RunCAVPTest() 205 ASSERT_TRUE(t->GetBytes(&key, "Key")); in RunCAVPTest() 207 ASSERT_TRUE(t->GetBytes(&msg, "Msg")); in RunCAVPTest() 208 ASSERT_TRUE(t->GetBytes(&mac, "Mac")); in RunCAVPTest()
|
/external/openthread/src/core/net/ |
D | ip6_address.hpp | 116 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes() function in ot::Ip6::Prefix 238 …(MatchLength(GetBytes(), aSubPrefix.GetBytes(), aSubPrefix.GetBytesSize()) >= aSubPrefix.GetLength… in ContainsPrefix() 253 … (MatchLength(GetBytes(), aSubPrefix.m8, NetworkPrefix::kSize) >= NetworkPrefix::kLength); in ContainsPrefix() 268 (MatchLength(GetBytes(), aOther.GetBytes(), GetBytesSize()) >= GetLength()); in operator ==() 431 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes() function in ot::Ip6::InterfaceIdentifier 606 const uint8_t *GetBytes(void) const { return mFields.m8; } in GetBytes() function in ot::Ip6::Address 891 SetMulticastNetworkPrefix(aPrefix.GetBytes(), aPrefix.GetLength()); in SetMulticastNetworkPrefix()
|
/external/boringssl/src/crypto/fipsmodule/cmac/ |
D | cmac_test.cc | 132 ASSERT_TRUE(t->GetBytes(&key, "key")); in TEST() 133 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in TEST() 134 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in TEST() 199 ASSERT_TRUE(t->GetBytes(&key, "Key1")); in RunCAVPTest() 200 ASSERT_TRUE(t->GetBytes(&key2, "Key2")); in RunCAVPTest() 201 ASSERT_TRUE(t->GetBytes(&key3, "Key3")); in RunCAVPTest() 205 ASSERT_TRUE(t->GetBytes(&key, "Key")); in RunCAVPTest() 207 ASSERT_TRUE(t->GetBytes(&msg, "Msg")); in RunCAVPTest() 208 ASSERT_TRUE(t->GetBytes(&mac, "Mac")); in RunCAVPTest()
|
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/cmac/ |
D | cmac_test.cc | 132 ASSERT_TRUE(t->GetBytes(&key, "key")); in TEST() 133 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in TEST() 134 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in TEST() 199 ASSERT_TRUE(t->GetBytes(&key, "Key1")); in RunCAVPTest() 200 ASSERT_TRUE(t->GetBytes(&key2, "Key2")); in RunCAVPTest() 201 ASSERT_TRUE(t->GetBytes(&key3, "Key3")); in RunCAVPTest() 205 ASSERT_TRUE(t->GetBytes(&key, "Key")); in RunCAVPTest() 207 ASSERT_TRUE(t->GetBytes(&msg, "Msg")); in RunCAVPTest() 208 ASSERT_TRUE(t->GetBytes(&mac, "Mac")); in RunCAVPTest()
|
/external/cronet/third_party/boringssl/src/crypto/hmac_extra/ |
D | hmac_test.cc | 96 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST() 97 ASSERT_TRUE(t->GetBytes(&input, "Input")); in TEST() 98 ASSERT_TRUE(t->GetBytes(&output, "Output")); in TEST() 138 ASSERT_TRUE(t->GetBytes(&key, "key")); in RunWycheproofTest() 139 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in RunWycheproofTest() 140 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in RunWycheproofTest()
|
/external/boringssl/src/crypto/hmac_extra/ |
D | hmac_test.cc | 96 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST() 97 ASSERT_TRUE(t->GetBytes(&input, "Input")); in TEST() 98 ASSERT_TRUE(t->GetBytes(&output, "Output")); in TEST() 138 ASSERT_TRUE(t->GetBytes(&key, "key")); in RunWycheproofTest() 139 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in RunWycheproofTest() 140 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in RunWycheproofTest()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/hmac_extra/ |
D | hmac_test.cc | 96 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST() 97 ASSERT_TRUE(t->GetBytes(&input, "Input")); in TEST() 98 ASSERT_TRUE(t->GetBytes(&output, "Output")); in TEST() 139 ASSERT_TRUE(t->GetBytes(&key, "key")); in RunWycheproofTest() 140 ASSERT_TRUE(t->GetBytes(&msg, "msg")); in RunWycheproofTest() 141 ASSERT_TRUE(t->GetBytes(&tag, "tag")); in RunWycheproofTest()
|
/external/boringssl/src/crypto/evp/ |
D | evp_test.cc | 151 if (!t->GetBytes(&input, "Input")) { in ImportKey() 181 !t->GetBytes(&output, "Output")) { in ImportKey() 192 if (!t->GetBytes(&expected, "ExpectRawPrivate")) { in ImportKey() 219 if (!t->GetBytes(&expected, "ExpectRawPublic")) { in ImportKey() 277 if (!t->GetBytes(&label, "OAEPLabel")) { in SetupContext() 330 if (!t->GetBytes(&output, "Output")) { in TestDerive() 421 if (!t->GetBytes(&input, "Input") || in TestEVP() 422 (is_verify && !t->GetBytes(&output, "Output"))) { in TestEVP() 449 !t->GetBytes(&output, "Output")) { in TestEVP() 464 !t->GetBytes(&output, "Output")) { in TestEVP() [all …]
|
/external/cronet/third_party/boringssl/src/crypto/evp/ |
D | evp_test.cc | 151 if (!t->GetBytes(&input, "Input")) { in ImportKey() 181 !t->GetBytes(&output, "Output")) { in ImportKey() 192 if (!t->GetBytes(&expected, "ExpectRawPrivate")) { in ImportKey() 219 if (!t->GetBytes(&expected, "ExpectRawPublic")) { in ImportKey() 277 if (!t->GetBytes(&label, "OAEPLabel")) { in SetupContext() 330 if (!t->GetBytes(&output, "Output")) { in TestDerive() 421 if (!t->GetBytes(&input, "Input") || in TestEVP() 422 (is_verify && !t->GetBytes(&output, "Output"))) { in TestEVP() 449 !t->GetBytes(&output, "Output")) { in TestEVP() 464 !t->GetBytes(&output, "Output")) { in TestEVP() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | evp_test.cc | 151 if (!t->GetBytes(&input, "Input")) { in ImportKey() 181 !t->GetBytes(&output, "Output")) { in ImportKey() 192 if (!t->GetBytes(&expected, "ExpectRawPrivate")) { in ImportKey() 219 if (!t->GetBytes(&expected, "ExpectRawPublic")) { in ImportKey() 277 if (!t->GetBytes(&label, "OAEPLabel")) { in SetupContext() 330 if (!t->GetBytes(&output, "Output")) { in TestDerive() 421 if (!t->GetBytes(&input, "Input") || in TestEVP() 422 (is_verify && !t->GetBytes(&output, "Output"))) { in TestEVP() 449 !t->GetBytes(&output, "Output")) { in TestEVP() 464 !t->GetBytes(&output, "Output")) { in TestEVP() [all …]
|