/aosp14/system/core/trusty/keymaster/set_attestation_key/ |
H A D | set_attestation_key.cpp | 86 keymaster_algorithm_t algorithm; member 113 keymaster_algorithm_t algorithm; member 123 req.algorithm = algorithm; in set_attestation_key_or_cert_bin() 216 *algorithm = KM_ALGORITHM_RSA; in str_to_algorithm() 218 *algorithm = KM_ALGORITHM_EC; in str_to_algorithm() 229 keymaster_algorithm_t algorithm; in set_attestation_key_or_cert() local 231 ret = str_to_algorithm(&algorithm, algorithm_str); in set_attestation_key_or_cert() 252 ret = str_to_algorithm(&req.algorithm, algorithm_str); in clear_cert_chain() 267 const xmlChar* algorithm = NULL; in process_xml() local 282 ret = clear_cert_chain(algorithm); in process_xml() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
H A D | MessageDigestPerfTest.java | 98 public void time(Algorithm algorithm) throws Exception { in time() argument 101 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), mProvider); in time() 109 public void timeLargeArray(Algorithm algorithm) throws Exception { in timeLargeArray() argument 112 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), mProvider); in timeLargeArray() 120 public void timeSmallChunkOfLargeArray(Algorithm algorithm) throws Exception { in timeSmallChunkOfLargeArray() argument 123 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), mProvider); in timeSmallChunkOfLargeArray() 131 public void timeSmallByteBuffer(Algorithm algorithm) throws Exception { in timeSmallByteBuffer() argument 144 public void timeSmallDirectByteBuffer(Algorithm algorithm) throws Exception { in timeSmallDirectByteBuffer() argument 157 public void timeLargeByteBuffer(Algorithm algorithm) throws Exception { in timeLargeByteBuffer() argument 170 public void timeLargeDirectByteBuffer(Algorithm algorithm) throws Exception { in timeLargeDirectByteBuffer() argument [all …]
|
H A D | SignaturePerfTest.java | 90 public void setUp(Algorithm algorithm) throws Exception { in setUp() argument 91 this.mSignatureAlgorithm = algorithm.toString(); in setUp() 117 public void timeSign(Algorithm algorithm, Implementation implementation) throws Exception { in timeSign() argument 118 setUp(algorithm); in timeSign() 140 public void timeVerify(Algorithm algorithm, Implementation implementation) throws Exception { in timeVerify() argument 141 setUp(algorithm); in timeVerify()
|
H A D | KeyPairGeneratorPerfTest.java | 62 public void setUp(Algorithm algorithm, Implementation implementation) throws Exception { in setUp() argument 63 this.mGeneratorAlgorithm = algorithm.toString(); in setUp() 78 public void time(Algorithm algorithm, Implementation implementation) throws Exception { in time() argument 79 setUp(algorithm, implementation); in time()
|
/aosp14/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
H A D | BlobHandle.java | 62 @NonNull public final String algorithm; field in BlobHandle 94 this.algorithm = algorithm; in BlobHandle() 102 this.algorithm = in.readString(); in BlobHandle() 110 public static @NonNull BlobHandle create(@NonNull String algorithm, @NonNull byte[] digest, in create() argument 194 dest.writeString(algorithm); in writeToParcel() 210 return this.algorithm.equals(other.algorithm) in equals() 219 return Objects.hash(algorithm, Arrays.hashCode(digest), label, expiryTimeMillis, tag); in hashCode() 225 fout.println("algo: " + algorithm); in dump() 237 Preconditions.checkArgumentIsSupported(SUPPORTED_ALGOS, algorithm); in assertIsValid() 250 + "algo:" + algorithm + "," in toString() [all …]
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | PasswordUtils.java | 53 public static SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordKey() argument 54 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds); in buildPasswordKey() 67 public static String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordHash() argument 68 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds); in buildPasswordHash() 109 public static byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, in makeKeyChecksum() argument 116 Key checksum = buildCharArrayKey(algorithm, mkAsChar, salt, rounds); in makeKeyChecksum() 120 private static SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, in buildCharArrayKey() argument 123 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm); in buildCharArrayKey()
|
/aosp14/frameworks/base/core/java/android/security/net/config/ |
H A D | Pin.java | 39 public static boolean isSupportedDigestAlgorithm(String algorithm) { in isSupportedDigestAlgorithm() argument 42 return "SHA-256".equalsIgnoreCase(algorithm); in isSupportedDigestAlgorithm() 48 public static int getDigestLength(String algorithm) { in getDigestLength() argument 49 if ("SHA-256".equalsIgnoreCase(algorithm)) { in getDigestLength() 52 throw new IllegalArgumentException("Unsupported digest algorithm: " + algorithm); in getDigestLength()
|
H A D | NetworkSecurityTrustManager.java | 131 for (String algorithm : pinAlgorithms) { in checkPins() 132 MessageDigest md = digestMap.get(algorithm); in checkPins() 135 md = MessageDigest.getInstance(algorithm); in checkPins() 139 digestMap.put(algorithm, md); in checkPins() 141 if (pinSet.pins.contains(new Pin(algorithm, md.digest(encodedSPKI)))) { in checkPins()
|
/aosp14/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | AndroidKeyStoreBCWorkaroundProvider.java | 246 private void putMacImpl(String algorithm, String implClass) { in putMacImpl() argument 247 put("Mac." + algorithm, implClass); in putMacImpl() 248 put("Mac." + algorithm + " SupportedKeyClasses", KEYSTORE_SECRET_KEY_CLASS_NAME); in putMacImpl() 262 private void putSignatureImpl(String algorithm, String implClass) { in putSignatureImpl() argument 263 put("Signature." + algorithm, implClass); in putSignatureImpl() 264 put("Signature." + algorithm + " SupportedKeyClasses", in putSignatureImpl()
|
H A D | AndroidKeyStoreProvider.java | 151 private void putSecretKeyFactoryImpl(String algorithm) { in putSecretKeyFactoryImpl() argument 152 put("SecretKeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreSecretKeyFactorySpi"); in putSecretKeyFactoryImpl() 155 private void putKeyFactoryImpl(String algorithm) { in putKeyFactoryImpl() argument 156 put("KeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreKeyFactorySpi"); in putKeyFactoryImpl() 217 @NonNull KeyStoreSecurityLevel iSecurityLevel, int algorithm) in makeAndroidKeyStorePublicKeyFromKeyEntryResponse() argument 316 @NonNull KeyEntryResponse response, int algorithm, int digest) in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse() argument 321 algorithm, digest); in makeAndroidKeyStoreSecretKeyFromKeyEntryResponse()
|
H A D | AndroidKeyStorePrivateKey.java | 34 long keyId, @NonNull Authorization[] authorizations, @NonNull String algorithm, in AndroidKeyStorePrivateKey() argument 36 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStorePrivateKey()
|
H A D | AndroidKeyStoreSecretKey.java | 34 @NonNull KeyMetadata metadata, @NonNull String algorithm, in AndroidKeyStoreSecretKey() argument 36 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStoreSecretKey()
|
H A D | AndroidKeyStoreEdECPrivateKey.java | 37 @NonNull String algorithm, in AndroidKeyStoreEdECPrivateKey() argument 39 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStoreEdECPrivateKey()
|
H A D | AndroidKeyStoreXDHPrivateKey.java | 40 @NonNull String algorithm, in AndroidKeyStoreXDHPrivateKey() argument 42 super(descriptor, keyId, authorizations, algorithm, securityLevel); in AndroidKeyStoreXDHPrivateKey()
|
H A D | AndroidKeyStorePublicKey.java | 40 @NonNull String algorithm, @NonNull KeyStoreSecurityLevel securityLevel) { in AndroidKeyStorePublicKey() argument 41 super(descriptor, metadata.key.nspace, metadata.authorizations, algorithm, securityLevel); in AndroidKeyStorePublicKey()
|
H A D | AndroidKeyStoreXDHPublicKey.java | 58 @NonNull String algorithm, in AndroidKeyStoreXDHPublicKey() argument 61 super(descriptor, metadata, encodedKey, algorithm, iSecurityLevel); in AndroidKeyStoreXDHPublicKey()
|
H A D | AndroidKeyStoreKey.java | 58 @NonNull String algorithm, in AndroidKeyStoreKey() argument 63 mAlgorithm = algorithm; in AndroidKeyStoreKey()
|
/aosp14/frameworks/base/core/java/android/security/keystore/recovery/ |
H A D | KeyDerivationParams.java | 101 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt) { in KeyDerivationParams() argument 102 this(algorithm, salt, /*memoryDifficulty=*/ -1); in KeyDerivationParams() 108 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt, in KeyDerivationParams() argument 110 mAlgorithm = algorithm; in KeyDerivationParams()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/ |
H A D | TvPipKeepClearAlgorithmTest.kt | 52 private lateinit var algorithm: TvPipKeepClearAlgorithm 70 algorithm = TvPipKeepClearAlgorithm() 71 algorithm.setScreenSize(SCREEN_SIZE) 72 algorithm.setMovementBounds(movementBounds) 73 algorithm.pipAreaPadding = PADDING 74 algorithm.stashOffset = STASH_OFFSET 75 algorithm.setGravity(gravity) 76 algorithm.maxRestrictedDistanceFraction = 0.3 320 (algorithm.maxRestrictedDistanceFraction * SCREEN_SIZE.width).toInt() 491 algorithm.setPipPermanentDecorInsets(insets) [all …]
|
/aosp14/frameworks/base/keystore/java/android/security/keystore/ |
H A D | KeyProperties.java | 254 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterAsymmetricKeyAlgorithm() 255 if (KEY_ALGORITHM_EC.equalsIgnoreCase(algorithm) in toKeymasterAsymmetricKeyAlgorithm() 256 || KEY_ALGORITHM_XDH.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm() 258 } else if (KEY_ALGORITHM_RSA.equalsIgnoreCase(algorithm)) { in toKeymasterAsymmetricKeyAlgorithm() 280 @NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterSecretKeyAlgorithm() 281 if (KEY_ALGORITHM_AES.equalsIgnoreCase(algorithm)) { in toKeymasterSecretKeyAlgorithm() 283 } else if (KEY_ALGORITHM_3DES.equalsIgnoreCase(algorithm)) { in toKeymasterSecretKeyAlgorithm() 285 } else if (algorithm.toUpperCase(Locale.US).startsWith("HMAC")) { in toKeymasterSecretKeyAlgorithm() 289 "Unsupported secret key algorithm: " + algorithm); in toKeymasterSecretKeyAlgorithm() 328 public static int toKeymasterDigest(@NonNull @KeyAlgorithmEnum String algorithm) { in toKeymasterDigest() argument [all …]
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | TextDirectionHeuristics.java | 138 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { in TextDirectionHeuristicImpl() argument 139 mAlgorithm = algorithm; in TextDirectionHeuristicImpl() 178 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, in TextDirectionHeuristicInternal() argument 180 super(algorithm); in TextDirectionHeuristicInternal()
|
/aosp14/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/ |
H A D | MediaDrmSigner.java | 134 String algorithm, byte[] wrappedKey, byte[] message) { in signRSA() argument 135 return drm.signRSA(sessionId, algorithm, wrappedKey, message); in signRSA()
|
/aosp14/frameworks/base/core/java/android/util/jar/ |
H A D | StrictJarVerifier.java | 246 final String algorithm = DIGEST_ALGORITHMS[i]; in initEntry() local 247 final String hash = attributes.getValue(algorithm + "-Digest"); in initEntry() 254 return new VerifierEntry(name, MessageDigest.getInstance(algorithm), hashBytes, in initEntry() 505 String algorithm = DIGEST_ALGORITHMS[i]; in verify() local 506 String hash = attributes.getValue(algorithm + entry); in verify() 513 md = MessageDigest.getInstance(algorithm); in verify()
|
/aosp14/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
H A D | BlobStoreManagerShellCommand.java | 150 args.algorithm = getNextArgRequired(); in parseOptions() 181 public String algorithm = BlobHandle.ALGO_SHA_256; field in BlobStoreManagerShellCommand.ParsedArgs 189 return BlobHandle.create(algorithm, digest, label, expiryTimeMillis, tag); in getBlobHandle()
|
/aosp14/frameworks/base/core/java/org/apache/http/conn/ssl/ |
H A D | SSLSocketFactory.java | 191 String algorithm, in SSLSocketFactory() argument 200 if (algorithm == null) { in SSLSocketFactory() 201 algorithm = TLS; in SSLSocketFactory() 211 this.sslcontext = SSLContext.getInstance(algorithm); in SSLSocketFactory()
|