Inheritance: Org.BouncyCastle.Asn1.Asn1Encodable
コード例 #1
0
 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);
 }
コード例 #2
0
 public OriginatorIdentifierOrKey(
     OriginatorPublicKey id)
 {
     this.id = new DerTaggedObject(false, 1, id);
 }
コード例 #3
0
 public OriginatorIdentifierOrKey(
     OriginatorPublicKey id)
 {
     this.id = new DerTaggedObject(false, 1, id);
 }
コード例 #4
0
 public static OriginatorPublicKey GetInstance(Asn1TaggedObject obj, bool explicitly)
 {
     return(OriginatorPublicKey.GetInstance(Asn1Sequence.GetInstance(obj, explicitly)));
 }