private AsymmetricKeyParameter GetPublicKeyFromOriginatorPublicKey( AsymmetricKeyParameter receiverPrivateKey, OriginatorPublicKey originatorPublicKey) { PrivateKeyInfo privInfo = PrivateKeyInfoFactory.CreatePrivateKeyInfo(receiverPrivateKey); SubjectPublicKeyInfo pubInfo = new SubjectPublicKeyInfo( privInfo.PrivateKeyAlgorithm, originatorPublicKey.PublicKey.GetBytes()); return PublicKeyFactory.CreateKey(pubInfo); }
public OriginatorIdentifierOrKey( OriginatorPublicKey id) { this.id = new DerTaggedObject(false, 1, id); }
public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly) { return(OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly))); }