/libcore/benchmarks/src/benchmarks/regression/ |
MessageDigestBenchmark.java | 56 @Param private Algorithm algorithm; field in class:MessageDigestBenchmark 58 public enum Algorithm { MD5, SHA1, SHA256, SHA384, SHA512 }; 66 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 75 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 84 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 93 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 104 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 115 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(), 126 MessageDigest digest = MessageDigest.getInstance(algorithm.toString() [all...] |
SignatureBenchmark.java | 41 @Param private Algorithm algorithm; field in class:SignatureBenchmark 43 public enum Algorithm { 68 this.signatureAlgorithm = algorithm.toString();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/ |
OldSHA1PRNGSecureRandomTest.java | 36 private static final String algorithm = "SHA1PRNG"; // algorithm's name field in class:OldSHA1PRNGSecureRandomTest 47 sr = SecureRandom.getInstance(algorithm); 48 sr2 = SecureRandom.getInstance(algorithm); 188 sr1 = SecureRandom.getInstance(algorithm); 189 sr2 = SecureRandom.getInstance(algorithm); 244 sr1 = SecureRandom.getInstance(algorithm); 245 sr2 = SecureRandom.getInstance(algorithm); 285 sr1 = SecureRandom.getInstance(algorithm); 286 sr2 = SecureRandom.getInstance(algorithm); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SealedObjectTest.java | 145 assertEquals("The algorithm which was used to seal the object " 146 + "should be the same as the algorithm used to seal the " 156 String algorithm = "DES"; local 157 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 160 Cipher cipher = Cipher.getInstance(algorithm); 164 assertEquals("The algorithm name should be the same as used " 165 + "in cipher.", algorithm, so.getAlgorithm()); 171 String algorithm = "DES"; local 172 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 175 Cipher cipher = Cipher.getInstance(algorithm); [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
ProviderServiceTest.java | 47 new Provider.Service(null, "type", "algorithm", "className", null, 53 new Provider.Service(p, null, "algorithm", "className", null, null); 59 fail("algorithm is null: No expected NullPointerException"); 63 new Provider.Service(p, "type", "algorithm", null, null, null); 68 Provider.Service s = new Provider.Service(p, "type", "algorithm", 74 if (!s.getAlgorithm().equals("algorithm")) { 90 Provider.Service s = new Provider.Service(p, "type", "algorithm", 107 s = new Provider.Service(p, "type", "algorithm", "className", null, hm); 121 String algorithm = "algorithm"; local 138 String algorithm = "algorithm"; local [all...] |
KeyFactoryTest.java | 71 String algorithm = parameters[i]; local 73 String message = "getInstance(" + (algorithm == null ? "null" : "\"" + algorithm + "\"") + ")"; 75 KeyFactory.getInstance(algorithm); 159 String algorithm = algorithms[i]; local 162 (algorithm == null ? "null" : "\"" + algorithm + "\"") + 167 KeyFactory.getInstance(algorithm, provider);
|
/libcore/ojluni/src/main/java/java/security/ |
MessageDigest.java | 42 * message digest algorithm, such as SHA-1 or SHA-256. 90 * <th>Algorithm</th> 125 * Java Cryptography Architecture Standard Algorithm Name Documentation. 143 private String algorithm; field in class:MessageDigest 154 * Creates a message digest with the specified algorithm name. 156 * @param algorithm the standard name of the digest algorithm. 159 * Java Cryptography Architecture Standard Algorithm Name Documentation</a> 160 * for information about standard algorithm names. 162 protected MessageDigest(String algorithm) { [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
Mac.java | 42 * (MAC) algorithm. 60 * <th>Algorithm</th> 147 * Java Cryptography Architecture Standard Algorithm Name Documentation. 173 // The name of the MAC algorithm. 174 private final String algorithm; field in class:Mac 180 // When only the algorithm is specified, we want to allow the Mac provider for that 181 // algorithm to change if multiple providers exist and they support different subsets of 203 * @param algorithm the algorithm 205 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { [all...] |
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
PKCS8Key.java | 57 /* The algorithm information (name, parameters, etc). */ 60 /* The key bytes, without the algorithm information */ 71 * and algorithm initialized before it may be used, for example 79 * about this particular algorithm is available. 109 * information. Also, when a key (or algorithm) needs some special 117 AlgorithmId algorithm; local 131 algorithm = AlgorithmId.parse (in.data.getDerValue ()); 134 privKey = buildPKCS8Key (algorithm, in.data.getOctetString ()); 165 * specific algorithm ID or else returning this generic base class. 182 // Instantiate the key factory of the appropriate algorithm [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
DisabledAlgorithmConstraints.java | 43 * Algorithm constraints for disabled algorithms property 46 * for the syntax of the disabled algorithm string. 67 * Initialize algorithm constraints with the specified security property. 70 * algorithm constraints 77 * Initialize algorithm constraints with the specified security property 81 * algorithm constraints 92 * This only checks if the algorithm has been completely disabled. If 93 * there are keysize or other limit, this method allow the algorithm. 97 String algorithm, AlgorithmParameters parameters) { 104 return checkAlgorithm(disabledAlgorithms, algorithm, decomposer) 196 String algorithm = cert.getSigAlgName(); local 255 String algorithm; local 377 String algorithm; field in class:DisabledAlgorithmConstraints.Constraint [all...] |
SignatureFileVerifier.java | 226 private MessageDigest getDigest(String algorithm) throws SignatureException { 227 // check that algorithm is not restricted 228 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, algorithm, null)) { 231 "Disabled algorithm used: " + algorithm); 238 MessageDigest digest = createdDigests.get(algorithm); 242 digest = MessageDigest.getInstance(algorithm); 243 createdDigests.put(algorithm, digest); 366 String algorithm = key.substring(0, key.length()-16); local 370 MessageDigest digest = getDigest(algorithm); 409 String algorithm = local 485 String algorithm = key.substring(0, key.length()-7); local [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
X509Key.java | 46 * certificate. Includes a description of the algorithm to be used 64 /* The algorithm information (name, parameters, etc). */ 68 * The key bytes, without the algorithm information. 93 * and algorithm initialized before it may be used, for example 101 * about this particular algorithm is available. 154 * information. Also, when a key (or algorithm) needs some special 162 AlgorithmId algorithm; local 168 algorithm = AlgorithmId.parse(in.data.getDerValue()); 170 subjectKey = buildX509Key(algorithm, 202 * specific algorithm ID or else returning this generic base class [all...] |
/system/keymaster/android_keymaster/ |
android_keymaster.cpp | 78 bool check_supported(const KeymasterContext& context, keymaster_algorithm_t algorithm, 80 if (context.GetKeyFactory(algorithm) == NULL) { 115 void GetSupported(const KeymasterContext& context, keymaster_algorithm_t algorithm, 119 if (response == NULL || !check_supported(context, algorithm, response)) 122 const OperationFactory* factory = context.GetOperationFactory(algorithm, purpose); 135 GetSupported(*context_, request.algorithm, request.purpose, 141 GetSupported(*context_, request.algorithm, request.purpose, 147 GetSupported(*context_, request.algorithm, request.purpose, &OperationFactory::SupportedDigests, 153 if (response == NULL || !check_supported(*context_, request.algorithm, response)) 158 context_->GetKeyFactory(request.algorithm)->SupportedImportFormats(&count) 516 keymaster_algorithm_t algorithm; local [all...] |
/system/security/keystore/ |
keymaster_enforcement.cpp | 80 auto algorithm = auth_set.GetTagValue(TAG_ALGORITHM); local 81 return algorithm.isOk() && 82 (algorithm.value() == Algorithm::RSA || algorithm.value() == Algorithm::EC); 317 case Tag::ALGORITHM: 330 /* Algorithm specific parameters not used for access control. */
|
keystore_client_impl.cpp | 66 // The encryption algorithm is AES-256-CBC with PKCS #7 padding and a random 67 // IV. The authentication algorithm is HMAC-SHA256 and is computed over the 478 auto algorithm = NullOrOr(hardware_enforced_characteristics.GetTagValue(TAG_ALGORITHM), local 480 if (!algorithm.isOk() || algorithm.value() != Algorithm::AES) { 481 ALOGW("Found encryption key with invalid algorithm."); 519 auto algorithm = NullOrOr(hardware_enforced_characteristics.GetTagValue(TAG_ALGORITHM), local 521 if (!algorithm.isOk() || algorithm.value() != Algorithm::HMAC) [all...] |
/bionic/libc/dns/nameser/ |
ns_print.c | 461 u_int keyflags, protocol, algorithm, key_id; local 468 /* Key flags, Protocol, Algorithm. */ 476 algorithm = *rdata++; 478 keyflags, protocol, algorithm); 508 u_int typ, algorithm, labels, footprint; local 516 /* Type covered, Algorithm, Label count, Original TTL. */ 518 algorithm = *rdata++; 522 p_type((int)typ), algorithm, labels, t); 631 /* Algorithm name. */ 1012 unsigned int i, hip_len, algorithm, key_len local [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
ImportWrappedKeyTest.java | 308 DERTaggedObject algorithm = new DERTaggedObject(true, 2, new DERInteger(algorithm_)); local 329 allItems.add(algorithm);
|
/external/curl/lib/vauth/ |
digest.c | 260 * alg [in/out] - The buffer where the algorithm will be stored. 261 * alen [in] - The length of the algorithm buffer. 303 /* Retrieve algorithm string from the challenge */ 304 if(!auth_digest_get_key_value((char *) chlg, "algorithm=", alg, alen, ',')) { 370 char algorithm[64]; local 382 algorithm, sizeof(algorithm), 388 if(strcmp(algorithm, "md5-sess") != 0) 606 else if(strcasecompare(value, "algorithm")) { 607 free(digest->algorithm); [all...] |
/external/nos/host/android/hals/keymaster/ |
KeymasterDevice.cpp | 33 #include <algorithm> 129 using ::android::hardware::keymaster::V4_0::Algorithm; 700 Algorithm algorithm; local 701 if (translate_algorithm(response.algorithm(), &algorithm) != 711 ErrorCode error_code = buffer_begin(response.handle().handle(), algorithm); [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/ |
heap_simulator_test.cc | 43 // HeapCallRecorder is a dummy heap algorithm that simply records its calls. 71 // made to the underlying heap algorithm. Tests compare the actual call 88 auto algorithm = MakeUnique<DecreasingSizeRunsHeap>( local 91 std::move(algorithm), *module_->entry_computation(), 123 auto algorithm = MakeUnique<DecreasingSizeRunsHeap>( local 125 result_ = HeapSimulator::Run(std::move(algorithm), *module_, 493 // Base class for heap algorithm tests. 520 // Create a dummy LogicalBuffer to pass to the heap algorithm. [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
mkl_avgpooling_op.cc | 29 using mkldnn::algorithm; 173 dnnAlgorithm_t algorithm = dnnAlgorithmPoolingAvg; local 178 &prim_pooling_fwd, primAttr, algorithm, lt_user_input, 395 dnnAlgorithm_t algorithm = dnnAlgorithmPoolingAvg; local 398 &prim_pooling_bwd, primAttr, algorithm, lt_user_input, 508 prop_kind::forward, algorithm::pooling_avg_exclude_padding, 602 prop_kind::forward, algorithm::pooling_avg_exclude_padding, 615 algorithm::pooling_avg_exclude_padding,
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
DsaTest.java | 19 // - add tests for "alternative" algorithm names 798 String algorithm = "SHA256WithDSA"; local [all...] |
/frameworks/base/core/java/android/util/jar/ |
StrictJarVerifier.java | 241 final String algorithm = DIGEST_ALGORITHMS[i]; local 242 final String hash = attributes.getValue(algorithm + "-Digest"); 249 return new VerifierEntry(name, MessageDigest.getInstance(algorithm), hashBytes, 494 String algorithm = DIGEST_ALGORITHMS[i]; local 495 String hash = attributes.getValue(algorithm + entry); 502 md = MessageDigest.getInstance(algorithm);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskStackViewScroller.java | 213 TaskStackLowRamLayoutAlgorithm algorithm = mLayoutAlgorithm.mTaskStackLowRamLayoutAlgorithm; local 217 int minY = algorithm.percentageToScroll(mLayoutAlgorithm.mMinScrollP); 218 int maxY = algorithm.percentageToScroll(mLayoutAlgorithm.mMaxScrollP); 223 fling(0 /* downScrollP */, 0 /* downY */, algorithm.percentageToScroll(stackScroll), 225 float pos = algorithm.scrollToPercentage(mScroller.getFinalY()); 227 float newScrollP = algorithm.getClosestTaskP(pos, mLayoutAlgorithm.mNumStackTasks, 230 mFlingAnimationUtils.apply(animator, algorithm.percentageToScroll(stackScroll), 231 algorithm.percentageToScroll(newScrollP), velocity); 235 float newScrollP = algorithm.getClosestTaskP(stackScroll,
|
/libcore/luni/src/test/java/libcore/java/security/ |
MessageDigestTest.java | 82 String algorithm = service.getAlgorithm(); local 85 MessageDigest md1 = MessageDigest.getInstance(algorithm); 86 assertEquals(algorithm, md1.getAlgorithm()); 90 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 91 assertEquals(algorithm, md2.getAlgorithm()); 96 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); 97 assertEquals(algorithm, md3.getAlgorithm()); 101 throw new Exception("Problem testing MessageDigest." + algorithm, e); 109 private static void putExpectation(String algorithm, String inputName, byte[] expected) { 110 algorithm = algorithm.toUpperCase() 235 String algorithm = md.getAlgorithm(); local [all...] |