Java 类org.bouncycastle.asn1.cms.ecc.MQVuserKeyingMaterial 实例源码

项目:ipack    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:Aki-SSL    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected byte[] getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        OriginatorPublicKey originatorPublicKey = createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded()));

        try
        {
            if (userKeyingMaterial != null)
            {
                return new MQVuserKeyingMaterial(originatorPublicKey, new DEROctetString(userKeyingMaterial)).getEncoded();
            }
            else
            {
                return new MQVuserKeyingMaterial(originatorPublicKey, null).getEncoded();
            }
        }
        catch (IOException e)
        {
            throw new CMSException("unable to encode user keying material: " + e.getMessage(), e);
        }
    }

    return userKeyingMaterial;
}
项目:irma_future_id    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:irma_future_id    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:irma_future_id    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:bc-java    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:bc-java    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}
项目:bc-java    文件:JceKeyAgreeRecipientInfoGenerator.java   
protected ASN1Encodable getUserKeyingMaterial(AlgorithmIdentifier keyAgreeAlg)
    throws CMSException
{
    init(keyAgreeAlg.getAlgorithm());

    if (ephemeralKP != null)
    {
        return new MQVuserKeyingMaterial(
                    createOriginatorPublicKey(SubjectPublicKeyInfo.getInstance(ephemeralKP.getPublic().getEncoded())), null);
    }

    return null;
}