/system/keymaster/tests/ |
wrapped_key_test.cpp | 98 keymaster_algorithm_t algorithm; local 99 auth_list.GetTagValue(TAG_ALGORITHM, &algorithm); 100 EXPECT_EQ(algorithm, KM_ALGORITHM_AES);
|
/system/security/keystore/ |
auth_token_table.cpp | 24 #include <algorithm> 96 inline bool is_secret_key_operation(Algorithm algorithm, KeyPurpose purpose) { 97 if ((algorithm != Algorithm::RSA && algorithm != Algorithm::EC)) return true; 103 auto algorithm = defaultOr(key_info.GetTagValue(TAG_ALGORITHM), Algorithm::AES); local 104 return is_secret_key_operation(algorithm, purpose) & 109 auto algorithm = defaultOr(key_info.GetTagValue(TAG_ALGORITHM), Algorithm::AES); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyFactory2Test.java | 98 "algorithm name"); 99 assertEquals("algorithm name", kf.getAlgorithm()); 125 assertEquals("generatePrivate generated different key for algorithm " + keyfactAlgs[i], 129 assertEquals("generatePrivate generated different key for algorithm " + keyfactAlgs[i], 155 "generatePublic generated different key for algorithm " 169 assertTrue("getAlgorithm ok for algorithm " + keyfactAlgs[i], 250 "generatePrivate generated different key for algorithm " 256 "generatePublic generated different key for algorithm " 279 assertNotNull("provider is null for algorithm " + keyfactAlgs[i], p); 330 String algorithm = (String) e.nextElement() local [all...] |
MessageDigest2Test.java | 70 for (String algorithm : algorithms) { 71 MessageDigestStub md = new MessageDigestStub(algorithm); 72 assertEquals(algorithm, md.getAlgorithm()); 84 for (String algorithm : e.getValue()) { 85 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); 94 assertTrue("cloned hash differs from original for algorithm " + algorithm, 246 for (String algorithm : e.getValue()) { 247 MessageDigest digest = MessageDigest.getInstance(algorithm, e.getKey().getName()); 259 for (String algorithm : e.getValue()) 461 String algorithm = (String) key; local [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
ns_print.c | 468 u_int keyflags, protocol, algorithm;
local 475 /* Key flags, Protocol, Algorithm. */
478 algorithm = *rdata++;
480 (unsigned int)keyflags, (unsigned int)protocol, (unsigned int)algorithm));
506 u_int type, algorithm, labels, footprint;
local 514 /* Type covered, Algorithm, Label count, Original TTL. */
516 algorithm = *rdata++;
520 p_type((int)type), (int)algorithm, (unsigned long)t));
|
/external/apache-http/src/org/apache/http/impl/auth/ |
DigestScheme.java | 253 "Unsupported algorithm in HTTP Digest authentication: " 263 * @throws AuthenticationException when MD5 is an unsupported algorithm 271 String algorithm = getParameter("algorithm"); local 281 // If an algorithm is not specified, default to MD5. 282 if (algorithm == null) { 283 algorithm = "MD5"; 311 //a1 is suitable for MD5 algorithm 312 if(algorithm.equalsIgnoreCase("MD5-sess")) { // android-changed: ignore case 327 } else if (!algorithm.equalsIgnoreCase("MD5")) { // android-changed: ignore cas 403 String algorithm = getParameter("algorithm"); local [all...] |
/external/boringssl/src/crypto/pkcs8/ |
pkcs8.c | 331 CBB algorithm, oid, param, salt_cbb; local 332 if (!CBB_add_asn1(out, &algorithm, CBS_ASN1_SEQUENCE) || 333 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 335 !CBB_add_asn1(&algorithm, ¶m, CBS_ASN1_SEQUENCE) || 347 int pkcs8_pbe_decrypt(uint8_t **out, size_t *out_len, CBS *algorithm, 356 if (!CBS_get_asn1(algorithm, &obj, CBS_ASN1_OBJECT)) { 373 if (!suite->decrypt_init(suite, &ctx, pass, pass_len, algorithm)) { 409 CBS epki, algorithm, ciphertext; local 411 !CBS_get_asn1(&epki, &algorithm, CBS_ASN1_SEQUENCE) || 420 if (!pkcs8_pbe_decrypt(&out, &out_len, &algorithm, pass, pass_len [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 42 private String algorithm = "EC"; field in class:BCECPrivateKey 61 this.algorithm = key.getAlgorithm(); 67 String algorithm, 71 this.algorithm = algorithm; 93 String algorithm, 97 this.algorithm = algorithm; 104 String algorithm, 107 this.algorithm = algorithm [all...] |
BCECPublicKey.java | 39 private String algorithm = "EC"; field in class:BCECPublicKey 47 String algorithm, 50 this.algorithm = algorithm; 58 String algorithm, 62 this.algorithm = algorithm; 69 String algorithm, 73 this.algorithm = algorithm; [all...] |
KeyPairGeneratorSpi.java | 53 String algorithm; field in class:KeyPairGeneratorSpi.EC 73 this.algorithm = "EC"; 78 String algorithm, 81 super(algorithm); 82 this.algorithm = algorithm; 178 BCECPublicKey pubKey = new BCECPublicKey(algorithm, pub, p, configuration); 180 new BCECPrivateKey(algorithm, priv, pubKey, p, configuration)); 184 return new KeyPair(new BCECPublicKey(algorithm, pub, configuration), 185 new BCECPrivateKey(algorithm, priv, configuration)) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPrivateKey.java | 46 private String algorithm = "EC"; field in class:JCEECPrivateKey 63 this.algorithm = key.getAlgorithm(); 68 String algorithm, 71 this.algorithm = algorithm; 91 String algorithm, 94 this.algorithm = algorithm; 100 String algorithm, 103 this.algorithm = algorithm [all...] |
JCEECPublicKey.java | 51 private String algorithm = "EC"; field in class:JCEECPublicKey 59 String algorithm, 62 this.algorithm = algorithm; 71 String algorithm, 74 this.algorithm = algorithm; 80 String algorithm, 83 this.algorithm = algorithm; [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
KeyManagerFactoryTest.java | 71 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 72 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); 73 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 79 private static boolean supportsManagerFactoryParameters(String algorithm) { 81 return algorithm.equals("NewSunX509"); 84 private static String[] keyTypes(String algorithm) { 87 return (algorithm.equals("NewSunX509") ? KEY_TYPES_WITH_EMPTY 172 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) 174 String[] keyTypes = keyTypes(algorithm); 211 test_X509ExtendedKeyManager((X509ExtendedKeyManager) km, empty, algorithm); 279 String algorithm = service.getAlgorithm(); local [all...] |
TrustManagerFactoryTest.java | 66 private static boolean supportsManagerFactoryParameters(String algorithm) { 67 return (StandardNames.IS_RI && algorithm.equals("PKIX")); 72 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 73 assertEquals(StandardNames.TRUST_MANAGER_FACTORY_DEFAULT, algorithm); 74 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); 201 String algorithm = service.getAlgorithm(); local 203 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); 204 assertEquals(algorithm, tmf.getAlgorithm()); 209 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, provider); 210 assertEquals(algorithm, tmf.getAlgorithm()) 247 String algorithm = service.getAlgorithm(); local 271 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 305 String algorithm = "RSA"; local [all...] |
/external/nos/test/system-test-harness/src/ |
blob.h | 73 uint32_t algorithm; member in struct:km_blob::__anon30758
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
cudnn_convolution_algorithm_picker.cc | 208 << instr->ToString() << ". Falling back to default algorithm."; 221 VLOG(3) << "Trying algorithm " << AlgorithmToString(alg) << " for " 233 VLOG(3) << "Run of algorithm " << AlgorithmToString(alg) 245 VLOG(3) << "Run of algorithm " << AlgorithmToString(alg) << " failed."; 249 VLOG(2) << "Best algorithm for " << instr->ToString() << ": " 250 << AlgorithmToString(best_result.algorithm()) << ", takes " 253 return std::make_tuple(best_result.algorithm().algo_id(), 254 best_result.algorithm().tensor_ops_enabled(), 259 << " failed. Falling back to default algorithm."; 296 int64 algorithm; local [all...] |
/external/tensorflow/tensorflow/stream_executor/ |
blas.h | 107 // Opaque identifier for an "algorithm" used by a blas routine. This functions 115 // blas uses -1 to represent the default algorithm. This happens to match up 120 // algorithm, then it needs to convert kDefaultGemmAlgo to that value 133 AlgorithmType algorithm() const { return algorithm_; } function in class:perftools::gputools::blas::ProfileResult 147 explicit AlgorithmConfig(AlgorithmType algorithm) : algorithm_(algorithm) {} 148 AlgorithmType algorithm() const { return algorithm_; } function in class:perftools::gputools::blas::AlgorithmConfig [all...] |
/external/vboot_reference/firmware/lib20/include/ |
vb2_struct.h | 30 /* Signature algorithm used by the key (enum vb2_crypto_algorithm) */ 31 uint32_t algorithm; member in struct:vb2_packed_key
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
CipherInputStreamTest.java | 43 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { 48 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { 49 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { 57 public String algorithm; field in class:CipherInputStreamTest.TestVector 66 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) 68 this.algorithm = algorithm; 69 this.key = randomKey(algorithm, keySize); 70 this.params = randomParameters(algorithm, ivSize, tagSize) 261 final String algorithm = "AES\/EAX\/NoPadding"; local [all...] |
CipherOutputStreamTest.java | 42 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { 47 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { 48 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { 57 public String algorithm; field in class:CipherOutputStreamTest.TestVector 65 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) 67 this.algorithm = algorithm; 68 this.key = randomKey(algorithm, keySize); 69 this.params = randomParameters(algorithm, ivSize, tagSize) 221 final String algorithm = "AES\/EAX\/NoPadding"; local [all...] |
EcdsaTest.java | 554 * Determines the Hash name from the ECDSA algorithm. There is a small inconsistency in the naming 676 String algorithm = "SHA256WithECDSA"; local [all...] |
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
AutofillManagerServiceShellCommand.java | 86 pw.println(" get fc_score [--algorithm ALGORITHM] value1 value2"); 218 final String algorithm, value1; local 219 if ("--algorithm".equals(nextArg)) { 220 algorithm = getNextArgRequired(); 223 algorithm = null; 229 mService.getScore(algorithm, value1, value2, new RemoteCallback((result) -> {
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
attestation_record.cpp | 62 ASN1_INTEGER* algorithm; member in struct:android::hardware::keymaster::V3_0::km_auth_list 89 ASN1_EXP_OPT(KM_AUTH_LIST, algorithm, ASN1_INTEGER, TAG_ALGORITHM.maskedTag()), 228 copyAuthTag(record->algorithm, TAG_ALGORITHM, auth_list);
|
/hardware/interfaces/keymaster/4.0/support/ |
attestation_record.cpp | 63 ASN1_INTEGER* algorithm; member in struct:android::hardware::keymaster::V4_0::km_auth_list 89 ASN1_EXP_OPT(KM_AUTH_LIST, algorithm, ASN1_INTEGER, TAG_ALGORITHM.maskedTag()), 226 copyAuthTag(record->algorithm, TAG_ALGORITHM, auth_list);
|
/libcore/benchmarks/src/benchmarks/regression/ |
CipherBenchmark.java | 51 @Param private Algorithm algorithm; field in class:CipherBenchmark 53 public enum Algorithm { 100 cipherAlgorithm = algorithm.toString() + "/" + mode.toString() + "/" 103 String keyAlgorithm = algorithm.toString();
|