use of com.github.zhenwei.provider.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl in project LinLong-Java by zhenwei1108.
the class BCRSAPrivateKey method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
if (algorithmIdentifierEnc == null) {
algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER);
}
this.algorithmIdentifier = AlgorithmIdentifier.getInstance(algorithmIdentifierEnc);
this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent);
}
use of com.github.zhenwei.provider.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl in project LinLong-Java by zhenwei1108.
the class JCERSAPrivateKey method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
this.modulus = (BigInteger) in.readObject();
this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
attrCarrier.readObject(in);
this.privateExponent = (BigInteger) in.readObject();
}
use of com.github.zhenwei.provider.jcajce.provider.asymmetric.util.PKCS12BagAttributeCarrierImpl in project LinLong-Java by zhenwei1108.
the class JDKDSAPrivateKey method readObject.
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
this.x = (BigInteger) in.readObject();
this.dsaSpec = new DSAParameterSpec((BigInteger) in.readObject(), (BigInteger) in.readObject(), (BigInteger) in.readObject());
this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
attrCarrier.readObject(in);
}
Aggregations