本文整理汇总了Java中org.bouncycastle.jce.provider.BouncyCastleProvider.CONFIGURATION属性的典型用法代码示例。如果您正苦于以下问题:Java BouncyCastleProvider.CONFIGURATION属性的具体用法?Java BouncyCastleProvider.CONFIGURATION怎么用?Java BouncyCastleProvider.CONFIGURATION使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bouncycastle.jce.provider.BouncyCastleProvider
的用法示例。
在下文中一共展示了BouncyCastleProvider.CONFIGURATION属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readObject
private void readObject(
ObjectInputStream in)
throws IOException, ClassNotFoundException
{
in.defaultReadObject();
byte[] enc = (byte[])in.readObject();
populateFromPrivKeyInfo(PrivateKeyInfo.getInstance(ASN1Primitive.fromByteArray(enc)));
this.configuration = BouncyCastleProvider.CONFIGURATION;
this.attrCarrier = new PKCS12BagAttributeCarrierImpl();
}
示例2: readObject
private void readObject(
ObjectInputStream in)
throws IOException, ClassNotFoundException
{
in.defaultReadObject();
byte[] enc = (byte[])in.readObject();
populateFromPubKeyInfo(SubjectPublicKeyInfo.getInstance(ASN1Primitive.fromByteArray(enc)));
this.configuration = BouncyCastleProvider.CONFIGURATION;
}
示例3: decodeKeyPair
public static KeyPair decodeKeyPair(ECKeyPair ecKeyPair) {
byte[] bytes = Numeric.toBytesPadded(ecKeyPair.getPublicKey(), 64);
BigInteger x = Numeric.toBigInt(Arrays.copyOfRange(bytes, 0, 32));
BigInteger y = Numeric.toBigInt(Arrays.copyOfRange(bytes, 32, 64));
ECPoint q = curve.createPoint(x, y);
BCECPublicKey publicKey = new BCECPublicKey(ALGORITHM, new ECPublicKeyParameters(q, dp), BouncyCastleProvider.CONFIGURATION);
BCECPrivateKey privateKey = new BCECPrivateKey(ALGORITHM, new ECPrivateKeyParameters(ecKeyPair.getPrivateKey(), dp), publicKey, p, BouncyCastleProvider.CONFIGURATION);
return new KeyPair(publicKey, privateKey);
}
示例4: EC
public EC()
{
super("EC", BouncyCastleProvider.CONFIGURATION);
}
示例5: ECDSA
public ECDSA()
{
super("ECDSA", BouncyCastleProvider.CONFIGURATION);
}
示例6: ECGOST3410
public ECGOST3410()
{
super("ECGOST3410", BouncyCastleProvider.CONFIGURATION);
}
示例7: ECDH
public ECDH()
{
super("ECDH", BouncyCastleProvider.CONFIGURATION);
}
示例8: ECDHC
public ECDHC()
{
super("ECDHC", BouncyCastleProvider.CONFIGURATION);
}
示例9: ECMQV
public ECMQV()
{
super("ECMQV", BouncyCastleProvider.CONFIGURATION);
}
示例10: EC
public EC()
{
super("EC");
this.algorithm = "EC";
this.configuration = BouncyCastleProvider.CONFIGURATION;
}