Home
last modified time | relevance | path

Searched refs:keySizeInBytes (Results 1 – 4 of 4) sorted by relevance

/external/tpm2/
DCpriECC.c477 UINT16 keySizeInBytes; in _cpri__EccCommitCompute() local
502 keySizeInBytes = (UINT16) ((EC_GROUP_get_degree(group)+7)/8); in _cpri__EccCommitCompute()
525 Point2B(group, K, pK, (INT16)keySizeInBytes, context); in _cpri__EccCommitCompute()
536 Point2B(group, L, pL, (INT16)keySizeInBytes, context); in _cpri__EccCommitCompute()
561 Point2B(group, E, pE, (INT16)keySizeInBytes, context); in _cpri__EccCommitCompute()
680 INT16 keySizeInBytes; in _cpri__GenerateKeyEcc() local
708 || (keySizeInBytes = (INT16) BN_num_bytes(bnNm1)) > MAX_ECC_KEY_BYTES) in _cpri__GenerateKeyEcc()
728 pAssert(keySizeInBytes <= MAX_ECC_KEY_BYTES); in _cpri__GenerateKeyEcc()
729 if ( BN_bin2bn(withExtra, keySizeInBytes+8, bnD) == NULL in _cpri__GenerateKeyEcc()
734 if(BnTo2B(&dOut->b, bnD, keySizeInBytes) != 1) in _cpri__GenerateKeyEcc()
DCryptUtil.c3684 UINT16 keySizeInBytes; in CryptAreKeySizesConsistent() local
3686 keySizeInBytes = CryptEccGetKeySizeInBytes(curveId); in CryptAreKeySizesConsistent()
3687 consistent = keySizeInBytes > 0 in CryptAreKeySizesConsistent()
3688 && publicArea->unique.ecc.x.t.size <= keySizeInBytes in CryptAreKeySizesConsistent()
3689 && publicArea->unique.ecc.y.t.size <= keySizeInBytes; in CryptAreKeySizesConsistent()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DCipherOutputStreamTest.java42 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { in randomKey() argument
43 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES"); in randomKey()
DCipherInputStreamTest.java43 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { in randomKey() argument
44 return new SecretKeySpec(randomBytes(keySizeInBytes), "AES"); in randomKey()