HomeSort by relevance Sort by last modified time
    Searched refs:keySizeInBytes (Results 1 - 6 of 6) sorted by null

  /development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
BrokenKeyDerivationActivity.java 71 private static SecretKey deriveKeyInsecurely(String password, int keySizeInBytes) {
74 InsecureSHA1PRNGKeyDerivator.deriveInsecureKey(passwordBytes, keySizeInBytes),
81 private SecretKey deriveKeySecurely(String password, int keySizeInBytes) {
84 100 /* iterationCount */, keySizeInBytes * 8 /* key size in bits */);
InsecureSHA1PRNGKeyDerivator.java 36 * @param keySizeInBytes length of the array returned
38 public static byte[] deriveInsecureKey(byte[] seed, int keySizeInBytes) {
41 byte[] key = new byte[keySizeInBytes];
  /external/wycheproof/java/com/google/security/wycheproof/testcases/
CipherOutputStreamTest.java 42 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) {
43 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES");
CipherInputStreamTest.java 43 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) {
44 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES");
  /external/tpm2/
CpriECC.c 477 UINT16 keySizeInBytes;
502 keySizeInBytes = (UINT16) ((EC_GROUP_get_degree(group)+7)/8);
525 Point2B(group, K, pK, (INT16)keySizeInBytes, context);
536 Point2B(group, L, pL, (INT16)keySizeInBytes, context);
561 Point2B(group, E, pE, (INT16)keySizeInBytes, context);
680 INT16 keySizeInBytes;
708 || (keySizeInBytes = (INT16) BN_num_bytes(bnNm1)) > MAX_ECC_KEY_BYTES)
728 pAssert(keySizeInBytes <= MAX_ECC_KEY_BYTES);
729 if ( BN_bin2bn(withExtra, keySizeInBytes+8, bnD) == NULL
734 if(BnTo2B(&dOut->b, bnD, keySizeInBytes) != 1
    [all...]
CryptUtil.c     [all...]

Completed in 2215 milliseconds