Home
last modified time | relevance | path

Searched refs:EncodeToString (Results 1 – 25 of 134) sorted by relevance

123456

/aosp_15_r20/external/boringssl/src/util/fipstools/acvp/acvptool/subprocess/
H A Dblock.go56 iteration.KeyHex = hex.EncodeToString(key)
58 iteration.PlaintextHex = hex.EncodeToString(input)
60 iteration.CiphertextHex = hex.EncodeToString(input)
71 iteration.CiphertextHex = hex.EncodeToString(input)
73 iteration.PlaintextHex = hex.EncodeToString(input)
88 iteration.KeyHex = hex.EncodeToString(key)
90 iteration.PlaintextHex = hex.EncodeToString(input)
92 iteration.CiphertextHex = hex.EncodeToString(input)
95 iteration.IVHex = hex.EncodeToString(iv)
106 iteration.CiphertextHex = hex.EncodeToString(result)
[all …]
H A Drsa.go147 E: hex.EncodeToString(result[0]),
148 P: hex.EncodeToString(result[1]),
149 Q: hex.EncodeToString(result[2]),
150 N: hex.EncodeToString(result[3]),
151 D: hex.EncodeToString(result[4]),
202 response.N = hex.EncodeToString(result[0])
203 response.E = hex.EncodeToString(result[1])
204 } else if response.N != hex.EncodeToString(result[0]) {
210 Sig: hex.EncodeToString(result[2]),
H A Dtls13.go164 testResp.ClientEarlyTrafficSecretHex = hex.EncodeToString(clientEarlyTrafficSecret[0])
170 testResp.EarlyExporterMasterSecretHex = hex.EncodeToString(earlyExporter[0])
186 testResp.ClientHandshakeTrafficSecretHex = hex.EncodeToString(clientHandshakeTrafficSecret[0])
192 testResp.ServerHandshakeTrafficSecretHex = hex.EncodeToString(serverHandshakeTrafficSecret[0])
208 testResp.ClientApplicationTrafficSecretHex = hex.EncodeToString(clientAppTrafficSecret[0])
214 testResp.ServerApplicationTrafficSecretHex = hex.EncodeToString(serverAppTrafficSecret[0])
220 testResp.ExporterMasterSecretHex = hex.EncodeToString(exporterSecret[0])
226 testResp.ResumptionMasterSecretHex = hex.EncodeToString(resumptionSecret[0])
H A Decdsa.go109 testResp.DHex = hex.EncodeToString(result[0])
110 testResp.QxHex = hex.EncodeToString(result[1])
111 testResp.QyHex = hex.EncodeToString(result[2])
156 response.QxHex = hex.EncodeToString(result[1])
157 response.QyHex = hex.EncodeToString(result[2])
172 testResp.RHex = hex.EncodeToString(result[0])
173 testResp.SHex = hex.EncodeToString(result[1])
H A Dkas.go173 ResultHex: hex.EncodeToString(result[2]),
177 testResponse.StaticXHex = hex.EncodeToString(result[0])
178 testResponse.StaticYHex = hex.EncodeToString(result[1])
180 testResponse.EphemeralXHex = hex.EncodeToString(result[0])
181 testResponse.EphemeralYHex = hex.EncodeToString(result[1])
H A Daead.go190 ciphertextHex := hex.EncodeToString(result[0])
197 testResp.NonceHex = hex.EncodeToString(nonce)
200 ciphertextHex := hex.EncodeToString(ciphertext)
202 testResp.TagHex = hex.EncodeToString(tag)
220 plaintextHex := hex.EncodeToString(result[1])
/aosp_15_r20/external/cronet/third_party/boringssl/src/util/fipstools/acvp/acvptool/subprocess/
H A Dblock.go56 iteration.KeyHex = hex.EncodeToString(key)
58 iteration.PlaintextHex = hex.EncodeToString(input)
60 iteration.CiphertextHex = hex.EncodeToString(input)
71 iteration.CiphertextHex = hex.EncodeToString(input)
73 iteration.PlaintextHex = hex.EncodeToString(input)
88 iteration.KeyHex = hex.EncodeToString(key)
90 iteration.PlaintextHex = hex.EncodeToString(input)
92 iteration.CiphertextHex = hex.EncodeToString(input)
95 iteration.IVHex = hex.EncodeToString(iv)
106 iteration.CiphertextHex = hex.EncodeToString(result)
[all …]
H A Drsa.go147 E: hex.EncodeToString(result[0]),
148 P: hex.EncodeToString(result[1]),
149 Q: hex.EncodeToString(result[2]),
150 N: hex.EncodeToString(result[3]),
151 D: hex.EncodeToString(result[4]),
202 response.N = hex.EncodeToString(result[0])
203 response.E = hex.EncodeToString(result[1])
204 } else if response.N != hex.EncodeToString(result[0]) {
210 Sig: hex.EncodeToString(result[2]),
H A Dtls13.go164 testResp.ClientEarlyTrafficSecretHex = hex.EncodeToString(clientEarlyTrafficSecret[0])
170 testResp.EarlyExporterMasterSecretHex = hex.EncodeToString(earlyExporter[0])
186 testResp.ClientHandshakeTrafficSecretHex = hex.EncodeToString(clientHandshakeTrafficSecret[0])
192 testResp.ServerHandshakeTrafficSecretHex = hex.EncodeToString(serverHandshakeTrafficSecret[0])
208 testResp.ClientApplicationTrafficSecretHex = hex.EncodeToString(clientAppTrafficSecret[0])
214 testResp.ServerApplicationTrafficSecretHex = hex.EncodeToString(serverAppTrafficSecret[0])
220 testResp.ExporterMasterSecretHex = hex.EncodeToString(exporterSecret[0])
226 testResp.ResumptionMasterSecretHex = hex.EncodeToString(resumptionSecret[0])
H A Decdsa.go109 testResp.DHex = hex.EncodeToString(result[0])
110 testResp.QxHex = hex.EncodeToString(result[1])
111 testResp.QyHex = hex.EncodeToString(result[2])
156 response.QxHex = hex.EncodeToString(result[1])
157 response.QyHex = hex.EncodeToString(result[2])
172 testResp.RHex = hex.EncodeToString(result[0])
173 testResp.SHex = hex.EncodeToString(result[1])
H A Dkas.go173 ResultHex: hex.EncodeToString(result[2]),
177 testResponse.StaticXHex = hex.EncodeToString(result[0])
178 testResponse.StaticYHex = hex.EncodeToString(result[1])
180 testResponse.EphemeralXHex = hex.EncodeToString(result[0])
181 testResponse.EphemeralYHex = hex.EncodeToString(result[1])
H A Daead.go190 ciphertextHex := hex.EncodeToString(result[0])
197 testResp.NonceHex = hex.EncodeToString(nonce)
200 ciphertextHex := hex.EncodeToString(ciphertext)
202 testResp.TagHex = hex.EncodeToString(tag)
220 plaintextHex := hex.EncodeToString(result[1])
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/tls/
Dprf_test.go28 s1 := hex.EncodeToString(out1)
29 s2 := hex.EncodeToString(out2)
55 if s := hex.EncodeToString(masterSecret); s != test.masterSecret {
61 clientMACString := hex.EncodeToString(clientMAC)
62 serverMACString := hex.EncodeToString(serverMAC)
63 clientKeyString := hex.EncodeToString(clientKey)
64 serverKeyString := hex.EncodeToString(serverKey)
83 if hex.EncodeToString(contextKeyingMaterial) != test.contextKeyingMaterial ||
84 hex.EncodeToString(noContextKeyingMaterial) != test.noContextKeyingMaterial {
/aosp_15_r20/external/tink/go/mac/subtle/
H A Dcmac_test.go115 if valid && hex.EncodeToString(res) != tc.Tag {
116 …) do not match:\nComputed: %q\nExpected: %q", tc.TcID, tc.Comment, hex.EncodeToString(res), tc.Tag)
118 if !valid && hex.EncodeToString(res) == tc.Tag && err == nil {
119 … %d (%s) match:\nComputed: %q\nExpected: %q", tc.TcID, tc.Comment, hex.EncodeToString(res), tc.Tag)
142 if hex.EncodeToString(output) != e {
143 …omputation and test vector differ. Computation: %q, Test Vector %q", hex.EncodeToString(output), e)
221 …dified test vector did not fail. Test Vector %q, Modified: %q", e, hex.EncodeToString(notExpected))
242 …ncated test vector did not fail. Test Vector %q, Modified: %q", e, hex.EncodeToString(notExpected))
261 …ller tag test vector did fail. Test Vector %q, Verification: %v", hex.EncodeToString(exp[:i]), err)
/aosp_15_r20/external/boringssl/src/crypto/cipher_extra/test/
H A Dmake_legacy_aead_tests.go235 fmt.Printf("# DIGEST: %s\n", hex.EncodeToString(t.digest))
236 fmt.Printf("KEY: %s\n", hex.EncodeToString(t.key))
237 fmt.Printf("NONCE: %s\n", hex.EncodeToString(t.nonce))
238 fmt.Printf("IN: %s\n", hex.EncodeToString(t.input))
239 fmt.Printf("AD: %s\n", hex.EncodeToString(t.ad))
240 fmt.Printf("CT: %s\n", hex.EncodeToString(t.ciphertext))
241 fmt.Printf("TAG: %s\n", hex.EncodeToString(t.tag))
/aosp_15_r20/external/cronet/third_party/boringssl/src/crypto/cipher_extra/test/
H A Dmake_legacy_aead_tests.go235 fmt.Printf("# DIGEST: %s\n", hex.EncodeToString(t.digest))
236 fmt.Printf("KEY: %s\n", hex.EncodeToString(t.key))
237 fmt.Printf("NONCE: %s\n", hex.EncodeToString(t.nonce))
238 fmt.Printf("IN: %s\n", hex.EncodeToString(t.input))
239 fmt.Printf("AD: %s\n", hex.EncodeToString(t.ad))
240 fmt.Printf("CT: %s\n", hex.EncodeToString(t.ciphertext))
241 fmt.Printf("TAG: %s\n", hex.EncodeToString(t.tag))
/aosp_15_r20/external/tink/go/prf/subtle/
H A Dhmac_test.go106 if hex.EncodeToString(output) != e {
107 …omputation and test vector differ. Computation: %q, Test Vector %q", hex.EncodeToString(output), e)
142 …d result do not match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), hex.EncodeToString(t…
154 …expected result match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), hex.EncodeToString(t…
H A Daes_cmac_test.go54 if hex.EncodeToString(output) != e {
55 …omputation and test vector differ. Computation: %q, Test Vector %q", hex.EncodeToString(output), e)
91 … and expected result do not match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), test.Tag)
103 …and invalid expected result match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), test.Tag)
H A Dhkdf_test.go120 if hex.EncodeToString(output) != v.okm {
121 …tation and test vector differ. Computation: %q, Test Vector %q", hex.EncodeToString(output), v.okm)
153 … and expected result do not match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), test.OKM)
165 …and invalid expected result match:\nComputed: %q\nExpected: %q", hex.EncodeToString(res), test.OKM)
/aosp_15_r20/external/tink/go/integration/gcpkms/
H A Dgcp_kms_aead.go47 Plaintext: base64.URLEncoding.EncodeToString(plaintext),
48 AdditionalAuthenticatedData: base64.URLEncoding.EncodeToString(associatedData),
62 Ciphertext: base64.URLEncoding.EncodeToString(ciphertext),
63 AdditionalAuthenticatedData: base64.URLEncoding.EncodeToString(associatedData),
/aosp_15_r20/external/tink/go/aead/subtle/
H A Daes_gcm_siv_test.go52 ctHex := hex.EncodeToString(ct)
130 hex.EncodeToString(decrypted), hex.EncodeToString(testCase.Msg))
163 hex.EncodeToString(decrypted), hex.EncodeToString(testCase.Msg))
/aosp_15_r20/external/tink/go/keyset/
H A Djson_io_test.go88 …}`, base64.StdEncoding.EncodeToString([]byte(gcmkey)), base64.StdEncoding.EncodeToString([]byte(ea…
143 }`, base64.StdEncoding.EncodeToString([]byte(gcmkey)))
188 }`, base64.StdEncoding.EncodeToString(gcmkey))
214 }`, base64.StdEncoding.EncodeToString(gcmkey))
/aosp_15_r20/external/tink/go/streamingaead/subtle/noncebased/
H A Dnoncebased_test.go208 …:\nsegment: %s\nnonce: %s\ntag: %s", hex.EncodeToString(segment), hex.EncodeToString(nonce), hex.E…
275 …orf("decrypted data does not match. Got=%s;want=%s", hex.EncodeToString(got), hex.EncodeToString(w…
/aosp_15_r20/prebuilts/go/linux-x86/src/encoding/base32/
Dbase32_test.go58 got := StdEncoding.EncodeToString([]byte(p.decoded))
510 StdEncoding.EncodeToString(data)
524 data := StdEncoding.EncodeToString(make([]byte, 8192))
533 defaultPadding := StdEncoding.EncodeToString([]byte(testcase.decoded))
534 customPadding := StdEncoding.WithPadding('@').EncodeToString([]byte(testcase.decoded))
548 defaultPadding := StdEncoding.EncodeToString([]byte(testcase.decoded))
549 customPadding := StdEncoding.WithPadding(NoPadding).EncodeToString([]byte(testcase.decoded))
572 encoded := enc.EncodeToString([]byte(input))
587 encoded := StdEncoding.EncodeToString([]byte("foobar"))
/aosp_15_r20/external/tink/go/integration/hcvault/
H A Dhcvault_aead.go63 "plaintext": base64.StdEncoding.EncodeToString(plaintext),
64 "context": base64.StdEncoding.EncodeToString(associatedData),
82 "context": base64.StdEncoding.EncodeToString(associatedData),

123456