Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 600) sorted by relevance

12345678910>>...24

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java28 String algorithm) in createCipher() argument
31 return Cipher.getInstance(algorithm); in createCipher()
34 public Mac createMac(String algorithm) in createMac() argument
37 return Mac.getInstance(algorithm); in createMac()
40 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
43 return KeyAgreement.getInstance(algorithm); in createKeyAgreement()
46 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
49 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator()
52 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
55 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters()
[all …]
DProviderJcaJceHelper.java35 String algorithm) in createCipher() argument
38 return Cipher.getInstance(algorithm, provider); in createCipher()
41 public Mac createMac(String algorithm) in createMac() argument
44 return Mac.getInstance(algorithm, provider); in createMac()
47 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
50 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement()
53 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
56 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator()
59 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
62 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters()
[all …]
DNamedJcaJceHelper.java35 String algorithm) in createCipher() argument
38 return Cipher.getInstance(algorithm, providerName); in createCipher()
41 public Mac createMac(String algorithm) in createMac() argument
44 return Mac.getInstance(algorithm, providerName); in createMac()
47 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
50 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement()
53 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
56 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator()
59 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
62 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters()
[all …]
DJcaJceHelper.java27 String algorithm) in createCipher() argument
30 Mac createMac(String algorithm) in createMac() argument
33 KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
36 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
39 AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
42 KeyGenerator createKeyGenerator(String algorithm) in createKeyGenerator() argument
45 KeyFactory createKeyFactory(String algorithm) in createKeyFactory() argument
48 SecretKeyFactory createSecretKeyFactory(String algorithm) in createSecretKeyFactory() argument
51 KeyPairGenerator createKeyPairGenerator(String algorithm) in createKeyPairGenerator() argument
54 MessageDigest createDigest(String algorithm) in createDigest() argument
[all …]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DSecretKeySpecTest.java45 String algorithm = "Algorithm"; in testSecretKeySpec1() local
48 new SecretKeySpec(new byte[] { }, algorithm); in testSecretKeySpec1()
55 new SecretKeySpec(null, algorithm); in testSecretKeySpec1()
68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); in testSecretKeySpec1()
85 String algorithm = "Algorithm"; in testSecretKeySpec2() local
88 new SecretKeySpec(new byte[] { }, 0, 0, algorithm); in testSecretKeySpec2()
95 new SecretKeySpec(null, 0, 0, algorithm); in testSecretKeySpec2()
109 new SecretKeySpec(key, offset, key.length, algorithm); in testSecretKeySpec2()
116 new SecretKeySpec(key, -1, key.length, algorithm); in testSecretKeySpec2()
126 new SecretKeySpec(key, -1, key.length + 2, algorithm); in testSecretKeySpec2()
[all …]
/external/webrtc/webrtc/base/
Dopenssldigest.cc20 OpenSSLDigest::OpenSSLDigest(const std::string& algorithm) { in OpenSSLDigest() argument
22 if (GetDigestEVP(algorithm, &md_)) { in OpenSSLDigest()
58 bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, in GetDigestEVP() argument
61 if (algorithm == DIGEST_MD5) { in GetDigestEVP()
63 } else if (algorithm == DIGEST_SHA_1) { in GetDigestEVP()
65 } else if (algorithm == DIGEST_SHA_224) { in GetDigestEVP()
67 } else if (algorithm == DIGEST_SHA_256) { in GetDigestEVP()
69 } else if (algorithm == DIGEST_SHA_384) { in GetDigestEVP()
71 } else if (algorithm == DIGEST_SHA_512) { in GetDigestEVP()
84 std::string* algorithm) { in GetDigestName() argument
[all …]
Dsslfingerprint.cc23 const std::string& algorithm, const rtc::SSLIdentity* identity) { in Create() argument
28 return Create(algorithm, &(identity->certificate())); in Create()
32 const std::string& algorithm, const rtc::SSLCertificate* cert) { in Create() argument
36 algorithm, digest_val, sizeof(digest_val), &digest_len); in Create()
41 return new SSLFingerprint(algorithm, digest_val, digest_len); in Create()
45 const std::string& algorithm, const std::string& fingerprint) { in CreateFromRfc4572() argument
46 if (algorithm.empty() || !rtc::IsFips180DigestAlgorithm(algorithm)) in CreateFromRfc4572()
61 return new SSLFingerprint(algorithm, reinterpret_cast<uint8_t*>(value), in CreateFromRfc4572()
65 SSLFingerprint::SSLFingerprint(const std::string& algorithm, in SSLFingerprint() argument
68 : algorithm(algorithm) { in SSLFingerprint()
[all …]
/external/conscrypt/src/main/java/org/conscrypt/
DX509PublicKey.java29 private final String algorithm; field in X509PublicKey
33 public X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument
34 this.algorithm = algorithm; in X509PublicKey()
40 return algorithm; in getAlgorithm()
55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString()
63 result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode()); in hashCode()
77 if (algorithm == null) { in equals()
78 if (other.algorithm != null) in equals()
80 } else if (!algorithm.equals(other.algorithm)) in equals()
/external/vboot_reference/host/lib/
Dsignature_digest.c17 uint8_t* PrependDigestInfo(unsigned int algorithm, uint8_t* digest) { in PrependDigestInfo() argument
18 const int digest_size = hash_size_map[algorithm]; in PrependDigestInfo()
19 const int digestinfo_size = digestinfo_size_map[algorithm]; in PrependDigestInfo()
20 const uint8_t* digestinfo = hash_digestinfo_map[algorithm]; in PrependDigestInfo()
28 unsigned int algorithm) { in SignatureDigest() argument
32 if (algorithm >= kNumAlgorithms) { in SignatureDigest()
34 } else if ((digest = DigestBuf(buf, len, algorithm))) { in SignatureDigest()
35 info_digest = PrependDigestInfo(algorithm, digest); in SignatureDigest()
42 unsigned int algorithm) { in SignatureBuf() argument
46 uint8_t* signature_digest = SignatureDigest(buf, len, algorithm); in SignatureBuf()
[all …]
Dhost_key.c23 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm) { in PrivateKeyReadPem() argument
29 if (algorithm >= kNumAlgorithms) { in PrivateKeyReadPem()
55 key->algorithm = algorithm; in PrivateKeyReadPem()
90 if (1 != fwrite(&key->algorithm, sizeof(key->algorithm), 1, f)) { in PrivateKeyWrite()
128 key->algorithm = *(typeof(key->algorithm) *)buffer; in PrivateKeyRead()
129 start = buffer + sizeof(key->algorithm); in PrivateKeyRead()
132 filelen - sizeof(key->algorithm)); in PrivateKeyRead()
147 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm, in PublicKeyAlloc() argument
153 key->algorithm = algorithm; in PublicKeyAlloc()
160 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm, in PublicKeyReadKeyb() argument
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentVerifierProviderBuilder.java84 public ContentVerifier get(AlgorithmIdentifier algorithm) in build() argument
89 Signature sig = helper.createSignature(algorithm); in build()
100 Signature rawSig = createRawSig(algorithm, certificate.getPublicKey()); in build()
104 return new RawSigVerifier(algorithm, stream, rawSig); in build()
108 return new SigVerifier(algorithm, stream); in build()
129 public ContentVerifier get(AlgorithmIdentifier algorithm) in build() argument
132 SignatureOutputStream stream = createSignatureStream(algorithm, publicKey); in build()
134 Signature rawSig = createRawSig(algorithm, publicKey); in build()
138 return new RawSigVerifier(algorithm, stream, rawSig); in build()
142 return new SigVerifier(algorithm, stream); in build()
[all …]
/external/vboot_reference/firmware/lib/cryptolib/
Drsa_utility.c15 uint64_t RSAProcessedKeySize(uint64_t algorithm, uint64_t* out_size) { in RSAProcessedKeySize() argument
17 if (algorithm < kNumAlgorithms) { in RSAProcessedKeySize()
18 key_len = siglen_map[algorithm]; in RSAProcessedKeySize()
34 key->algorithm = kNumAlgorithms; in RSAPublicKeyNew()
88 unsigned int algorithm) { in RSAVerifyBinary_f() argument
95 if (algorithm >= (unsigned int)kNumAlgorithms) in RSAVerifyBinary_f()
97 if (!RSAProcessedKeySize(algorithm, &key_size)) in RSAVerifyBinary_f()
99 sig_size = siglen_map[algorithm]; in RSAVerifyBinary_f()
112 digest = DigestBuf(buf, len, algorithm); in RSAVerifyBinary_f()
114 (uint8_t)algorithm, digest); in RSAVerifyBinary_f()
[all …]
/external/squashfs-tools/squashfs-tools/
Dlzo_wrapper.c44 static int algorithm = SQUASHFS_LZO1X_999; variable
79 algorithm = i; in lzo_options()
136 if(algorithm != SQUASHFS_LZO1X_999) { in lzo_options_post()
139 lzo[algorithm].name); in lzo_options_post()
175 if(algorithm == SQUASHFS_LZO1X_999 && in lzo_dump_options()
179 comp_opts.algorithm = algorithm; in lzo_dump_options()
180 comp_opts.compression_level = algorithm == SQUASHFS_LZO1X_999 ? in lzo_dump_options()
216 algorithm = SQUASHFS_LZO1X_999; in lzo_extract_options()
228 switch(comp_opts->algorithm) { in lzo_extract_options()
254 algorithm = comp_opts->algorithm; in lzo_extract_options()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DAlgorithmIdentifier.java15 private ASN1ObjectIdentifier algorithm; field in AlgorithmIdentifier
41 ASN1ObjectIdentifier algorithm) in AlgorithmIdentifier() argument
43 this.algorithm = algorithm; in AlgorithmIdentifier()
47 ASN1ObjectIdentifier algorithm, in AlgorithmIdentifier() argument
50 this.algorithm = algorithm; in AlgorithmIdentifier()
63 algorithm = ASN1ObjectIdentifier.getInstance(seq.getObjectAt(0)); in AlgorithmIdentifier()
77 return algorithm; in getAlgorithm()
97 v.add(algorithm); in toASN1Primitive()
/external/vboot_reference/futility/
Dcmd_vbutil_key.c70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm, in Pack() argument
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version); in Pack()
91 privkey = PrivateKeyReadPem(infile, algorithm); in Pack()
119 printf("Algorithm: %" PRIu64 " %s\n", pubkey->algorithm, in Unpack()
120 (pubkey->algorithm < kNumAlgorithms ? in Unpack()
121 algo_strings[pubkey->algorithm] : "(invalid)")); in Unpack()
142 privkey->algorithm, in Unpack()
143 (privkey->algorithm < in Unpack()
145 algorithm] : in Unpack()
172 uint64_t algorithm = kNumAlgorithms; in do_vbutil_key() local
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPrivateKey.java45 private String algorithm = "EC"; field in BCECPrivateKey
64 this.algorithm = key.getAlgorithm(); in BCECPrivateKey()
70 String algorithm, in BCECPrivateKey() argument
74 this.algorithm = algorithm; in BCECPrivateKey()
96 String algorithm, in BCECPrivateKey() argument
100 this.algorithm = algorithm; in BCECPrivateKey()
107 String algorithm, in BCECPrivateKey() argument
110 this.algorithm = algorithm; in BCECPrivateKey()
120 String algorithm, in BCECPrivateKey() argument
128 this.algorithm = algorithm; in BCECPrivateKey()
[all …]
DBCECPublicKey.java44 private String algorithm = "EC"; field in BCECPublicKey
52 String algorithm, in BCECPublicKey() argument
55 this.algorithm = algorithm; in BCECPublicKey()
63 String algorithm, in BCECPublicKey() argument
67 this.algorithm = algorithm; in BCECPublicKey()
74 String algorithm, in BCECPublicKey() argument
78 this.algorithm = algorithm; in BCECPublicKey()
105 String algorithm, in BCECPublicKey() argument
112 this.algorithm = algorithm; in BCECPublicKey()
130 String algorithm, in BCECPublicKey() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
DDigestAlgorithmProvider.java12 String algorithm, in addHMACAlgorithm() argument
16 String mainName = "HMAC" + algorithm; in addHMACAlgorithm()
19 provider.addAlgorithm("Alg.Alias.Mac.HMAC-" + algorithm, mainName); in addHMACAlgorithm()
20 provider.addAlgorithm("Alg.Alias.Mac.HMAC/" + algorithm, mainName); in addHMACAlgorithm()
22 provider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC-" + algorithm, mainName); in addHMACAlgorithm()
23 provider.addAlgorithm("Alg.Alias.KeyGenerator.HMAC/" + algorithm, mainName); in addHMACAlgorithm()
28 String algorithm, in addHMACAlias() argument
31 String mainName = "HMAC" + algorithm; in addHMACAlias()
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/ANY/
DCERT.py67 def __init__(self, rdclass, rdtype, certificate_type, key_tag, algorithm, argument
72 self.algorithm = algorithm
78 dns.dnssec.algorithm_to_text(self.algorithm),
84 algorithm = dns.dnssec.algorithm_from_text(tok.get_string())
85 if algorithm < 0 or algorithm > 255:
98 algorithm, certificate)
104 self.algorithm)
114 (certificate_type, key_tag, algorithm) = struct.unpack("!HHB", prefix)
116 return cls(rdclass, rdtype, certificate_type, key_tag, algorithm,
DSSHFP.py34 def __init__(self, rdclass, rdtype, algorithm, fp_type, argument
37 self.algorithm = algorithm
42 return '%d %d %s' % (self.algorithm,
48 algorithm = tok.get_uint8()
53 return cls(rdclass, rdtype, algorithm, fp_type, fingerprint)
58 header = struct.pack("!BB", self.algorithm, self.fp_type)
72 hs = struct.pack("!BB", self.algorithm, self.fp_type)
73 ho = struct.pack("!BB", other.algorithm, other.fp_type)
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPrivateKey.java47 private String algorithm = "EC"; field in JCEECPrivateKey
64 this.algorithm = key.getAlgorithm(); in JCEECPrivateKey()
69 String algorithm, in JCEECPrivateKey() argument
72 this.algorithm = algorithm; in JCEECPrivateKey()
92 String algorithm, in JCEECPrivateKey() argument
95 this.algorithm = algorithm; in JCEECPrivateKey()
101 String algorithm, in JCEECPrivateKey() argument
104 this.algorithm = algorithm; in JCEECPrivateKey()
113 String algorithm, in JCEECPrivateKey() argument
120 this.algorithm = algorithm; in JCEECPrivateKey()
[all …]
DJCEECPublicKey.java54 private String algorithm = "EC"; field in JCEECPublicKey
63 String algorithm, in JCEECPublicKey() argument
66 this.algorithm = algorithm; in JCEECPublicKey()
76 String algorithm, in JCEECPublicKey() argument
79 this.algorithm = algorithm; in JCEECPublicKey()
85 String algorithm, in JCEECPublicKey() argument
88 this.algorithm = algorithm; in JCEECPublicKey()
111 String algorithm, in JCEECPublicKey() argument
117 this.algorithm = algorithm; in JCEECPublicKey()
133 String algorithm, in JCEECPublicKey() argument
[all …]
/external/guava/guava-tests/benchmark/com/google/common/hash/
DMessageDigestAlgorithmBenchmark.java44 @Param Algorithm algorithm; field in MessageDigestAlgorithmBenchmark
49 @Override public byte[] hash(Algorithm algorithm, byte[] input) { in MESSAGE_DIGEST_API() argument
50 MessageDigest md = algorithm.getMessageDigest(); in MESSAGE_DIGEST_API()
56 @Override public byte[] hash(Algorithm algorithm, byte[] input) { in HASH_FUNCTION_API() argument
57 return algorithm.getHashFunction().hashBytes(input).asBytes(); in HASH_FUNCTION_API()
60 public abstract byte[] hash(Algorithm algorithm, byte[] input); in hash() argument
100 Algorithm algorithm = this.algorithm; in hashing() local
102 result ^= hashMethod.hash(algorithm, testBytes)[0]; in hashing()
/external/vboot_reference/utility/
Dsignature_digest_utility.c21 int algorithm = -1; in main() local
32 algorithm = atoi(argv[1]); in main()
33 if (algorithm < 0 || algorithm >= kNumAlgorithms) { in main()
44 signature_digest = SignatureDigest(buf, len, algorithm); in main()
45 signature_digest_len = (hash_size_map[algorithm] + in main()
46 digestinfo_size_map[algorithm]); in main()
Dpad_digest_utility.c20 int algorithm = -1; in main() local
31 algorithm = atoi(argv[1]); in main()
32 if (algorithm < 0 || algorithm >= kNumAlgorithms) { in main()
43 padded_digest = PrependDigestInfo(algorithm, digest); in main()
44 padded_digest_len = (hash_size_map[algorithm] + in main()
45 digestinfo_size_map[algorithm]); in main()

12345678910>>...24