Home
last modified time | relevance | path

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

12345678910>>...25

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DDefaultJcaJceHelper.java29 String algorithm) in createCipher() argument
32 return Cipher.getInstance(algorithm); in createCipher()
35 public Mac createMac(String algorithm) in createMac() argument
38 return Mac.getInstance(algorithm); in createMac()
41 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
44 return KeyAgreement.getInstance(algorithm); in createKeyAgreement()
47 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
50 return AlgorithmParameterGenerator.getInstance(algorithm); in createAlgorithmParameterGenerator()
53 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
56 return AlgorithmParameters.getInstance(algorithm); in createAlgorithmParameters()
[all …]
DProviderJcaJceHelper.java36 String algorithm) in createCipher() argument
39 return Cipher.getInstance(algorithm, provider); in createCipher()
42 public Mac createMac(String algorithm) in createMac() argument
45 return Mac.getInstance(algorithm, provider); in createMac()
48 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
51 return KeyAgreement.getInstance(algorithm, provider); in createKeyAgreement()
54 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
57 return AlgorithmParameterGenerator.getInstance(algorithm, provider); in createAlgorithmParameterGenerator()
60 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
63 return AlgorithmParameters.getInstance(algorithm, provider); in createAlgorithmParameters()
[all …]
DNamedJcaJceHelper.java36 String algorithm) in createCipher() argument
39 return Cipher.getInstance(algorithm, providerName); in createCipher()
42 public Mac createMac(String algorithm) in createMac() argument
45 return Mac.getInstance(algorithm, providerName); in createMac()
48 public KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
51 return KeyAgreement.getInstance(algorithm, providerName); in createKeyAgreement()
54 public AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
57 return AlgorithmParameterGenerator.getInstance(algorithm, providerName); in createAlgorithmParameterGenerator()
60 public AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
63 return AlgorithmParameters.getInstance(algorithm, providerName); in createAlgorithmParameters()
[all …]
DJcaJceHelper.java28 String algorithm) in createCipher() argument
31 Mac createMac(String algorithm) in createMac() argument
34 KeyAgreement createKeyAgreement(String algorithm) in createKeyAgreement() argument
37 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm) in createAlgorithmParameterGenerator() argument
40 AlgorithmParameters createAlgorithmParameters(String algorithm) in createAlgorithmParameters() argument
43 KeyGenerator createKeyGenerator(String algorithm) in createKeyGenerator() argument
46 KeyFactory createKeyFactory(String algorithm) in createKeyFactory() argument
49 SecretKeyFactory createSecretKeyFactory(String algorithm) in createSecretKeyFactory() argument
52 KeyPairGenerator createKeyPairGenerator(String algorithm) in createKeyPairGenerator() argument
55 MessageDigest createDigest(String algorithm) in createDigest() argument
[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/common/src/main/java/org/conscrypt/
DX509PublicKey.java29 private final String algorithm; field in X509PublicKey
33 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/ImageMagick/Magick++/demo/
Dzoom.cpp76 std::string algorithm(argv[argv_index]); in main() local
77 if (algorithm.compare("point") == 0) in main()
79 else if (algorithm.compare("box") == 0) in main()
81 else if (algorithm.compare("triangle") == 0) in main()
83 else if (algorithm.compare("hermite") == 0) in main()
85 else if (algorithm.compare("hanning") == 0) in main()
87 else if (algorithm.compare("hamming") == 0) in main()
89 else if (algorithm.compare("blackman") == 0) in main()
91 else if (algorithm.compare("gaussian") == 0) in main()
93 else if (algorithm.compare("quadratic") == 0) in main()
[all …]
/external/libcups/cups/
Dhash.c45 cupsHashData(const char *algorithm, /* I - Algorithm name */ in cupsHashData() argument
51 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) in cupsHashData()
58 if (!strcmp(algorithm, "md5")) in cupsHashData()
75 else if (!strcmp(algorithm, "sha")) in cupsHashData()
92 else if (!strcmp(algorithm, "sha2-224")) in cupsHashData()
105 else if (!strcmp(algorithm, "sha2-256")) in cupsHashData()
118 else if (!strcmp(algorithm, "sha2-384")) in cupsHashData()
131 else if (!strcmp(algorithm, "sha2-512")) in cupsHashData()
144 else if (!strcmp(algorithm, "sha2-512_224")) in cupsHashData()
165 else if (!strcmp(algorithm, "sha2-512_256")) in cupsHashData()
[all …]
/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/wycheproof/java/com/google/security/wycheproof/testcases/
DCipherOutputStreamTest.java42 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { in randomKey() argument
47 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { in randomParameters() argument
48 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { in randomParameters()
57 public String algorithm; field in CipherOutputStreamTest.TestVector
65 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) in TestVector() argument
67 this.algorithm = algorithm; in TestVector()
68 this.key = randomKey(algorithm, keySize); in TestVector()
69 this.params = randomParameters(algorithm, ivSize, tagSize); in TestVector()
72 Cipher cipher = Cipher.getInstance(algorithm); in TestVector()
80 String algorithm, in getTestVectors() argument
[all …]
DCipherInputStreamTest.java43 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { in randomKey() argument
48 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { in randomParameters() argument
49 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { in randomParameters()
57 public String algorithm; field in CipherInputStreamTest.TestVector
66 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) in TestVector() argument
68 this.algorithm = algorithm; in TestVector()
69 this.key = randomKey(algorithm, keySize); in TestVector()
70 this.params = randomParameters(algorithm, ivSize, tagSize); in TestVector()
73 Cipher cipher = Cipher.getInstance(algorithm); in TestVector()
81 String algorithm, in getTestVectors() argument
[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/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/jcajce/provider/asymmetric/ec/
DBCECPrivateKey.java42 private String algorithm = "EC"; field in BCECPrivateKey
61 this.algorithm = key.getAlgorithm(); in BCECPrivateKey()
67 String algorithm, in BCECPrivateKey() argument
71 this.algorithm = algorithm; in BCECPrivateKey()
93 String algorithm, in BCECPrivateKey() argument
97 this.algorithm = algorithm; in BCECPrivateKey()
104 String algorithm, in BCECPrivateKey() argument
107 this.algorithm = algorithm; in BCECPrivateKey()
117 String algorithm, in BCECPrivateKey() argument
125 this.algorithm = algorithm; in BCECPrivateKey()
[all …]
DBCECPublicKey.java39 private String algorithm = "EC"; field in BCECPublicKey
47 String algorithm, in BCECPublicKey() argument
50 this.algorithm = algorithm; in BCECPublicKey()
58 String algorithm, in BCECPublicKey() argument
62 this.algorithm = algorithm; in BCECPublicKey()
69 String algorithm, in BCECPublicKey() argument
73 this.algorithm = algorithm; in BCECPublicKey()
97 String algorithm, in BCECPublicKey() argument
104 this.algorithm = algorithm; in BCECPublicKey()
122 String algorithm, in BCECPublicKey() argument
[all …]
/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/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DTrustManagerFactoryTest.java66 private static boolean supportsManagerFactoryParameters(String algorithm) { in supportsManagerFactoryParameters() argument
67 return (StandardNames.IS_RI && algorithm.equals("PKIX")); in supportsManagerFactoryParameters()
72 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); in test_TrustManagerFactory_getDefaultAlgorithm() local
73 assertEquals(StandardNames.TRUST_MANAGER_FACTORY_DEFAULT, algorithm); in test_TrustManagerFactory_getDefaultAlgorithm()
74 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); in test_TrustManagerFactory_getDefaultAlgorithm()
201 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_getInstance() local
203 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm); in test_TrustManagerFactory_getInstance()
204 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance()
209 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm, provider); in test_TrustManagerFactory_getInstance()
210 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance()
[all …]
DKeyManagerFactoryTest.java68 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); in test_KeyManagerFactory_getDefaultAlgorithm() local
69 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); in test_KeyManagerFactory_getDefaultAlgorithm()
70 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); in test_KeyManagerFactory_getDefaultAlgorithm()
76 private static boolean supportsManagerFactoryParameters(String algorithm) { in supportsManagerFactoryParameters() argument
78 return algorithm.equals("NewSunX509"); in supportsManagerFactoryParameters()
81 private static String[] keyTypes(String algorithm) { in keyTypes() argument
84 return (algorithm.equals("NewSunX509") ? KEY_TYPES_WITH_EMPTY in keyTypes()
169 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) in test_X509KeyManager() argument
171 String[] keyTypes = keyTypes(algorithm); in test_X509KeyManager()
208 test_X509ExtendedKeyManager((X509ExtendedKeyManager) km, empty, algorithm); in test_X509KeyManager() local
[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/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 …]
/external/vboot_reference/utility/
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>>...25