/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/ |
D | DefaultJcaJceHelper.java | 28 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 …]
|
D | ProviderJcaJceHelper.java | 35 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 …]
|
D | NamedJcaJceHelper.java | 35 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 …]
|
D | JcaJceHelper.java | 27 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/ |
D | SecretKeySpecTest.java | 45 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/conscrypt/src/main/java/org/conscrypt/ |
D | X509PublicKey.java | 29 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()
|
D | OpenSSLSecretKey.java | 31 private final String algorithm; field in OpenSSLSecretKey 37 public OpenSSLSecretKey(String algorithm, byte[] encoded) { in OpenSSLSecretKey() argument 38 this.algorithm = algorithm; in OpenSSLSecretKey() 45 public OpenSSLSecretKey(String algorithm, OpenSSLKey key) { in OpenSSLSecretKey() argument 46 this.algorithm = algorithm; in OpenSSLSecretKey() 64 return algorithm; in getAlgorithm() 101 if (!algorithm.equals(other.getAlgorithm())) { in equals()
|
D | CryptoUpcalls.java | 45 private static ArrayList<Provider> getExternalProviders(String algorithm) { in getExternalProviders() argument 47 for (Provider p : Security.getProviders(algorithm)) { in getExternalProviders() 53 System.err.println("Could not find external provider for algorithm: " + algorithm); in getExternalProviders() 60 String algorithm; in rawSignDigestWithPrivateKey() local 69 algorithm = "NONEwithRSA"; in rawSignDigestWithPrivateKey() 71 algorithm = "NONEwithECDSA"; in rawSignDigestWithPrivateKey() 80 signature = Signature.getInstance(algorithm); in rawSignDigestWithPrivateKey() 88 System.err.println("Unsupported signature algorithm: " + algorithm); in rawSignDigestWithPrivateKey() 99 ArrayList<Provider> providers = getExternalProviders("Signature." + algorithm); in rawSignDigestWithPrivateKey() 102 signature = Signature.getInstance(algorithm, p); in rawSignDigestWithPrivateKey() [all …]
|
/external/vboot_reference/host/lib/ |
D | signature_digest.c | 17 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 …]
|
D | host_key.c | 23 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/ |
D | JcaContentVerifierProviderBuilder.java | 84 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/ |
D | rsa_utility.c | 15 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/ |
D | lzo_wrapper.c | 44 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/vboot_reference/futility/ |
D | cmd_vbutil_key.c | 70 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/digest/ |
D | DigestAlgorithmProvider.java | 12 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/ |
D | JCEECPrivateKey.java | 46 private String algorithm = "EC"; field in JCEECPrivateKey 63 this.algorithm = key.getAlgorithm(); in JCEECPrivateKey() 68 String algorithm, in JCEECPrivateKey() argument 71 this.algorithm = algorithm; in JCEECPrivateKey() 91 String algorithm, in JCEECPrivateKey() argument 94 this.algorithm = algorithm; in JCEECPrivateKey() 100 String algorithm, in JCEECPrivateKey() argument 103 this.algorithm = algorithm; in JCEECPrivateKey() 112 String algorithm, in JCEECPrivateKey() argument 119 this.algorithm = algorithm; in JCEECPrivateKey() [all …]
|
D | JCEECPublicKey.java | 53 private String algorithm = "EC"; field in JCEECPublicKey 62 String algorithm, in JCEECPublicKey() argument 65 this.algorithm = algorithm; in JCEECPublicKey() 75 String algorithm, in JCEECPublicKey() argument 78 this.algorithm = algorithm; in JCEECPublicKey() 84 String algorithm, in JCEECPublicKey() argument 87 this.algorithm = algorithm; in JCEECPublicKey() 110 String algorithm, in JCEECPublicKey() argument 116 this.algorithm = algorithm; in JCEECPublicKey() 132 String algorithm, in JCEECPublicKey() argument [all …]
|
/external/vboot_reference/utility/ |
D | signature_digest_utility.c | 21 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()
|
D | pad_digest_utility.c | 20 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()
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | MessageDigestAlgorithmBenchmark.java | 44 @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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
D | BCECPrivateKey.java | 44 private String algorithm = "EC"; field in BCECPrivateKey 63 this.algorithm = key.getAlgorithm(); in BCECPrivateKey() 69 String algorithm, in BCECPrivateKey() argument 73 this.algorithm = algorithm; in BCECPrivateKey() 95 String algorithm, in BCECPrivateKey() argument 99 this.algorithm = algorithm; in BCECPrivateKey() 106 String algorithm, in BCECPrivateKey() argument 109 this.algorithm = algorithm; in BCECPrivateKey() 119 String algorithm, in BCECPrivateKey() argument 127 this.algorithm = algorithm; in BCECPrivateKey() [all …]
|
D | BCECPublicKey.java | 45 private String algorithm = "EC"; field in BCECPublicKey 53 String algorithm, in BCECPublicKey() argument 56 this.algorithm = algorithm; in BCECPublicKey() 64 String algorithm, in BCECPublicKey() argument 68 this.algorithm = algorithm; in BCECPublicKey() 75 String algorithm, in BCECPublicKey() argument 79 this.algorithm = algorithm; in BCECPublicKey() 106 String algorithm, in BCECPublicKey() argument 113 this.algorithm = algorithm; in BCECPublicKey() 131 String algorithm, in BCECPublicKey() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
D | X509Util.java | 199 String algorithm) in getSignatureInstance() argument 202 return Signature.getInstance(algorithm); in getSignatureInstance() 206 String algorithm, in getSignatureInstance() argument 212 return Signature.getInstance(algorithm, provider); in getSignatureInstance() 216 return Signature.getInstance(algorithm); in getSignatureInstance() 326 String algorithm, in getImplementation() argument 330 algorithm = Strings.toUpperCase(algorithm); in getImplementation() 334 while ((alias = prov.getProperty("Alg.Alias." + baseName + "." + algorithm)) != null) in getImplementation() 336 algorithm = alias; in getImplementation() 339 String className = prov.getProperty(baseName + "." + algorithm); in getImplementation() [all …]
|
/external/vboot_reference/tests/ |
D | rsa_verify_benchmark.c | 18 int SpeedTestAlgorithm(int algorithm) { in SpeedTestAlgorithm() argument 35 key_size = siglen_map[algorithm] * 8; /* in bits. */ in SpeedTestAlgorithm() 47 sha_strings[algorithm]); in SpeedTestAlgorithm() 57 key_size, sha_strings[algorithm]); in SpeedTestAlgorithm() 67 if (!RSAVerify(key, signature, sig_len, algorithm, digest)) in SpeedTestAlgorithm() 75 " Speed = %.02f verifications/s\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm() 77 fprintf(stdout, "ms_rsa%d_%s:%.02f\n", key_size, sha_strings[algorithm], in SpeedTestAlgorithm()
|
/external/vboot_reference/firmware/lib/ |
D | vboot_common.c | 107 key->algorithm = kNumAlgorithms; /* Key not present yet */ in PublicKeyInit() 117 dest->algorithm = src->algorithm; in PublicKeyCopy() 128 if (kNumAlgorithms <= key->algorithm) { in PublicKeyToRSA() 132 if (!RSAProcessedKeySize(key->algorithm, &key_size) || in PublicKeyToRSA() 142 rsa->algorithm = (unsigned int)key->algorithm; in PublicKeyToRSA() 150 (unsigned)sig->sig_size, siglen_map[key->algorithm], in VerifyData() 151 key->algorithm)); in VerifyData() 152 if (sig->sig_size != siglen_map[key->algorithm]) { in VerifyData() 155 (int)sig->sig_size, siglen_map[key->algorithm], in VerifyData() 156 key->algorithm)); in VerifyData() [all …]
|