/external/tink/go/internal/aead/ |
D | aes_gcm_insecure_iv_test.go | 39 key := random.GetRandomBytes(uint32(keySize)) 44 iv := random.GetRandomBytes(aead.AESGCMIVSize) 45 pt := random.GetRandomBytes(32) 46 ad := random.GetRandomBytes(32) 86 key := random.GetRandomBytes(uint32(keySize)) 91 iv := random.GetRandomBytes(aead.AESGCMIVSize) 92 pt := random.GetRandomBytes(32) 93 ad := random.GetRandomBytes(32) 120 key := random.GetRandomBytes(uint32(keySize)) 125 iv := random.GetRandomBytes(aead.AESGCMIVSize) [all …]
|
D | chacha20poly1305_insecure_nonce_test.go | 65 key := random.GetRandomBytes(chacha20poly1305.KeySize) 72 pt := random.GetRandomBytes(uint32(i)) 76 nonce := random.GetRandomBytes(chacha20poly1305.NonceSize) 105 pt := random.GetRandomBytes(dataSize) 106 aad := random.GetRandomBytes(dataSize / 3) 107 key := random.GetRandomBytes(chacha20poly1305.KeySize) 114 nonce := random.GetRandomBytes(chacha20poly1305.NonceSize) 140 nonce := random.GetRandomBytes(chacha20poly1305.NonceSize) 170 key := random.GetRandomBytes(chacha20poly1305.KeySize) 179 nonce := random.GetRandomBytes(chacha20poly1305.NonceSize) [all …]
|
/external/tink/go/aead/subtle/ |
D | aes_gcm_test.go | 39 key := random.GetRandomBytes(keySize) 41 ad := random.GetRandomBytes(32) 42 pt := random.GetRandomBytes(32) 64 key := random.GetRandomBytes(keySize) 69 ad := random.GetRandomBytes(5) 71 pt := random.GetRandomBytes(uint32(ptSize)) 90 pt := random.GetRandomBytes(uint32(ptSize)) 91 ad := random.GetRandomBytes(uint32(ptSize / 3)) 93 key := random.GetRandomBytes(keySize) 106 ad := random.GetRandomBytes(33) [all …]
|
D | xchacha20poly1305_test.go | 68 key := random.GetRandomBytes(chacha20poly1305.KeySize) 78 pt := random.GetRandomBytes(uint32(i)) 121 pt := random.GetRandomBytes(dataSize) 122 aad := random.GetRandomBytes(dataSize / 3) 123 key := random.GetRandomBytes(chacha20poly1305.KeySize) 184 key := random.GetRandomBytes(chacha20poly1305.KeySize) 255 key := random.GetRandomBytes(chacha20poly1305.KeySize) 260 plaintext := random.GetRandomBytes(13) 261 associatedData := random.GetRandomBytes(17)
|
D | aes_gcm_siv_test.go | 34 key := random.GetRandomBytes(keySize) 44 key := random.GetRandomBytes(16) 62 ad := random.GetRandomBytes(33) 63 key := random.GetRandomBytes(16) 64 pt := random.GetRandomBytes(32)
|
D | chacha20poly1305_test.go | 66 key := random.GetRandomBytes(chacha20poly1305.KeySize) 76 pt := random.GetRandomBytes(uint32(i)) 119 pt := random.GetRandomBytes(dataSize) 120 ad := random.GetRandomBytes(dataSize / 3) 121 key := random.GetRandomBytes(chacha20poly1305.KeySize) 182 key := random.GetRandomBytes(chacha20poly1305.KeySize)
|
D | aes_ctr_test.go | 128 key := random.GetRandomBytes(16) 194 key := random.GetRandomBytes(16) 202 message := random.GetRandomBytes(uint32(i)) 224 key := random.GetRandomBytes(16) 231 message := random.GetRandomBytes(uint32(i))
|
/external/tink/go/keyderivation/internal/streamingprf/ |
D | hkdf_streaming_prf_key_manager_test.go | 45 salt: random.GetRandomBytes(16), 54 salt: random.GetRandomBytes(16), 64 KeyValue: random.GetRandomBytes(32), 78 r, err := prf.Compute(random.GetRandomBytes(32)) 96 KeyValue: random.GetRandomBytes(32), 142 Salt: random.GetRandomBytes(16), 144 KeyValue: random.GetRandomBytes(32), 176 random.GetRandomBytes(12), 204 if _, err := km.NewKey(random.GetRandomBytes(16)); !strings.Contains(err.Error(), notImplemented) { 207 …if _, err := km.NewKeyData(random.GetRandomBytes(16)); !strings.Contains(err.Error(), notImplement…
|
/external/tink/cc/subtle/ |
D | random.cc | 38 Random::GetRandomBytes( in GetRandomUint() 57 util::Status Random::GetRandomBytes(absl::Span<char> buffer) { in GetRandomBytes() function in crypto::tink::subtle::Random 67 std::string Random::GetRandomBytes(size_t length) { in GetRandomBytes() function in crypto::tink::subtle::Random 72 GetRandomBytes(absl::MakeSpan(buffer)).IgnoreError(); in GetRandomBytes() 82 GetRandomBytes( in GetRandomKeyBytes()
|
D | aes_gcm_hkdf_stream_segment_encrypter_test.cc | 52 params.salt = Random::GetRandomBytes(key_size); in TEST() 113 params.salt = Random::GetRandomBytes(key_size); in TEST() 134 params.salt = Random::GetRandomBytes(key_size + salt_size_delta); in TEST() 154 params.salt = Random::GetRandomBytes(key_size); in TEST() 182 params.salt = Random::GetRandomBytes(key_size); in TEST()
|
/external/tink/go/mac/subtle/ |
D | hmac_test.go | 84 _, err := subtle.NewHMAC("MD5", random.GetRandomBytes(16), 32) 89 _, err = subtle.NewHMAC("SHA256", random.GetRandomBytes(1), 32) 94 _, err = subtle.NewHMAC("SHA256", random.GetRandomBytes(16), 9) 99 _, err = subtle.NewHMAC("SHA1", random.GetRandomBytes(16), 21) 103 _, err = subtle.NewHMAC("SHA256", random.GetRandomBytes(16), 33) 107 _, err = subtle.NewHMAC("SHA512", random.GetRandomBytes(16), 65) 114 cipher, err := subtle.NewHMAC("SHA256", random.GetRandomBytes(16), 32) 128 cipher, err := subtle.NewHMAC("SHA256", random.GetRandomBytes(16), 32)
|
/external/tink/cc/internal/ |
D | test_random_access_stream_test.cc | 40 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 57 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 71 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 83 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 93 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 117 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 131 std::string content_to_read = subtle::Random::GetRandomBytes(4 * 1024); in TEST() 144 std::string content_to_read = subtle::Random::GetRandomBytes(4 * 1024); in TEST()
|
/external/tink/python/tink/cc/ |
D | input_stream_adapter_test.cc | 44 std::string data = subtle::Random::GetRandomBytes(10); in TEST() 52 std::string data = subtle::Random::GetRandomBytes(10); in TEST() 62 std::string data = subtle::Random::GetRandomBytes(15); in TEST() 79 std::string data = subtle::Random::GetRandomBytes(40); in TEST() 87 std::string data = subtle::Random::GetRandomBytes(20); in TEST() 95 std::string data = subtle::Random::GetRandomBytes(20); in TEST()
|
/external/tink/go/daead/ |
D | aes_siv_key_manager_test.go | 66 KeyValue: random.GetRandomBytes(16), 70 KeyValue: random.GetRandomBytes(32), 74 KeyValue: random.GetRandomBytes(63), 78 KeyValue: random.GetRandomBytes(65), 83 KeyValue: random.GetRandomBytes(subtle.AESSIVKeySize), 225 rand := random.GetRandomBytes(subtle.AESSIVKeySize) 280 buf := bytes.NewBuffer(random.GetRandomBytes(subtle.AESSIVKeySize)) 317 buf := bytes.NewBuffer(random.GetRandomBytes(subtle.AESSIVKeySize)) 342 buf := bytes.NewBuffer(random.GetRandomBytes(subtle.AESSIVKeySize)) 348 insufficientBuf := bytes.NewBuffer(random.GetRandomBytes(subtle.AESSIVKeySize - 1)) [all …]
|
/external/pigweed/pw_tls_client/public/pw_tls_client/ |
D | entropy.h | 24 Status GetRandomBytes(ByteSpan dest); 27 inline Status GetRandomBytes(span<unsigned char> dest) { in GetRandomBytes() function 28 return GetRandomBytes(as_writable_bytes(dest)); in GetRandomBytes()
|
/external/tink/go/hybrid/ |
D | ecies_aead_hkdf_dem_helper_test.go | 74 pt := random.GetRandomBytes(20) 75 ad := random.GetRandomBytes(20) 80 sk := random.GetRandomBytes(rDem.GetSymmetricKeySize()) 111 sk = random.GetRandomBytes(rDem.GetSymmetricKeySize() - 1) 117 sk = random.GetRandomBytes(rDem.GetSymmetricKeySize() + 1)
|
/external/tink/go/aead/ |
D | xchacha20poly1305_key_manager_test.go | 64 KeyValue: random.GetRandomBytes(17), 68 KeyValue: random.GetRandomBytes(25), 72 KeyValue: random.GetRandomBytes(33), 77 KeyValue: random.GetRandomBytes(chacha20poly1305.KeySize), 197 rand := random.GetRandomBytes(chacha20poly1305.KeySize) 248 buf := bytes.NewBuffer(random.GetRandomBytes(chacha20poly1305.KeySize)) 270 buf := bytes.NewBuffer(random.GetRandomBytes(chacha20poly1305.KeySize)) 276 insufficientBuf := bytes.NewBuffer(random.GetRandomBytes(chacha20poly1305.KeySize - 1)) 290 pt := random.GetRandomBytes(32) 291 aad := random.GetRandomBytes(32)
|
D | chacha20poly1305_key_manager_test.go | 133 KeyValue: random.GetRandomBytes(17), 137 KeyValue: random.GetRandomBytes(25), 141 KeyValue: random.GetRandomBytes(33), 146 KeyValue: random.GetRandomBytes(chacha20poly1305.KeySize), 158 pt := random.GetRandomBytes(32) 159 aad := random.GetRandomBytes(32)
|
/external/tink/cc/signature/ |
D | ed25519_public_key_test.cc | 63 std::string public_key_bytes = subtle::Random::GetRandomBytes(32); in TEST_P() 81 std::string public_key_bytes = subtle::Random::GetRandomBytes(31); in TEST() 99 std::string public_key_bytes = subtle::Random::GetRandomBytes(32); in TEST() 121 std::string public_key_bytes = subtle::Random::GetRandomBytes(32); in TEST_P() 148 std::string public_key_bytes = subtle::Random::GetRandomBytes(32); in TEST() 171 std::string public_key_bytes1 = subtle::Random::GetRandomBytes(32); in TEST() 172 std::string public_key_bytes2 = subtle::Random::GetRandomBytes(32); in TEST() 195 std::string public_key_bytes = subtle::Random::GetRandomBytes(32); in TEST()
|
/external/tink/cc/util/ |
D | test_util_test.cc | 54 key.set_key_value(crypto::tink::subtle::Random::GetRandomBytes(11)); in TEST() 98 EXPECT_THAT(ZTestUniformString(subtle::Random::GetRandomBytes(32)), IsOk()); in TEST() 109 ZTestCrosscorrelationUniformStrings(subtle::Random::GetRandomBytes(32), in TEST() 110 subtle::Random::GetRandomBytes(32)), in TEST() 123 ZTestAutocorrelationUniformString(subtle::Random::GetRandomBytes(32)), in TEST() 129 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 163 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 206 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST() 251 std::string stream_content = subtle::Random::GetRandomBytes(stream_size); in TEST()
|
/external/tink/go/testutil/ |
D | testutil_test.go | 110 if err := testutil.ZTestUniformString(random.GetRandomBytes(32)); err != nil { 124 if err := testutil.ZTestCrosscorrelationUniformStrings(random.GetRandomBytes(32), 125 random.GetRandomBytes(32)); err != nil { 140 if err := testutil.ZTestAutocorrelationUniformString(random.GetRandomBytes(32)); err != nil { 146 original := random.GetRandomBytes(8)
|
/external/tink/cc/core/ |
D | restricted_data_test.cc | 36 const std::string secret = Random::GetRandomBytes(32); in TEST() 56 const std::string secret = Random::GetRandomBytes(32); in TEST() 99 const std::string secret = Random::GetRandomBytes(32); in TEST() 108 const std::string secret = Random::GetRandomBytes(32); in TEST()
|
/external/tink/go/hybrid/internal/hpke/ |
D | encrypt_decrypt_test.go | 122 wantPT := random.GetRandomBytes(200) 123 ctxInfo := random.GetRandomBytes(100) 149 wantPT := random.GetRandomBytes(200) 150 ctxInfo := random.GetRandomBytes(100) 198 wantPT := random.GetRandomBytes(200) 226 wantPT := random.GetRandomBytes(200) 227 ctxInfo := random.GetRandomBytes(100)
|
/external/tink/go/subtle/random/ |
D | random.go | 26 func GetRandomBytes(n uint32) []byte { func 37 b := GetRandomBytes(4)
|
/external/tink/go/signature/subtle/ |
D | ecdsa_test.go | 148 X: new(big.Int).SetBytes(random.GetRandomBytes(32)), 149 Y: new(big.Int).SetBytes(random.GetRandomBytes(32)), 150 Z: new(big.Int).SetBytes(random.GetRandomBytes(32)), 212 r := new(big.Int).SetBytes(random.GetRandomBytes(32)) 213 s := new(big.Int).SetBytes(random.GetRandomBytes(32))
|