Home
last modified time | relevance | path

Searched refs:randomBytes (Results 1 – 25 of 29) sorted by relevance

12

/external/tpm2-tss/test/integration/
Desys-get-random.int.c36 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 …]
Dfapi-get-random.int.c42 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/
DEsys_GetRandom.c66 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/
DGetRandom.c54 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/
DTss2_Sys_GetRandom.c43 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/
Dutil.kt41 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()
DHashingTest.kt141 val r32k = randomBytes(32768)
DAbstractBufferedSourceTest.kt1018 val commonPrefix = randomBytes(Segment.SIZE + 10) in selectSpanningMultipleSegments()
/external/okhttp/okio/okio/src/test/java/okio/
DTestUtil.java40 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()
DInflaterSourceTest.java25 import static okio.TestUtil.randomBytes;
72 ByteString original = randomBytes(1024 * 1024); in inflatePoorlyCompressed()
DDeflaterSinkTest.java25 import static okio.TestUtil.randomBytes;
68 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DCipherOutputStreamTest.java36 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()
DCipherInputStreamTest.java37 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/
DRandomDataImpl.java165 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/
DTestUtil.kt56 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/
DGetRandom_fp.h52 TPM2B_DIGEST randomBytes; member
/external/okio/okio/src/jvmTest/java/okio/
DDeflaterSinkTest.java27 import static okio.TestUtil.randomBytes;
69 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed()
DInflaterSourceTest.java30 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/
DDefaultPlaybackSessionManager.java251 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/
DSpdy3ConnectionTest.java1413 String longString = ByteString.of(randomBytes(2048)).base64();
1433 private byte[] randomBytes(int length) {
/external/tpm2-tss/include/tss2/
Dtss2_sys.h680 TPM2B_DIGEST *randomBytes);
686 TPM2B_DIGEST *randomBytes,
Dtss2_esys.h1021 TPM2B_DIGEST **randomBytes);
1034 TPM2B_DIGEST **randomBytes);
/external/tpm2-tss/test/unit/
Desys-sequence-finish.c622 TPM2B_DIGEST *randomBytes; in check_GetRandom() local
625 r = Esys_GetRandom_Finish(esys_context, &randomBytes); in check_GetRandom()
Desys-tcti-rcs.c963 TPM2B_DIGEST *randomBytes; in test_GetRandom() local
967 ESYS_TR_NONE, bytesRequested, &randomBytes); in test_GetRandom()
Desys-tpm-rcs.c943 TPM2B_DIGEST *randomBytes; in test_GetRandom() local
947 ESYS_TR_NONE, bytesRequested, &randomBytes); in test_GetRandom()

12