/external/conscrypt/platform/src/main/java/org/conscrypt/ct/ |
CTLogInfo.java | 122 String algorithm = sct.getSignature().getAlgorithm(); local 123 signature = Signature.getInstance(algorithm);
|
/frameworks/base/wifi/java/android/net/wifi/ |
ParcelUtil.java | 43 * |algorithm| -> String of algorithm name 46 * For a null PrivateKey object, a null string will be written to |algorithm| and 48 * a valid algorithm String. 72 String algorithm = in.readString(); local 73 if (algorithm == null) { 79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm);
|
/libcore/benchmarks/src/benchmarks/regression/ |
KeyPairGeneratorBenchmark.java | 26 @Param private Algorithm algorithm; field in class:KeyPairGeneratorBenchmark 28 public enum Algorithm { 43 this.generatorAlgorithm = algorithm.toString();
|
DigestBenchmark.java | 33 @Param private Algorithm algorithm; field in class:DigestBenchmark 35 public enum Algorithm { MD5, SHA1, SHA256, SHA384, SHA512 }; 48 className += ("OpenSSLDigest$" + algorithm); 51 className += (algorithm + "Digest");
|
/libcore/ojluni/src/main/java/java/security/ |
AlgorithmParameters.java | 38 * for a particular algorithm can be obtained by 55 * <th>Algorithm</th> 158 * Java Cryptography Architecture Standard Algorithm Name Documentation. 178 // The algorithm 179 private String algorithm; field in class:AlgorithmParameters 189 * @param algorithm the algorithm 192 Provider provider, String algorithm) 196 this.algorithm = algorithm; [all...] |
KeyRep.java | 92 * The Key algorithm 96 private String algorithm; field in class:KeyRep 118 * @param algorithm the algorithm returned from 127 * if algorithm is {@code null}, 131 public KeyRep(Type type, String algorithm, 134 if (type == null || algorithm == null || 140 this.algorithm = algorithm; 151 * constructed using encoded key bytes and algorithm [all...] |
KeyFactory.java | 74 * <th>Algorithm</th> 105 * Java Cryptography Architecture Standard Algorithm Name Documentation. 124 // The algorithm associated with this key factory 125 private final String algorithm; field in class:KeyFactory 145 * @param algorithm the name of the algorithm 149 String algorithm) { 152 this.algorithm = algorithm; 155 private KeyFactory(String algorithm) throws NoSuchAlgorithmException [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
KeyManagerFactory.java | 43 * <th>Algorithm</th> 65 // The name of the key management algorithm. 66 private String algorithm; field in class:KeyManagerFactory 69 * Obtains the default KeyManagerFactory algorithm name. 71 * <p>The default algorithm can be changed at runtime by setting 72 * the value of the {@code ssl.KeyManagerFactory.algorithm} 73 * security property to the desired algorithm name. 76 * @return the default algorithm name as specified by the 77 * {@code ssl.KeyManagerFactory.algorithm} security property, or an 86 "ssl.KeyManagerFactory.algorithm"); [all...] |
/system/keymaster/km_openssl/ |
ec_key_factory.cpp | 190 keymaster_algorithm_t algorithm = KM_ALGORITHM_EC; local 191 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm)) { 193 } else if (algorithm != KM_ALGORITHM_EC) {
|
rsa_key_factory.cpp | 165 keymaster_algorithm_t algorithm = KM_ALGORITHM_RSA; local 166 if (!updated_description->GetTagValue(TAG_ALGORITHM, &algorithm)) 168 if (algorithm != KM_ALGORITHM_RSA)
|
/external/boringssl/src/crypto/digest_extra/ |
digest_extra.c | 164 CBS algorithm, oid; local 165 if (!CBS_get_asn1(cbs, &algorithm, CBS_ASN1_SEQUENCE) || 166 !CBS_get_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) { 181 if (CBS_len(&algorithm) > 0) { 183 if (!CBS_get_asn1(&algorithm, ¶m, CBS_ASN1_NULL) || 185 CBS_len(&algorithm) != 0) { 195 CBB algorithm, oid, null; local 196 if (!CBB_add_asn1(cbb, &algorithm, CBS_ASN1_SEQUENCE) || 197 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) { 220 if (!CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) | [all...] |
/external/boringssl/src/crypto/evp/ |
evp_asn1.c | 98 CBS spki, algorithm, key; local 102 !CBS_get_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || 103 !parse_key_type(&algorithm, &type) || 126 if (!ret->ameth->pub_decode(ret, &algorithm, &key)) { 148 CBS pkcs8, algorithm, key; local 154 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || 155 !parse_key_type(&algorithm, &type) || 175 if (!ret->ameth->priv_decode(ret, &algorithm, &key)) {
|
p_dsa_asn1.c | 109 CBB spki, algorithm, oid, key_bitstring; local 111 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || 112 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 115 !DSA_marshal_parameters(&algorithm, dsa)) || 177 CBB pkcs8, algorithm, oid, private_key; local 180 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || 181 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 183 !DSA_marshal_parameters(&algorithm, dsa) ||
|
p_ed25519_asn1.c | 76 CBB spki, algorithm, oid, key_bitstring; local 78 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || 79 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 127 CBB pkcs8, algorithm, oid, private_key, inner; local 130 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || 131 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
KeyFactorySpi.java | 30 String algorithm; field in class:KeyFactorySpi 34 String algorithm, 37 this.algorithm = algorithm; 130 return new BCECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec, configuration); 134 return new BCECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec, configuration); 148 return new BCECPublicKey(algorithm, (ECPublicKeySpec)keySpec, configuration); 152 return new BCECPublicKey(algorithm, (java.security.spec.ECPublicKeySpec)keySpec, configuration); 170 return new BCECPrivateKey(algorithm, keyInfo, configuration); 174 throw new IOException("algorithm identifier " + algOid + " in key not recognised") [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
CryptoUpcalls.java | 50 private static ArrayList<Provider> getExternalProviders(String algorithm) { 52 for (Provider p : Security.getProviders(algorithm)) { 58 logger.warning("Could not find external provider for algorithm: " + algorithm); 64 // Get the raw signature algorithm for this key type. 65 String algorithm; local 66 // Hint: Algorithm names come from: 74 algorithm = "NONEwithRSA"; 76 algorithm = "NONEwithECDSA"; 87 signature = Signature.getInstance(algorithm); [all...] |
KeyGeneratorImpl.java | 35 private final String algorithm; field in class:KeyGeneratorImpl 39 private KeyGeneratorImpl(String algorithm, int defaultKeySizeBits) { 40 this.algorithm = algorithm; 85 return new SecretKeySpec(doKeyGeneration((keySizeBits + 7) / 8), algorithm);
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
MessageDigestAlgorithmBenchmark.java | 36 * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.). 44 @Param Algorithm algorithm; field in class:MessageDigestAlgorithmBenchmark 49 @Override public byte[] hash(Algorithm algorithm, byte[] input) { 50 MessageDigest md = algorithm.getMessageDigest(); 56 @Override public byte[] hash(Algorithm algorithm, byte[] input) { 57 return algorithm.getHashFunction().hashBytes(input).asBytes() 100 Algorithm algorithm = this.algorithm; local [all...] |
/external/nos/host/android/hals/keymaster/ |
import_key.cpp | 33 using ::android::hardware::keymaster::V4_0::Algorithm; 247 Algorithm algorithm, 251 if (algorithm != Algorithm::AES && algorithm != Algorithm::TRIPLE_DES && 252 algorithm != Algorithm::HMAC) { 253 LOG(ERROR) << "ImportKey request: unsupported algorithm"; 298 const enum Algorithm *algorithm; local [all...] |
/external/squashfs-tools/squashfs-tools/ |
lzo_wrapper.c | 43 /* default LZO compression algorithm and compression level */ 44 static int algorithm = SQUASHFS_LZO1X_999; variable 72 fprintf(stderr, "lzo: -Xalgorithm missing algorithm\n"); 73 fprintf(stderr, "lzo: -Xalgorithm <algorithm>\n"); 79 algorithm = i; 84 fprintf(stderr, "lzo: -Xalgorithm unrecognised algorithm\n"); 111 fprintf(stderr, "lzo: compression algorithm should be one of:\n"); 123 * In this case the LZO algorithm may not be known until after the 133 * LZO1X_999 algorithm 136 if(algorithm != SQUASHFS_LZO1X_999) [all...] |
lzo_wrapper.h | 39 (s)->algorithm = inswap_le32((s)->algorithm); \ 57 int algorithm; member in struct:lzo_comp_opts
|
/external/vboot_reference/firmware/lib/cryptolib/include/ |
sha.h | 100 int algorithm; /* Hashing algorithm to use. */ member in struct:DigestContext 105 * and stores the state of any digest algorithm (one at any given time). 108 /* Initialize a digest context for use with signature algorithm [algorithm]. */ 116 * based on the signature [algorithm]. 122 * [len] based on the signature [algorithm].
|
/external/vboot_reference/futility/ |
cmd_vbutil_key.c | 34 {"algorithm", 1, 0, OPT_ALGORITHM}, 53 " --algorithm <number> " 54 "Signing algorithm to use with key:\n", progname); 70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm, 81 pubkey = PublicKeyReadKeyb(infile, algorithm, version); 91 privkey = PrivateKeyReadPem(infile, algorithm); 119 printf("Algorithm: %" PRIu64 " %s\n", pubkey->algorithm, 120 (pubkey->algorithm < kNumAlgorithms ? 121 algo_strings[pubkey->algorithm] : "(invalid)")) 172 uint64_t algorithm = kNumAlgorithms; local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
SecretKeySpecTest.java | 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 45 String algorithm = "Algorithm"; local 48 new SecretKeySpec(new byte[] {}, algorithm); 55 new SecretKeySpec(null, algorithm); 64 + "in the case of null algorithm."); 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 85 String algorithm = "Algorithm"; local 143 String algorithm = "Algorithm"; local 161 String algorithm = "Algorithm"; local 174 String algorithm = "Algorithm"; local 188 String algorithm = "Algorithm"; local 214 String algorithm = "Algorithm"; local 229 String algorithm = "Algorithm"; local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 65 String algorithm = certificate.getPublicKey().getAlgorithm(); local 67 .getInstance(algorithm);
|