Lines Matching defs:algorithm
172 @NonNull @KeyAlgorithmEnum String algorithm) {
173 if (KEY_ALGORITHM_EC.equalsIgnoreCase(algorithm)) {
175 } else if (KEY_ALGORITHM_RSA.equalsIgnoreCase(algorithm)) {
178 throw new IllegalArgumentException("Unsupported key algorithm: " + algorithm);
192 "Unsupported key algorithm: " + keymasterAlgorithm);
197 @NonNull @KeyAlgorithmEnum String algorithm) {
198 if (KEY_ALGORITHM_AES.equalsIgnoreCase(algorithm)) {
200 } else if (algorithm.toUpperCase(Locale.US).startsWith("HMAC")) {
204 "Unsupported secret key algorithm: " + algorithm);
232 "Unsupported key algorithm: " + keymasterAlgorithm);
239 * @return keymaster digest or {@code -1} if the algorithm does not involve a digest.
241 public static int toKeymasterDigest(@NonNull @KeyAlgorithmEnum String algorithm) {
242 String algorithmUpper = algorithm.toUpperCase(Locale.US);
569 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest);
591 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest);
613 throw new IllegalArgumentException("Unsupported digest algorithm: " + digest);