Searched defs:algorithm (Results 1 - 25 of 145) sorted by path

123456

/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
H A DRandomDataImpl.java300 * <code>lower</code> and <code>upper</code>, inclusive. This algorithm uses
321 * <code>lower</code> and <code>upper</code>, inclusive. This algorithm uses
349 * <li> For large means, uses the rejection algorithm described in <br/>
782 * Sets the PRNG algorithm for the underlying SecureRandom instance using
792 * @param algorithm
793 * the name of the PRNG algorithm
797 * if the specified algorithm is not available
801 public void setSecureAlgorithm(String algorithm, String provider) argument
803 secRand = SecureRandom.getInstance(algorithm, provider);
/external/apache-http/android/src/android/net/http/
H A DRequestHandle.java241 String algorithm,
245 username, password, realm, nonce, QOP, algorithm, opaque);
305 String algorithm,
339 if (algorithm != null) {
340 response += ", algorithm=" + algorithm;
235 setupDigestAuthResponse(boolean isProxy, String username, String password, String realm, String nonce, String QOP, String algorithm, String opaque) argument
300 computeDigestAuthResponse(String username, String password, String realm, String nonce, String QOP, String algorithm, String opaque) argument
/external/avb/libavb/
H A Davb_crypto.c357 const AvbAlgorithmData* avb_get_algorithm_data(AvbAlgorithmType algorithm) { argument
358 if (algorithm >= AVB_ALGORITHM_TYPE_NONE &&
359 algorithm < _AVB_ALGORITHM_NUM_TYPES) {
360 return &algorithm_data[algorithm];
H A Davb_vbmeta_image.c40 const AvbAlgorithmData* algorithm; local
154 /* Ensure algorithm field is supported. */
155 algorithm = avb_get_algorithm_data(h.algorithm_type);
156 if (!algorithm) {
157 avb_error("Invalid or unknown algorithm.\n");
161 /* Bail if the embedded hash size doesn't match the chosen algorithm. */
162 if (h.hash_size != algorithm->hash_len) {
199 avb_error("Unknown algorithm.\n");
218 algorithm->padding,
219 algorithm
[all...]
/external/avb/test/
H A Davb_unittest_util.h72 const std::string& algorithm,
77 if (algorithm == "") {
78 signing_options = " --algorithm NONE ";
80 signing_options = std::string(" --algorithm ") + algorithm + " --key " +
71 GenerateVBMetaImage(const std::string& image_name, const std::string& algorithm, uint64_t rollback_index, const base::FilePath& key_path, const std::string& additional_options = �) argument
/external/boringssl/include/openssl/
H A Dasn1.h485 ASN1_OBJECT *algorithm; member in struct:X509_algor_st
/external/boringssl/src/crypto/digest_extra/
H A Ddigest_extra.c165 CBS algorithm, oid; local
166 if (!CBS_get_asn1(cbs, &algorithm, CBS_ASN1_SEQUENCE) ||
167 !CBS_get_asn1(&algorithm, &oid, CBS_ASN1_OBJECT)) {
182 if (CBS_len(&algorithm) > 0) {
184 if (!CBS_get_asn1(&algorithm, &param, CBS_ASN1_NULL) ||
186 CBS_len(&algorithm) != 0) {
/external/boringssl/src/crypto/evp/
H A Devp_asn1.c98 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)) {
H A Dp_dsa_asn1.c109 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) ||
H A Dp_ec_asn1.c74 CBB spki, algorithm, oid, key_bitstring; local
76 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) ||
77 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
79 !EC_KEY_marshal_curve_name(&algorithm, group) ||
174 CBB pkcs8, algorithm, oid, private_key; local
177 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) ||
178 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
180 !EC_KEY_marshal_curve_name(&algorithm, EC_KEY_get0_group(ec_key)) ||
H A Dp_ed25519_asn1.c80 CBB spki, algorithm, oid, key_bitstring; local
82 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) ||
83 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
131 CBB pkcs8, algorithm, oid, private_key, inner; local
134 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) ||
135 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
H A Dp_rsa_asn1.c81 CBB spki, algorithm, oid, null, key_bitstring; local
83 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) ||
84 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
86 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) ||
138 CBB pkcs8, algorithm, oid, null, private_key; local
141 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) ||
142 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
144 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) ||
/external/boringssl/src/crypto/pkcs8/
H A Dp5_pbev2.c177 CBB algorithm, oid, param, kdf, kdf_oid, kdf_param, salt_cbb, cipher_cbb, local
179 if (!CBB_add_asn1(out, &algorithm, CBS_ASN1_SEQUENCE) ||
180 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
182 !CBB_add_asn1(&algorithm, &param, CBS_ASN1_SEQUENCE) ||
229 /* See if we recognise the encryption algorithm. */
H A Dpkcs8.c337 CBB algorithm, oid, param, salt_cbb; local
338 if (!CBB_add_asn1(out, &algorithm, CBS_ASN1_SEQUENCE) ||
339 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) ||
341 !CBB_add_asn1(&algorithm, &param, CBS_ASN1_SEQUENCE) ||
353 int pkcs8_pbe_decrypt(uint8_t **out, size_t *out_len, CBS *algorithm, argument
362 if (!CBS_get_asn1(algorithm, &obj, CBS_ASN1_OBJECT)) {
379 if (!suite->decrypt_init(suite, &ctx, pass, pass_len, algorithm)) {
415 CBS epki, algorithm, ciphertext; local
417 !CBS_get_asn1(&epki, &algorithm, CBS_ASN1_SEQUENCE) ||
426 if (!pkcs8_pbe_decrypt(&out, &out_len, &algorithm, pas
[all...]
/external/boringssl/src/include/openssl/
H A Dasn1.h485 ASN1_OBJECT *algorithm; member in struct:X509_algor_st
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/bc/
H A DBcDigestCalculatorProvider.java19 public DigestCalculator get(final AlgorithmIdentifier algorithm) argument
22 Digest dig = digestProvider.get(algorithm);
30 return algorithm;
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
H A DJcaContentVerifierProviderBuilder.java84 public ContentVerifier get(AlgorithmIdentifier algorithm)
89 Signature sig = helper.createSignature(algorithm);
100 Signature rawSig = createRawSig(algorithm, certificate.getPublicKey());
104 return new RawSigVerifier(algorithm, stream, rawSig);
108 return new SigVerifier(algorithm, stream);
129 public ContentVerifier get(AlgorithmIdentifier algorithm)
132 SignatureOutputStream stream = createSignatureStream(algorithm, publicKey);
134 Signature rawSig = createRawSig(algorithm, publicKey);
138 return new RawSigVerifier(algorithm, stream, rawSig);
142 return new SigVerifier(algorithm, strea
154 createSignatureStream(AlgorithmIdentifier algorithm, PublicKey publicKey) argument
171 createRawSig(AlgorithmIdentifier algorithm, PublicKey publicKey) argument
193 private AlgorithmIdentifier algorithm; field in class:JcaContentVerifierProviderBuilder.SigVerifier
197 SigVerifier(AlgorithmIdentifier algorithm, SignatureOutputStream stream) argument
237 RawSigVerifier(AlgorithmIdentifier algorithm, SignatureOutputStream stream, Signature rawSignature) argument
[all...]
H A DOperatorHelper.java156 Cipher createAsymmetricWrapper(ASN1ObjectIdentifier algorithm, Map extraAlgNames) argument
165 cipherName = (String)extraAlgNames.get(algorithm);
170 cipherName = (String)asymmetricWrapperAlgNames.get(algorithm);
198 return helper.createCipher(algorithm.getId());
206 Cipher createSymmetricWrapper(ASN1ObjectIdentifier algorithm) argument
211 String cipherName = (String)symmetricWrapperAlgNames.get(algorithm);
225 return helper.createCipher(algorithm.getId());
253 throw new OperatorCreationException("cannot create algorithm parameters: " + e.getMessage(), e);
262 throw new OperatorCreationException("cannot initialise algorithm parameters: " + e.getMessage(), e);
347 public Signature createRawSignature(AlgorithmIdentifier algorithm) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DCertificationRequest.java49 AlgorithmIdentifier algorithm,
53 this.sigAlgId = algorithm;
47 CertificationRequest( CertificationRequestInfo requestInfo, AlgorithmIdentifier algorithm, DERBitString signature) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
H A DAlgorithmIdentifier.java15 private ASN1ObjectIdentifier algorithm; field in class:AlgorithmIdentifier
41 ASN1ObjectIdentifier algorithm)
43 this.algorithm = algorithm;
47 ASN1ObjectIdentifier algorithm,
50 this.algorithm = algorithm;
63 algorithm = ASN1ObjectIdentifier.getInstance(seq.getObjectAt(0));
77 return algorithm;
89 * algorithm OBJEC
40 AlgorithmIdentifier( ASN1ObjectIdentifier algorithm) argument
46 AlgorithmIdentifier( ASN1ObjectIdentifier algorithm, ASN1Encodable parameters) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
H A DOpenSSLDigest.java33 public OpenSSLDigest(String algorithm, int byteSize) { argument
35 delegate = MessageDigest.getInstance(algorithm, "AndroidOpenSSL");
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
H A DKeyAgreementSpi.java155 String algorithm)
166 if (algorithm.equals("TlsPremasterSecret"))
168 return new SecretKeySpec(trimZeroes(res), algorithm);
171 return super.engineGenerateSecret(algorithm);
154 engineGenerateSecret( String algorithm) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
H A DBCECPrivateKey.java42 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
66 BCECPrivateKey( String algorithm, org.bouncycastle.jce.spec.ECPrivateKeySpec spec, ProviderConfiguration configuration) argument
92 BCECPrivateKey( String algorithm, ECPrivateKeySpec spec, ProviderConfiguration configuration) argument
103 BCECPrivateKey( String algorithm, BCECPrivateKey key) argument
116 BCECPrivateKey( String algorithm, ECPrivateKeyParameters params, BCECPublicKey pubKey, ECParameterSpec spec, ProviderConfiguration configuration) argument
149 BCECPrivateKey( String algorithm, ECPrivateKeyParameters params, BCECPublicKey pubKey, org.bouncycastle.jce.spec.ECParameterSpec spec, ProviderConfiguration configuration) argument
191 BCECPrivateKey( String algorithm, ECPrivateKeyParameters params, ProviderConfiguration configuration) argument
202 BCECPrivateKey( String algorithm, PrivateKeyInfo info, ProviderConfiguration configuration) argument
[all...]
H A DBCECPublicKey.java39 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;
46 BCECPublicKey( String algorithm, BCECPublicKey key) argument
57 BCECPublicKey( String algorithm, ECPublicKeySpec spec, ProviderConfiguration configuration) argument
68 BCECPublicKey( String algorithm, org.bouncycastle.jce.spec.ECPublicKeySpec spec, ProviderConfiguration configuration) argument
96 BCECPublicKey( String algorithm, ECPublicKeyParameters params, ECParameterSpec spec, ProviderConfiguration configuration) argument
121 BCECPublicKey( String algorithm, ECPublicKeyParameters params, org.bouncycastle.jce.spec.ECParameterSpec spec, ProviderConfiguration configuration) argument
151 BCECPublicKey( String algorithm, ECPublicKeyParameters params, ProviderConfiguration configuration) argument
171 BCECPublicKey( String algorithm, SubjectPublicKeyInfo info, ProviderConfiguration configuration) argument
[all...]
H A DKeyFactorySpi.java30 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 identifie
33 KeyFactorySpi( String algorithm, ProviderConfiguration configuration) argument
[all...]

Completed in 866 milliseconds

123456