Home
last modified time | relevance | path

Searched refs:GetBytes (Results 1 – 25 of 67) sorted by relevance

123

/external/boringssl/src/fipstools/
Dcavp_aes_gcm_test.cc61 !t->GetBytes(&key, "Key") || in TestAEADEncrypt()
62 !t->GetBytes(&iv, "IV") || in TestAEADEncrypt()
63 !t->GetBytes(&pt, "PT") || in TestAEADEncrypt()
64 !t->GetBytes(&aad, "AAD") || in TestAEADEncrypt()
102 !t->GetBytes(&key, "Key") || in TestAEADDecrypt()
103 !t->GetBytes(&aad, "AAD") || in TestAEADDecrypt()
104 !t->GetBytes(&tag, "Tag") || in TestAEADDecrypt()
105 !t->GetBytes(&iv, "IV") || in TestAEADDecrypt()
106 !t->GetBytes(&ct, "CT") || in TestAEADDecrypt()
Dcavp_tdes_test.cc94 (num_keys == 0 && !t->GetBytes(&keys, "KEYs")) || in TestKAT()
96 (!t->GetBytes(&key1, "KEY1") || in TestKAT()
97 !t->GetBytes(&key2, "KEY2") || in TestKAT()
98 !t->GetBytes(&key3, "KEY3"))) || in TestKAT()
99 (ctx->has_iv && !t->GetBytes(&iv, "IV")) || in TestKAT()
100 !t->GetBytes(&in, in_label)) { in TestKAT()
216 if (!t->GetBytes(&key1, "KEY1") || in TestMCT()
217 !t->GetBytes(&key2, "KEY2") || in TestMCT()
218 !t->GetBytes(&key3, "KEY3") || in TestMCT()
219 (ctx->has_iv && !t->GetBytes(&iv, "IV")) || in TestMCT()
[all …]
Dcavp_tlskdf_test.cc52 if (!t->GetBytes(&premaster, "pre_master_secret") || in TestTLSKDF()
53 !t->GetBytes(&server_random, "serverHello_random") || in TestTLSKDF()
54 !t->GetBytes(&client_random, "clientHello_random") || in TestTLSKDF()
57 !t->GetBytes(&key_block_server_random, "server_random") || in TestTLSKDF()
58 !t->GetBytes(&key_block_client_random, "client_random") || in TestTLSKDF()
Dcavp_ctr_drbg_test.cc49 !t->GetBytes(&entropy, "EntropyInput") || in TestCTRDRBG()
50 !t->GetBytes(&nonce, "Nonce") || in TestCTRDRBG()
51 !t->GetBytes(&personalization_str, "PersonalizationString") || in TestCTRDRBG()
52 !t->GetBytes(&ai1, "AdditionalInput") || in TestCTRDRBG()
53 !t->GetBytes(&ai2, "AdditionalInput/2") || in TestCTRDRBG()
Dcavp_rsa2_sigver_test.cc52 return t->GetBytes(&ctx->N, "n"); in TestRSA2SigVer()
58 !t->GetBytes(&e_bytes, "e") || in TestRSA2SigVer()
59 !t->GetBytes(&msg, "Msg") || in TestRSA2SigVer()
60 !t->GetBytes(&sig, "S")) { in TestRSA2SigVer()
Dcavp_aes_test.cc145 !t->GetBytes(&key, "KEY") || in TestCipher()
146 (ctx->has_iv && !t->GetBytes(&iv, "IV"))) { in TestCipher()
152 if (!t->GetBytes(&in, "PLAINTEXT")) { in TestCipher()
156 if (!t->GetBytes(&in, "CIPHERTEXT")) { in TestCipher()
Dcavp_hmac_test.cc60 !t->GetBytes(&key, "Key") || in TestHMAC()
61 !t->GetBytes(&msg, "Msg")) { in TestHMAC()
Dcavp_keywrap_test.cc72 !t->GetBytes(&key, "K") || in TestCipher()
73 !t->GetBytes(&in, in_label)) { in TestCipher()
/external/boringssl/src/crypto/fipsmodule/rand/
Dctrdrbg_test.cc90 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/boringssl/src/crypto/fipsmodule/modes/
Dgcm_test.cc74 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST()
75 ASSERT_TRUE(t->GetBytes(&plaintext, "Plaintext")); in TEST()
76 ASSERT_TRUE(t->GetBytes(&additional_data, "AdditionalData")); in TEST()
77 ASSERT_TRUE(t->GetBytes(&nonce, "Nonce")); in TEST()
78 ASSERT_TRUE(t->GetBytes(&ciphertext, "Ciphertext")); in TEST()
79 ASSERT_TRUE(t->GetBytes(&tag, "Tag")); in TEST()
/external/boringssl/src/crypto/fipsmodule/aes/
Daes_test.cc32 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TestRaw()
33 ASSERT_TRUE(t->GetBytes(&plaintext, "Plaintext")); in TestRaw()
34 ASSERT_TRUE(t->GetBytes(&ciphertext, "Ciphertext")); in TestRaw()
74 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TestKeyWrap()
75 ASSERT_TRUE(t->GetBytes(&plaintext, "Plaintext")); in TestKeyWrap()
76 ASSERT_TRUE(t->GetBytes(&ciphertext, "Ciphertext")); in TestKeyWrap()
/external/boringssl/src/crypto/cipher_extra/
Daead_test.cc121 ASSERT_TRUE(t->GetBytes(&key, "KEY")); in TEST_P()
122 ASSERT_TRUE(t->GetBytes(&nonce, "NONCE")); in TEST_P()
123 ASSERT_TRUE(t->GetBytes(&in, "IN")); in TEST_P()
124 ASSERT_TRUE(t->GetBytes(&ad, "AD")); in TEST_P()
125 ASSERT_TRUE(t->GetBytes(&ct, "CT")); in TEST_P()
126 ASSERT_TRUE(t->GetBytes(&tag, "TAG")); in TEST_P()
228 ASSERT_TRUE(t->GetBytes(&key, "KEY")); in TEST_P()
229 ASSERT_TRUE(t->GetBytes(&nonce, "NONCE")); in TEST_P()
230 ASSERT_TRUE(t->GetBytes(&in, "IN")); in TEST_P()
231 ASSERT_TRUE(t->GetBytes(&ad, "AD")); in TEST_P()
[all …]
Dcipher_test.cc200 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TestCipher()
201 ASSERT_TRUE(t->GetBytes(&plaintext, "Plaintext")); in TestCipher()
202 ASSERT_TRUE(t->GetBytes(&ciphertext, "Ciphertext")); in TestCipher()
204 ASSERT_TRUE(t->GetBytes(&iv, "IV")); in TestCipher()
207 ASSERT_TRUE(t->GetBytes(&aad, "AAD")); in TestCipher()
208 ASSERT_TRUE(t->GetBytes(&tag, "Tag")); in TestCipher()
/external/boringssl/src/crypto/curve25519/
Ded25519_test.cc30 ASSERT_TRUE(t->GetBytes(&private_key, "PRIV")); in TEST()
32 ASSERT_TRUE(t->GetBytes(&public_key, "PUB")); in TEST()
34 ASSERT_TRUE(t->GetBytes(&message, "MESSAGE")); in TEST()
35 ASSERT_TRUE(t->GetBytes(&expected_signature, "SIG")); in TEST()
/external/boringssl/src/crypto/evp/
Devp_test.cc147 if (!t->GetBytes(&input, "Input")) { in ImportKey()
177 !t->GetBytes(&output, "Output")) { in ImportKey()
218 if (!t->GetBytes(&label, "OAEPLabel")) { in SetupContext()
292 if (!t->GetBytes(&input, "Input") || in TestEVP()
293 (is_verify && !t->GetBytes(&output, "Output"))) { in TestEVP()
317 !t->GetBytes(&output, "Output")) { in TestEVP()
395 if (!t->GetBytes(&output, "Output")) { in TestEVP()
Dscrypt_test.cc44 ASSERT_TRUE(t->GetBytes(&password, "Password")); in TEST()
45 ASSERT_TRUE(t->GetBytes(&salt, "Salt")); in TEST()
46 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST()
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs67 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr); in TestANTLRInputStreamConstructorDoesNotHang()
86 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr); in TestSizeOnANTLRInputStream()
97 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr); in TestConsumeAndIndexOnANTLRInputStream()
120 byte[] grammarStrBuffer = encoding.GetBytes(grammarStr); in TestConsumeAllCharactersInAnANTLRInputStream()
136 byte[] buffer = encoding.GetBytes("One\r\nTwo"); in TestConsumeOnANTLRInputStream()
199 byte[] buffer = encoding.GetBytes("One\r\nTwo"); in TestResetOnANTLRInputStream()
237 byte[] buffer = encoding.GetBytes("One\r\nTwo\r\nThree"); in TestSubstringOnANTLRInputStream()
257 byte[] buffer = encoding.GetBytes("One\r\nTwo\r\nThree"); in TestSeekOnANTLRInputStream()
/external/boringssl/src/crypto/poly1305/
Dpoly1305_test.cc74 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST()
75 ASSERT_TRUE(t->GetBytes(&in, "Input")); in TEST()
76 ASSERT_TRUE(t->GetBytes(&mac, "MAC")); in TEST()
/external/boringssl/src/crypto/hmac_extra/
Dhmac_test.cc95 ASSERT_TRUE(t->GetBytes(&key, "Key")); in TEST()
96 ASSERT_TRUE(t->GetBytes(&input, "Input")); in TEST()
97 ASSERT_TRUE(t->GetBytes(&output, "Output")); in TEST()
/external/llvm/unittests/Support/
DStreamingMemoryObjectTest.cpp21 size_t GetBytes(unsigned char *Buffer, size_t Length) override { in GetBytes() function in __anon9b960db10111::NullDataStreamer
32 size_t GetBytes(unsigned char *OutBuffer, size_t Length) override { in GetBytes() function in __anon9b960db10111::BufferStreamer
/external/perfetto/src/protozero/test/
Dfake_scattered_buffer.cc58 void FakeScatteredBuffer::GetBytes(size_t start, size_t length, uint8_t* buf) { in GetBytes() function in protozero::FakeScatteredBuffer
69 GetBytes(start, length, buffer.get()); in GetBytesAsString()
/external/zlib/src/contrib/dotzlib/DotZLib/
DChecksumImpl.cs84 Update(Encoding.UTF8.GetBytes(data)); in Update()
94 Update(encoding.GetBytes(data)); in Update()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedOutputStream.cs181 byte[] rawBytes = BitConverter.GetBytes(value); in WriteFloat()
284 Utf8Encoding.GetBytes(value, 0, value.Length, buffer, position); in WriteString()
290 byte[] bytes = Utf8Encoding.GetBytes(value); in WriteString()
/external/v4l2_codec2/vda/
Dbit_reader_core.cc84 byte_stream_provider_->GetBytes(nbytes, &byte_stream_window); in SkipBits()
153 byte_stream_provider_->GetBytes(max_nbytes, &byte_stream_window); in Refill()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugEventSocketProxy.cs110 … socket.Send( encoding.GetBytes( "ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n" ) ); in Handshake()
111 socket.Send( encoding.GetBytes( "grammar \"" + grammarFileName + "\n" ) ); in Handshake()
164 socket.Send( new System.Text.UTF8Encoding().GetBytes( @event + "\n" ) ); in Transmit()

123