/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | SubjectPublicKeyInfo.java | 25 private AlgorithmIdentifier algId; field in SubjectPublicKeyInfo 51 AlgorithmIdentifier algId, in SubjectPublicKeyInfo() argument 56 this.algId = algId; in SubjectPublicKeyInfo() 60 AlgorithmIdentifier algId, in SubjectPublicKeyInfo() argument 64 this.algId = algId; in SubjectPublicKeyInfo() 81 this.algId = AlgorithmIdentifier.getInstance(e.nextElement()); in SubjectPublicKeyInfo() 87 return algId; in getAlgorithm() 96 return algId; in getAlgorithmId() 154 v.add(algId); in toASN1Primitive()
|
D | DigestInfo.java | 26 private AlgorithmIdentifier algId; field in DigestInfo 51 AlgorithmIdentifier algId, in DigestInfo() argument 55 this.algId = algId; in DigestInfo() 63 algId = AlgorithmIdentifier.getInstance(e.nextElement()); in DigestInfo() 69 return algId; in getAlgorithmId() 81 v.add(algId); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | PrivateKeyInfo.java | 26 private AlgorithmIdentifier algId; field in PrivateKeyInfo 52 AlgorithmIdentifier algId, in PrivateKeyInfo() argument 56 this(algId, privateKey, null); in PrivateKeyInfo() 60 AlgorithmIdentifier algId, in PrivateKeyInfo() argument 66 this.algId = algId; in PrivateKeyInfo() 85 algId = AlgorithmIdentifier.getInstance(e.nextElement()); in PrivateKeyInfo() 96 return algId; in getPrivateKeyAlgorithm() 103 return algId; in getAlgorithmId() 154 v.add(algId); in toASN1Primitive()
|
D | EncryptedPrivateKeyInfo.java | 17 private AlgorithmIdentifier algId; field in EncryptedPrivateKeyInfo 25 algId = AlgorithmIdentifier.getInstance(e.nextElement()); in EncryptedPrivateKeyInfo() 30 AlgorithmIdentifier algId, in EncryptedPrivateKeyInfo() argument 33 this.algId = algId; in EncryptedPrivateKeyInfo() 54 return algId; in getEncryptionAlgorithm() 81 v.add(algId); in toASN1Primitive()
|
D | KeyDerivationFunc.java | 13 private AlgorithmIdentifier algId; field in KeyDerivationFunc 19 this.algId = new AlgorithmIdentifier(objectId, parameters); in KeyDerivationFunc() 25 this.algId = AlgorithmIdentifier.getInstance(seq); in KeyDerivationFunc() 44 return algId.getAlgorithm(); in getAlgorithm() 49 return algId.getParameters(); in getParameters() 54 return algId.toASN1Primitive(); in toASN1Primitive()
|
D | EncryptionScheme.java | 13 private AlgorithmIdentifier algId; field in EncryptionScheme 19 this.algId = new AlgorithmIdentifier(objectId, parameters); in EncryptionScheme() 25 this.algId = AlgorithmIdentifier.getInstance(seq); in EncryptionScheme() 44 return algId.getAlgorithm(); in getAlgorithm() 49 return algId.getParameters(); in getParameters() 54 return algId.toASN1Primitive(); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | KeyUtil.java | 11 …public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyDa… in getEncodedSubjectPublicKeyInfo() argument 15 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo() 23 public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData) in getEncodedSubjectPublicKeyInfo() argument 27 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo() 47 public static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey) in getEncodedPrivateKeyInfo() argument 51 PrivateKeyInfo info = new PrivateKeyInfo(algId, privKey.toASN1Primitive()); in getEncodedPrivateKeyInfo()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 88 AlgorithmIdentifier algId = keyInfo.getAlgorithm(); in createKey() local 90 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption) in createKey() 91 || algId.getAlgorithm().equals(X509ObjectIdentifiers.id_ea_rsa)) in createKey() 97 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.dhpublicnumber)) in createKey() 103 DomainParameters dhParams = DomainParameters.getInstance(algId.getParameters()); in createKey() 129 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 131 DHParameter params = DHParameter.getInstance(algId.getParameters()); in createKey() 150 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa) in createKey() 151 || algId.getAlgorithm().equals(OIWObjectIdentifiers.dsaWithSHA1)) in createKey() 154 ASN1Encodable de = algId.getParameters(); in createKey() [all …]
|
D | PrivateKeyFactory.java | 81 AlgorithmIdentifier algId = keyInfo.getPrivateKeyAlgorithm(); in createKey() local 83 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)) in createKey() 94 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 96 DHParameter params = DHParameter.getInstance(algId.getParameters()); in createKey() 115 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa)) in createKey() 118 ASN1Encodable de = algId.getParameters(); in createKey() 129 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)) in createKey() 131 X962Parameters params = new X962Parameters((ASN1Primitive)algId.getParameters()); in createKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | DigestSignatureSpi.java | 51 private AlgorithmIdentifier algId; field in DigestSignatureSpi 60 this.algId = null; in DigestSignatureSpi() 71 this.algId = new AlgorithmIdentifier(objId, DERNull.INSTANCE); in DigestSignatureSpi() 245 if (algId == null) in derEncode() 251 DigestInfo dInfo = new DigestInfo(algId, hash); in derEncode()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | CMSSignedHelper.java | 146 AlgorithmIdentifier fixAlgID(AlgorithmIdentifier algId) in fixAlgID() argument 148 if (algId.getParameters() == null) in fixAlgID() 150 return new AlgorithmIdentifier(algId.getAlgorithm(), DERNull.INSTANCE); in fixAlgID() 153 return algId; in fixAlgID()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
D | RSADigestSigner.java | 31 private final AlgorithmIdentifier algId; field in RSADigestSigner 74 this.algId = new AlgorithmIdentifier(digestOid, DERNull.INSTANCE); in RSADigestSigner() 242 DigestInfo dInfo = new DigestInfo(algId, hash); in derEncode()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/ |
D | PKCS12KeyStoreSpi.java | 608 AlgorithmIdentifier algId, in unwrapKey() argument 614 ASN1ObjectIdentifier algorithm = algId.getAlgorithm(); in unwrapKey() 619 PKCS12PBEParams pbeParams = PKCS12PBEParams.getInstance(algId.getParameters()); in unwrapKey() 636 Cipher cipher = createCipher(Cipher.UNWRAP_MODE, password, algId); in unwrapKey() 683 AlgorithmIdentifier algId, in cryptData() argument 689 ASN1ObjectIdentifier algorithm = algId.getAlgorithm(); in cryptData() 694 PKCS12PBEParams pbeParams = PKCS12PBEParams.getInstance(algId.getParameters()); in cryptData() 718 Cipher cipher = createCipher(mode, password, algId); in cryptData() 733 private Cipher createCipher(int mode, char[] password, AlgorithmIdentifier algId) in createCipher() argument 736 PBES2Parameters alg = PBES2Parameters.getInstance(algId.getParameters()); in createCipher() [all …]
|
/external/tpm2/ |
D | CryptUtil_fp.h | 168 CryptHashBlock(TPM_ALG_ID algId, // IN: the hash algorithm to use
|
D | CryptUtil.c | 483 TPM_ALG_ID algId, // IN: the hash algorithm to use in CryptHashBlock() argument 490 TEST_HASH(algId); in CryptHashBlock() 491 return _cpri__HashBlock(algId, blockSize, block, retSize, ret); in CryptHashBlock()
|
/external/bouncycastle/patches/ |
D | bcprov.patch | 1208 - else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm)) 1210 - ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters()); 1217 + // else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm)) 1219 + // ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters()); 1226 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa)) 1260 - else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm)) 1262 - ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters()); 1269 + // else if (algId.getAlgorithm().equals(OIWObjectIdentifiers.elGamalAlgorithm)) 1271 + // ElGamalParameter params = ElGamalParameter.getInstance(algId.getParameters()); 1278 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa) [all …]
|