HomeSort by relevance Sort by last modified time
    Searched refs:PrivateKeyInfo (Results 1 - 25 of 30) sorted by null

1 2

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
AsymmetricKeyInfoConverter.java 7 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
12 PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
PrivateKeyInfo.java 22 public class PrivateKeyInfo
29 public static PrivateKeyInfo getInstance(
36 public static PrivateKeyInfo getInstance(
39 if (obj instanceof PrivateKeyInfo)
41 return (PrivateKeyInfo)obj;
45 return new PrivateKeyInfo(ASN1Sequence.getInstance(obj));
51 public PrivateKeyInfo(
59 public PrivateKeyInfo(
71 * @deprectaed use PrivateKeyInfo.getInstance()
74 public PrivateKeyInfo(
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
KeyUtil.java 5 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
51 PrivateKeyInfo info = new PrivateKeyInfo(algId, privKey.toASN1Primitive());
61 public static byte[] getEncodedPrivateKeyInfo(PrivateKeyInfo info)
BaseKeyFactorySpi.java 12 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
28 return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()));
BaseCipherSpi.java 27 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
171 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded);
ECUtil.java 12 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
204 PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes));
  /libcore/luni/src/main/java/org/apache/harmony/security/pkcs8/
PrivateKeyInfo.java 34 * PrivateKeyInfo having the following ASN.1 notation:
36 * PrivateKeyInfo ::= SEQUENCE {
50 public final class PrivateKeyInfo {
57 public PrivateKeyInfo(int version, AlgorithmIdentifier privateKeyAlgorithm,
65 private PrivateKeyInfo(int version,
92 * Returns ASN.1 encoded form of this PrivateKeyInfo.
116 return new PrivateKeyInfo(ASN1Integer.toIntValue(values[0]),
122 PrivateKeyInfo privateKeyInfo = (PrivateKeyInfo) object
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSAPrivateKeyImpl.java 40 import org.apache.harmony.security.pkcs8.PrivateKeyInfo;
68 PrivateKeyInfo pki;
82 pki = new PrivateKeyInfo(0, ai, ASN1Integer.getInstance().encode(
109 PrivateKeyInfo privateKeyInfo = null;
112 privateKeyInfo = (PrivateKeyInfo) PrivateKeyInfo.ASN1
120 privateKeyInfo.getPrivateKey()));
125 ai = privateKeyInfo.getAlgorithmIdentifier()
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
KeyFactory.java 13 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
29 PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JCEDHPrivateKey.java 21 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
37 private PrivateKeyInfo info;
60 PrivateKeyInfo info)
119 * represents a full PrivateKeyInfo object.
132 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL())), new DERInteger(getX()));
JDKDSAPrivateKey.java 19 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
56 PrivateKeyInfo info)
90 * represents a full PrivateKeyInfo object.
98 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(X9ObjectIdentifiers.id_dsa, new DSAParameter(dsaSpec.getP(), dsaSpec.getQ(), dsaSpec.getG())), new DERInteger(getX()));
JCEECPrivateKey.java 27 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
192 PrivateKeyInfo info)
198 private void populateFromPrivKeyInfo(PrivateKeyInfo info)
289 * represents a full PrivateKeyInfo object.
324 PrivateKeyInfo info;
341 // info = new PrivateKeyInfo(new AlgorithmIdentifier(CryptoProObjectIdentifiers.gostR3410_2001, params.toASN1Primitive()), keyStructure.toASN1Primitive());
347 info = new PrivateKeyInfo(new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, params.toASN1Primitive()), keyStructure.toASN1Primitive());
465 populateFromPrivKeyInfo(PrivateKeyInfo.getInstance(ASN1Primitive.fromByteArray(enc)));
BouncyCastleProvider.java 13 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
295 public static PrivateKey getPrivateKey(PrivateKeyInfo privateKeyInfo)
298 AsymmetricKeyInfoConverter converter = (AsymmetricKeyInfoConverter)keyInfoConverters.get(privateKeyInfo.getPrivateKeyAlgorithm().getAlgorithm());
305 return converter.generatePrivate(privateKeyInfo);
JCEStreamCipher.java 32 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
448 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded);
JCERSAPrivateCrtKey.java 10 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
90 PrivateKeyInfo info)
124 * represents a full PrivateKeyInfo object.
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
BCDHPrivateKey.java 20 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
37 private transient PrivateKeyInfo info;
60 PrivateKeyInfo info)
119 * represents a full PrivateKeyInfo object.
132 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL()).toASN1Primitive()), new ASN1Integer(getX()));
KeyFactorySpi.java 18 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
91 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
KeyFactorySpi.java 18 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
91 return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()));
133 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
BCRSAPrivateCrtKey.java 10 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
90 PrivateKeyInfo info)
124 * represents a full PrivateKeyInfo object.
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
KeyFactorySpi.java 16 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
64 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
BCDSAPrivateKey.java 16 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
54 PrivateKeyInfo info)
88 * represents a full PrivateKeyInfo object.
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
PrivateKeyFactory.java 20 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
47 * Factory for creating private key objects from PKCS8 PrivateKeyInfo objects.
52 * Create a private key parameter from a PKCS8 PrivateKeyInfo encoding.
54 * @param privateKeyInfoData the PrivateKeyInfo encoding
60 return createKey(PrivateKeyInfo.getInstance(ASN1Primitive.fromByteArray(privateKeyInfoData)));
64 * Create a private key parameter from a PKCS8 PrivateKeyInfo encoding read from a
67 * @param inStr the stream to read the PrivateKeyInfo encoding from
73 return createKey(PrivateKeyInfo.getInstance(new ASN1InputStream(inStr).readObject()));
77 * Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object.
79 * @param keyInfo the PrivateKeyInfo object containing the key materia
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
BCECPrivateKey.java 26 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
210 PrivateKeyInfo info,
219 private void populateFromPrivKeyInfo(PrivateKeyInfo info)
310 * represents a full PrivateKeyInfo object.
345 PrivateKeyInfo info;
362 // info = new PrivateKeyInfo(new AlgorithmIdentifier(CryptoProObjectIdentifiers.gostR3410_2001, params.toASN1Primitive()), keyStructure.toASN1Primitive());
368 info = new PrivateKeyInfo(new AlgorithmIdentifier(X9ObjectIdentifiers.id_ecPublicKey, params.toASN1Primitive()), keyStructure.toASN1Primitive());
488 populateFromPrivKeyInfo(PrivateKeyInfo.getInstance(ASN1Primitive.fromByteArray(enc)));
KeyFactorySpi.java 14 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
156 public PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseWrapCipher.java 31 import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
349 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded);

Completed in 586 milliseconds

1 2