/external/tpm2-tss/test/integration/ |
D | esys-get-random.int.c | 36 TPM2B_DIGEST *randomBytes; in test_esys_get_random() local 38 48, &randomBytes); in test_esys_get_random() 44 LOGBLOB_DEBUG(&randomBytes->buffer[0], randomBytes->size, in test_esys_get_random() 45 "Randoms (count=%i):", randomBytes->size); in test_esys_get_random() 46 Esys_Free(randomBytes); in test_esys_get_random() 75 &randomBytes); in test_esys_get_random() 81 LOGBLOB_DEBUG(&randomBytes->buffer[0], randomBytes->size, in test_esys_get_random() 82 "Randoms (count=%i):", randomBytes->size); in test_esys_get_random() 83 free(randomBytes); in test_esys_get_random() 103 &randomBytes); in test_esys_get_random() [all …]
|
D | fapi-get-random.int.c | 42 uint8_t *randomBytes; in test_fapi_get_random() local 60 r = Fapi_GetRandom_Finish(context, &randomBytes); in test_fapi_get_random() 64 Fapi_Free(randomBytes); in test_fapi_get_random() 66 r = Fapi_GetRandom(context, bytesRequested, &randomBytes); in test_fapi_get_random() 69 Fapi_Free(randomBytes); in test_fapi_get_random()
|
/external/tpm2-tss/src/tss2-esys/api/ |
D | Esys_GetRandom.c | 66 TPM2B_DIGEST **randomBytes) in Esys_GetRandom() argument 85 r = Esys_GetRandom_Finish(esysContext, randomBytes); in Esys_GetRandom() 219 TPM2B_DIGEST **randomBytes) in Esys_GetRandom_Finish() argument 223 esysContext, randomBytes); in Esys_GetRandom_Finish() 239 if (randomBytes != NULL) { in Esys_GetRandom_Finish() 240 *randomBytes = calloc(sizeof(TPM2B_DIGEST), 1); in Esys_GetRandom_Finish() 241 if (*randomBytes == NULL) { in Esys_GetRandom_Finish() 299 (randomBytes != NULL) ? *randomBytes in Esys_GetRandom_Finish() 310 if (randomBytes != NULL) in Esys_GetRandom_Finish() 311 SAFE_FREE(*randomBytes); in Esys_GetRandom_Finish()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Random/ |
D | GetRandom.c | 54 out->randomBytes.t.size = sizeof(TPMU_HA); in TPM2_GetRandom() 56 out->randomBytes.t.size = in->bytesRequested; in TPM2_GetRandom() 58 CryptRandomGenerate(out->randomBytes.t.size, out->randomBytes.t.buffer); in TPM2_GetRandom()
|
/external/tpm2-tss/src/tss2-sys/api/ |
D | Tss2_Sys_GetRandom.c | 43 TPM2B_DIGEST *randomBytes) in Tss2_Sys_GetRandom_Complete() argument 57 &ctx->nextData, randomBytes); in Tss2_Sys_GetRandom_Complete() 64 TPM2B_DIGEST *randomBytes, in Tss2_Sys_GetRandom() argument 78 return Tss2_Sys_GetRandom_Complete(sysContext, randomBytes); in Tss2_Sys_GetRandom()
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | util.kt | 41 fun randomBytes(length: Int): ByteString { in randomBytes() method 43 val randomBytes = ByteArray(length) in randomBytes() constant 44 random.nextBytes(randomBytes) in randomBytes() 45 return ByteString.of(*randomBytes) in randomBytes()
|
D | HashingTest.kt | 141 val r32k = randomBytes(32768)
|
D | AbstractBufferedSourceTest.kt | 1018 val commonPrefix = randomBytes(Segment.SIZE + 10) in selectSpanningMultipleSegments()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | TestUtil.java | 40 static ByteString randomBytes(int length) { in randomBytes() method in TestUtil 42 byte[] randomBytes = new byte[length]; in randomBytes() 43 random.nextBytes(randomBytes); in randomBytes() 44 return ByteString.of(randomBytes); in randomBytes()
|
D | InflaterSourceTest.java | 25 import static okio.TestUtil.randomBytes; 72 ByteString original = randomBytes(1024 * 1024); in inflatePoorlyCompressed()
|
D | DeflaterSinkTest.java | 25 import static okio.TestUtil.randomBytes; 68 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed()
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | CipherOutputStreamTest.java | 36 static byte[] randomBytes(int size) { in randomBytes() method in CipherOutputStreamTest 43 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES"); in randomKey() 49 return new GCMParameterSpec(8 * tagSizeInBytes, randomBytes(ivSizeInBytes)); in randomParameters() 70 this.pt = randomBytes(ptSize); in TestVector() 71 this.aad = randomBytes(aadSize); in TestVector()
|
D | CipherInputStreamTest.java | 37 static byte[] randomBytes(int size) { in randomBytes() method in CipherInputStreamTest 44 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES"); in randomKey() 50 return new GCMParameterSpec(8 * tagSizeInBytes, randomBytes(ivSizeInBytes)); in randomParameters() 71 this.pt = randomBytes(ptSize); in TestVector() 72 this.aad = randomBytes(aadSize); in TestVector()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | RandomDataImpl.java | 165 byte[] randomBytes = new byte[(len / 2) + 1]; in nextHexString() 166 ran.nextBytes(randomBytes); in nextHexString() 169 for (int i = 0; i < randomBytes.length; i++) { in nextHexString() 170 Integer c = Integer.valueOf(randomBytes[i]); in nextHexString() 270 byte[] randomBytes = new byte[40]; in nextSecureHexString() 271 secRan.nextBytes(randomBytes); in nextSecureHexString() 272 alg.update(randomBytes); in nextSecureHexString()
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | TestUtil.kt | 56 fun randomBytes(length: Int): ByteString { in randomBytes() method 58 val randomBytes = ByteArray(length) in randomBytes() constant 59 random.nextBytes(randomBytes) in randomBytes() 60 return ByteString.of(*randomBytes) in randomBytes()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/ |
D | GetRandom_fp.h | 52 TPM2B_DIGEST randomBytes; member
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | DeflaterSinkTest.java | 27 import static okio.TestUtil.randomBytes; 69 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed()
|
D | InflaterSourceTest.java | 30 import static okio.TestUtil.randomBytes; 103 ByteString original = randomBytes(1024 * 1024); in inflatePoorlyCompressed()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | DefaultPlaybackSessionManager.java | 251 byte[] randomBytes = new byte[SESSION_ID_LENGTH]; 252 RANDOM.nextBytes(randomBytes); 253 return Base64.encodeToString(randomBytes, Base64.URL_SAFE | Base64.NO_WRAP);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/ |
D | Spdy3ConnectionTest.java | 1413 String longString = ByteString.of(randomBytes(2048)).base64(); 1433 private byte[] randomBytes(int length) {
|
/external/tpm2-tss/include/tss2/ |
D | tss2_sys.h | 680 TPM2B_DIGEST *randomBytes); 686 TPM2B_DIGEST *randomBytes,
|
D | tss2_esys.h | 1021 TPM2B_DIGEST **randomBytes); 1034 TPM2B_DIGEST **randomBytes);
|
/external/tpm2-tss/test/unit/ |
D | esys-sequence-finish.c | 622 TPM2B_DIGEST *randomBytes; in check_GetRandom() local 625 r = Esys_GetRandom_Finish(esys_context, &randomBytes); in check_GetRandom()
|
D | esys-tcti-rcs.c | 963 TPM2B_DIGEST *randomBytes; in test_GetRandom() local 967 ESYS_TR_NONE, bytesRequested, &randomBytes); in test_GetRandom()
|
D | esys-tpm-rcs.c | 943 TPM2B_DIGEST *randomBytes; in test_GetRandom() local 947 ESYS_TR_NONE, bytesRequested, &randomBytes); in test_GetRandom()
|