Searched defs:algorithm (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStorePrivateKey.java28 public AndroidKeyStorePrivateKey(String alias, int uid, String algorithm) { argument
29 super(alias, uid, algorithm);
H A DAndroidKeyStoreSecretKey.java28 public AndroidKeyStoreSecretKey(String alias, int uid, String algorithm) { argument
29 super(alias, uid, algorithm);
H A DAndroidKeyStorePublicKey.java31 public AndroidKeyStorePublicKey(String alias, int uid, String algorithm, byte[] x509EncodedForm) { argument
32 super(alias, uid, algorithm);
H A DAndroidKeyStoreBCWorkaroundProvider.java244 private void putMacImpl(String algorithm, String implClass) { argument
245 put("Mac." + algorithm, implClass);
246 put("Mac." + algorithm + " SupportedKeyClasses", KEYSTORE_SECRET_KEY_CLASS_NAME);
260 private void putSignatureImpl(String algorithm, String implClass) { argument
261 put("Signature." + algorithm, implClass);
262 put("Signature." + algorithm + " SupportedKeyClasses",
H A DAndroidKeyStoreKey.java31 public AndroidKeyStoreKey(String alias, int uid, String algorithm) { argument
34 mAlgorithm = algorithm;
H A DAndroidKeyStoreProvider.java138 private void putSecretKeyFactoryImpl(String algorithm) { argument
139 put("SecretKeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreSecretKeyFactorySpi");
142 private void putKeyFactoryImpl(String algorithm) { argument
143 put("KeyFactory." + algorithm, PACKAGE_NAME + ".AndroidKeyStoreKeyFactorySpi");
205 throw new ProviderException("Unsupported Android Keystore public key algorithm: "
221 throw new ProviderException("Unsupported Android Keystore public key algorithm: "
257 throw new UnrecoverableKeyException("Key algorithm unknown");
327 throw new UnrecoverableKeyException("Key algorithm unknown");
336 // JCA key algorithm name.
360 throw new UnrecoverableKeyException("Key algorithm unknow
[all...]
H A DKeyProperties.java190 @NonNull @KeyAlgorithmEnum String algorithm) {
191 if (KEY_ALGORITHM_EC.equalsIgnoreCase(algorithm)) {
193 } else if (KEY_ALGORITHM_RSA.equalsIgnoreCase(algorithm)) {
196 throw new IllegalArgumentException("Unsupported key algorithm: " + algorithm);
210 "Unsupported key algorithm: " + keymasterAlgorithm);
215 @NonNull @KeyAlgorithmEnum String algorithm) {
216 if (KEY_ALGORITHM_AES.equalsIgnoreCase(algorithm)) {
218 } else if (KEY_ALGORITHM_3DES.equalsIgnoreCase(algorithm)) {
220 } else if (algorithm
189 toKeymasterAsymmetricKeyAlgorithm( @onNull @eyAlgorithmEnum String algorithm) argument
214 toKeymasterSecretKeyAlgorithm( @onNull @eyAlgorithmEnum String algorithm) argument
263 toKeymasterDigest(@onNull @eyAlgorithmEnum String algorithm) argument
[all...]
/frameworks/base/core/java/android/security/net/config/
H A DPin.java37 public static boolean isSupportedDigestAlgorithm(String algorithm) { argument
40 return "SHA-256".equalsIgnoreCase(algorithm);
46 public static int getDigestLength(String algorithm) { argument
47 if ("SHA-256".equalsIgnoreCase(algorithm)) {
50 throw new IllegalArgumentException("Unsupported digest algorithm: " + algorithm);
/frameworks/base/core/java/android/webkit/
H A DTokenBindingService.java51 * The algorithm that is used to generate the key pair.
83 * If no key pair exists, WebView chooses an algorithm from the list, in
86 * The user can pass {@code null} if any algorithm is acceptable.
89 * @param algorithm The list of algorithms. An IllegalArgumentException is thrown if array is
94 @Nullable String[] algorithm,
93 getKey(Uri origin, @Nullable String[] algorithm, @NonNull ValueCallback<TokenBindingKey> callback) argument
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DDefaultHttpClientTest.java131 private void authenticateDigestAlgorithm(String algorithm) throws Exception { argument
134 + "algorithm=" + algorithm;
/frameworks/base/core/java/android/security/keystore/recovery/
H A DKeyDerivationParams.java86 * Creates instance of the class to to derive keys using the password hashing algorithm SCRYPT.
102 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt) { argument
103 this(algorithm, salt, /*memoryDifficulty=*/ -1);
109 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt, argument
111 mAlgorithm = algorithm;
117 * Gets algorithm.
131 * Gets the memory difficulty parameter for the hashing algorithm.
133 * <p>The effect of this parameter depends on the algorithm in use. For example, please see
136 * <p>If the specific algorithm does not support such a memory difficulty parameter, its value
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
H A DMediaDrmSigner.java128 * @param algorithm the signing algorithm to use, e.g. "PKCS1-BlockType1"
134 String algorithm, byte[] wrappedKey, byte[] message) {
135 return drm.signRSA(sessionId, algorithm, wrappedKey, message);
133 signRSA(MediaDrm drm, byte[] sessionId, String algorithm, byte[] wrappedKey, byte[] message) argument
/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DPasswordUtils.java45 * @param algorithm - key generation algorithm.
51 public static SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { argument
52 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds);
59 * @param algorithm - key generation algorithm.
65 public static String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) { argument
66 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds);
105 * @param algorithm - key generation algorithm
111 makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, int rounds) argument
122 buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, int rounds) argument
[all...]
/frameworks/base/core/java/android/net/
H A DIpSecAlgorithm.java32 * This class represents a single algorithm that can be used by an {@link IpSecTransform}.
55 * MD5 HMAC Authentication/Integrity Algorithm. <b>This algorithm is not recommended for use in
58 * <p>Keys for this algorithm must be 128 bits in length.
65 * SHA1 HMAC Authentication/Integrity Algorithm. <b>This algorithm is not recommended for use in
68 * <p>Keys for this algorithm must be 160 bits in length.
77 * <p>Keys for this algorithm must be 256 bits in length.
86 * <p>Keys for this algorithm must be 384 bits in length.
95 * <p>Keys for this algorithm must be 512 bits in length.
132 * Creates an IpSecAlgorithm of one of the supported types. Supported algorithm names are
136 * parameter. See {@link #IpSecAlgorithm(String algorithm, byt
141 IpSecAlgorithm(@onNull @lgorithmName String algorithm, @NonNull byte[] key) argument
156 IpSecAlgorithm( @onNull @lgorithmName String algorithm, @NonNull byte[] key, int truncLenBits) argument
[all...]
/frameworks/base/core/java/android/service/autofill/
H A DAutofillFieldClassificationService.java46 * <p>The exact score depends on the algorithm used to calculate it&mdash;the service must provide
47 * at least one default algorithm (which is used when the algorithm is not specified or is invalid),
48 * but it could provide more (in which case the algorithm name should be specified by the caller
67 * classification algorithm.
120 * <p>The exact score depends on the algorithm used to calculate it&mdash;the service must
121 * provide at least one default algorithm (which is used when the algorithm is not specified
122 * or is invalid), but it could provide more (in which case the algorithm name should be
125 * <p>For example, if the service provides an algorithm name
175 onGetScores(@ullable String algorithm, @Nullable Bundle algorithmOptions, @NonNull List<AutofillValue> actualValues, @NonNull List<String> userDataValues) argument
[all...]
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristics.java41 new TextDirectionHeuristicInternal(null /* no algorithm */, false);
47 new TextDirectionHeuristicInternal(null /* no algorithm */, true);
131 * Computes the text direction based on an algorithm. Subclasses implement
132 * {@link #defaultIsRtl} to handle cases where the algorithm cannot determine the
138 public TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { argument
139 mAlgorithm = algorithm;
178 private TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, argument
180 super(algorithm);
191 * Interface for an algorithm to guess the direction of a paragraph of text.
195 * Returns whether the range of text is RTL according to the algorithm
[all...]
/frameworks/base/core/java/org/apache/http/conn/ssl/
H A DSSLSocketFactory.java183 String algorithm,
192 if (algorithm == null) {
193 algorithm = TLS;
203 this.sslcontext = SSLContext.getInstance(algorithm);
182 SSLSocketFactory( String algorithm, final KeyStore keystore, final String keystorePassword, final KeyStore truststore, final SecureRandom random, final HostNameResolver nameResolver) argument
/frameworks/support/compat/src/main/java/androidx/core/text/
H A DTextDirectionHeuristicsCompat.java34 new TextDirectionHeuristicInternal(null /* no algorithm */, false);
40 new TextDirectionHeuristicInternal(null /* no algorithm */, true);
107 * Computes the text direction based on an algorithm. Subclasses implement
108 * {@link #defaultIsRtl} to handle cases where the algorithm cannot determine the
114 TextDirectionHeuristicImpl(TextDirectionAlgorithm algorithm) { argument
115 mAlgorithm = algorithm;
154 TextDirectionHeuristicInternal(TextDirectionAlgorithm algorithm, argument
156 super(algorithm);
167 * Interface for an algorithm to guess the direction of a paragraph of text.
171 * Returns whether the range of text is RTL according to the algorithm
[all...]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
H A DDrmPlugin.h178 const Vector<uint8_t>& sessionId, const String8& algorithm) {
179 if (sessionId.size() == 0 || algorithm.size() == 0) {
186 const Vector<uint8_t>& sessionId, const String8& algorithm) {
187 if (sessionId.size() == 0 || algorithm.size() == 0) {
249 const String8& algorithm,
253 if (sessionId.size() == 0 || algorithm.size() == 0 ||
177 setCipherAlgorithm( const Vector<uint8_t>& sessionId, const String8& algorithm) argument
185 setMacAlgorithm( const Vector<uint8_t>& sessionId, const String8& algorithm) argument
247 signRSA( const Vector<uint8_t>& sessionId, const String8& algorithm, const Vector<uint8_t>& message, const Vector<uint8_t>& wrappedKey, Vector<uint8_t>& signature) argument
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
H A DDrmPlugin.h159 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) {
160 if (sessionId.size() == 0 || algorithm.size() == 0) {
167 const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) {
168 if (sessionId.size() == 0 || algorithm.size() == 0) {
236 const hidl_string& algorithm,
240 if (sessionId.size() == 0 || algorithm.size() == 0 ||
158 setCipherAlgorithm( const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) argument
166 setMacAlgorithm( const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm) argument
234 signRSA( const hidl_vec<uint8_t>& sessionId, const hidl_string& algorithm, const hidl_vec<uint8_t>& message, const hidl_vec<uint8_t>& wrappedKey, signRSA_cb _hidl_cb) argument
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java267 private static String getDigest(X509Certificate x509Certificate, String algorithm) { argument
273 MessageDigest md = MessageDigest.getInstance(algorithm);
/frameworks/base/keystore/java/android/security/
H A DKeyChain.java274 * Invalid algorithm parameters when calling {@link #generateKeyPair}
622 * specific {@code PrivateKey} type indicated by {@code algorithm} (e.g.,
626 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) {
627 final String algUpper = algorithm.toUpperCase(Locale.US);
634 * {@code PrivateKey} of the given {@code algorithm} to the device once
653 @NonNull @KeyProperties.KeyAlgorithmEnum String algorithm) {
654 if (!isKeyAlgorithmSupported(algorithm)) {
658 return KeyStore.getInstance().isHardwareBacked(algorithm);
625 isKeyAlgorithmSupported( @onNull @eyProperties.KeyAlgorithmEnum String algorithm) argument
652 isBoundKeyAlgorithm( @onNull @eyProperties.KeyAlgorithmEnum String algorithm) argument
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupPasswordManager.java39 * @see PasswordUtils for the hashing algorithm.
149 * Returns {@code true} if should try salting using the older PBKDF algorithm.
197 * older version, attempts hashing using the older algorithm.
210 * @param algorithm The algorithm used to hash passwords.
214 private boolean passwordMatchesSaved(String algorithm, String candidatePassword) { argument
222 algorithm, candidatePassword, mPasswordSalt, PasswordUtils.PBKDF2_HASH_ROUNDS);
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DBaseIDevicePolicyManager.java75 public boolean generateKeyPair(ComponentName who, String callerPackage, String algorithm, argument
/frameworks/base/services/backup/java/com/android/server/backup/restore/
H A DPerformAdbRestoreTask.java318 private static InputStream attemptMasterKeyDecryption(String decryptPassword, String algorithm, argument
327 .buildPasswordKey(algorithm, decryptPassword, userSalt,
353 byte[] calculatedCk = PasswordUtils.makeKeyChecksum(algorithm, mk, ckSalt,
383 Slog.e(TAG, "Needed decryption algorithm unavailable!");

Completed in 155 milliseconds

12