Home
last modified time | relevance | path

Searched refs:keySizeBits (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreECDSASignatureSpi.java162 long keySizeBits = keyCharacteristics.getUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, -1); in initKey() local
163 if (keySizeBits == -1) { in initKey()
165 } else if (keySizeBits > Integer.MAX_VALUE) { in initKey()
166 throw new InvalidKeyException("Key too large: " + keySizeBits + " bits"); in initKey()
168 mGroupSizeBits = (int) keySizeBits; in initKey()
DAndroidKeyStoreRSACipherSpi.java423 long keySizeBits = keyCharacteristics.getUnsignedInt(KeymasterDefs.KM_TAG_KEY_SIZE, -1); in initKey() local
424 if (keySizeBits == -1) { in initKey()
426 } else if (keySizeBits > Integer.MAX_VALUE) { in initKey()
427 throw new InvalidKeyException("Key too large: " + keySizeBits + " bits"); in initKey()
429 mModulusSizeBytes = (int) ((keySizeBits + 7) / 8); in initKey()
DAndroidKeyStoreKeyPairGeneratorSpi.java762 int keySizeBits, in getCertificateSignatureAlgorithm() argument
795 if (outputSizeBits == keySizeBits) { in getCertificateSignatureAlgorithm()
809 if (bestDigestOutputSizeBits < keySizeBits) { in getCertificateSignatureAlgorithm()
820 && (outputSizeBits >= keySizeBits)) { in getCertificateSignatureAlgorithm()
858 int maxDigestOutputSizeBits = keySizeBits - 30 * 8; in getCertificateSignatureAlgorithm()