Home
last modified time | relevance | path

Searched refs:algorithmIdentifier (Results 1 – 20 of 20) sorted by relevance

/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/
DGenericKey.java7 private AlgorithmIdentifier algorithmIdentifier; field in GenericKey
16 this.algorithmIdentifier = null; in GenericKey()
20 public GenericKey(AlgorithmIdentifier algorithmIdentifier, byte[] representation) in GenericKey() argument
22 this.algorithmIdentifier = algorithmIdentifier; in GenericKey()
26 protected GenericKey(AlgorithmIdentifier algorithmIdentifier, Object representation) in GenericKey() argument
28 this.algorithmIdentifier = algorithmIdentifier; in GenericKey()
34 return algorithmIdentifier; in getAlgorithmIdentifier()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java28 private transient AlgorithmIdentifier algorithmIdentifier; field in BCRSAPublicKey
41 this.algorithmIdentifier = algId; in BCRSAPublicKey()
50 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
59 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
77 this.algorithmIdentifier = info.getAlgorithm(); in populateFromPublicKeyInfo()
110 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
124 …return KeyUtil.getEncodedSubjectPublicKeyInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.… in getEncoded()
179 algorithmIdentifier = AlgorithmIdentifier.getInstance(in.readObject()); in readObject()
183 algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in readObject()
194 if (!algorithmIdentifier.equals(DEFAULT_ALGORITHM_IDENTIFIER)) in writeObject()
[all …]
DBCRSAPrivateKey.java32 …protected transient AlgorithmIdentifier algorithmIdentifier = BCRSAPublicKey.DEFAULT_ALGORITHM_IDE… field in BCRSAPrivateKey
48 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
74 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
94 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
113 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPri… in getEncoded()
168 this.algorithmIdentifier = AlgorithmIdentifier.getInstance(algorithmIdentifierEnc); in readObject()
193 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() argument
197 return algorithmIdentifier.getEncoded(); in getEncoding()
DBCRSAPrivateCrtKey.java53 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
56 super(algorithmIdentifier, key); in BCRSAPrivateCrtKey()
130 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
133 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey()
165 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java32 private transient AlgorithmIdentifier algorithmIdentifier; field in BCRSAPublicKey
45 this.algorithmIdentifier = algId; in BCRSAPublicKey()
54 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
63 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
81 this.algorithmIdentifier = info.getAlgorithm(); in populateFromPublicKeyInfo()
114 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
128 …return KeyUtil.getEncodedSubjectPublicKeyInfo(algorithmIdentifier, new com.android.org.bouncycastl… in getEncoded()
183 algorithmIdentifier = AlgorithmIdentifier.getInstance(in.readObject()); in readObject()
187 algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in readObject()
198 if (!algorithmIdentifier.equals(DEFAULT_ALGORITHM_IDENTIFIER)) in writeObject()
[all …]
DBCRSAPrivateKey.java36 …protected transient AlgorithmIdentifier algorithmIdentifier = BCRSAPublicKey.DEFAULT_ALGORITHM_IDE… field in BCRSAPrivateKey
52 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
78 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
98 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
117 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new com.android.org.bouncycastle.asn1… in getEncoded()
172 this.algorithmIdentifier = AlgorithmIdentifier.getInstance(algorithmIdentifierEnc); in readObject()
197 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() argument
201 return algorithmIdentifier.getEncoded(); in getEncoding()
DBCRSAPrivateCrtKey.java55 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
58 super(algorithmIdentifier, key); in BCRSAPrivateCrtKey()
132 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
135 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey()
167 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java32 private transient AlgorithmIdentifier algorithmIdentifier; field in BCRSAPublicKey
45 this.algorithmIdentifier = algId; in BCRSAPublicKey()
54 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
63 this.algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in BCRSAPublicKey()
81 this.algorithmIdentifier = info.getAlgorithm(); in populateFromPublicKeyInfo()
114 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
128 …return KeyUtil.getEncodedSubjectPublicKeyInfo(algorithmIdentifier, new com.android.internal.org.bo… in getEncoded()
183 algorithmIdentifier = AlgorithmIdentifier.getInstance(in.readObject()); in readObject()
187 algorithmIdentifier = DEFAULT_ALGORITHM_IDENTIFIER; in readObject()
198 if (!algorithmIdentifier.equals(DEFAULT_ALGORITHM_IDENTIFIER)) in writeObject()
[all …]
DBCRSAPrivateKey.java36 …protected transient AlgorithmIdentifier algorithmIdentifier = BCRSAPublicKey.DEFAULT_ALGORITHM_IDE… field in BCRSAPrivateKey
52 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
78 this.algorithmIdentifier = algID; in BCRSAPrivateKey()
98 if (algorithmIdentifier.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getAlgorithm()
117 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new com.android.internal.org.bouncyca… in getEncoded()
172 this.algorithmIdentifier = AlgorithmIdentifier.getInstance(algorithmIdentifierEnc); in readObject()
197 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() argument
201 return algorithmIdentifier.getEncoded(); in getEncoding()
DBCRSAPrivateCrtKey.java55 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
58 super(algorithmIdentifier, key); in BCRSAPrivateCrtKey()
132 AlgorithmIdentifier algorithmIdentifier, in BCRSAPrivateCrtKey() argument
135 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey()
167 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
DCMSAlgorithmProtection.java37 …mProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier) in CMSAlgorithmProtection() argument
39 if (digestAlgorithm == null || algorithmIdentifier == null) in CMSAlgorithmProtection()
48 this.signatureAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
54 this.macAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/cms/
DCMSAlgorithmProtection.java39 …mProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier) in CMSAlgorithmProtection() argument
41 if (digestAlgorithm == null || algorithmIdentifier == null) in CMSAlgorithmProtection()
50 this.signatureAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
56 this.macAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/cms/
DCMSAlgorithmProtection.java39 …mProtection(AlgorithmIdentifier digestAlgorithm, int type, AlgorithmIdentifier algorithmIdentifier) in CMSAlgorithmProtection() argument
41 if (digestAlgorithm == null || algorithmIdentifier == null) in CMSAlgorithmProtection()
50 this.signatureAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
56 this.macAlgorithm = algorithmIdentifier; in CMSAlgorithmProtection()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DSignerInformationVerifier.java46 public DigestCalculator getDigestCalculator(AlgorithmIdentifier algorithmIdentifier) in getDigestCalculator() argument
49 return digestProvider.get(algorithmIdentifier); in getDigestCalculator()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DX509SignatureUtil.java46 static boolean isCompositeAlgorithm(AlgorithmIdentifier algorithmIdentifier) in isCompositeAlgorithm() argument
48 return MiscObjectIdentifiers.id_alg_composite.equals(algorithmIdentifier.getAlgorithm()); in isCompositeAlgorithm()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/
DX509SignatureUtil.java47 static boolean isCompositeAlgorithm(AlgorithmIdentifier algorithmIdentifier) in isCompositeAlgorithm() argument
49 return MiscObjectIdentifiers.id_alg_composite.equals(algorithmIdentifier.getAlgorithm()); in isCompositeAlgorithm()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/x509/
DX509SignatureUtil.java47 static boolean isCompositeAlgorithm(AlgorithmIdentifier algorithmIdentifier) in isCompositeAlgorithm() argument
49 return MiscObjectIdentifiers.id_alg_composite.equals(algorithmIdentifier.getAlgorithm()); in isCompositeAlgorithm()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java1925 public int getKeySize(AlgorithmIdentifier algorithmIdentifier) in getKeySize() argument
1928 Integer keySize = (Integer)KEY_SIZES.get(algorithmIdentifier.getAlgorithm()); in getKeySize()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java1925 public int getKeySize(AlgorithmIdentifier algorithmIdentifier) in getKeySize() argument
1928 Integer keySize = (Integer)KEY_SIZES.get(algorithmIdentifier.getAlgorithm()); in getKeySize()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
DPKCS12KeyStoreSpi.java1918 public int getKeySize(AlgorithmIdentifier algorithmIdentifier) in getKeySize() argument
1921 Integer keySize = (Integer)KEY_SIZES.get(algorithmIdentifier.getAlgorithm()); in getKeySize()