当前位置: 首页>>代码示例>>Java>>正文


Java BouncyCastleProvider.CONFIGURATION属性代码示例

本文整理汇总了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();
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:13,代码来源:BCECPrivateKey.java

示例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;
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:12,代码来源:BCECPublicKey.java

示例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);
}
 
开发者ID:papyrusglobal,项目名称:state-channels,代码行数:9,代码来源:CryptoUtil.java

示例4: EC

public EC()
{
    super("EC", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例5: ECDSA

public ECDSA()
{
    super("ECDSA", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例6: ECGOST3410

public ECGOST3410()
{
    super("ECGOST3410", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例7: ECDH

public ECDH()
{
    super("ECDH", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例8: ECDHC

public ECDHC()
{
    super("ECDHC", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例9: ECMQV

public ECMQV()
{
    super("ECMQV", BouncyCastleProvider.CONFIGURATION);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:4,代码来源:KeyFactorySpi.java

示例10: EC

public EC()
{
    super("EC");
    this.algorithm = "EC";
    this.configuration = BouncyCastleProvider.CONFIGURATION;
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:6,代码来源:KeyPairGeneratorSpi.java


注:本文中的org.bouncycastle.jce.provider.BouncyCastleProvider.CONFIGURATION属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。