public OriginatorIdentifierOrKey(
     OriginatorPublicKey id)
 {
     this.id = new DerTaggedObject(false, 1, id);
 }
		private AsymmetricKeyParameter GetPublicKeyFromOriginatorPublicKey(
			AsymmetricKeyParameter	receiverPrivateKey,
			OriginatorPublicKey		originatorPublicKey)
		{
			PrivateKeyInfo privInfo = PrivateKeyInfoFactory.CreatePrivateKeyInfo(receiverPrivateKey);
			SubjectPublicKeyInfo pubInfo = new SubjectPublicKeyInfo(
				privInfo.AlgorithmID,
				originatorPublicKey.PublicKey.GetBytes());
			return PublicKeyFactory.CreateKey(pubInfo);
		}
Exemple #3
0
 public OriginatorIdentifierOrKey(
     OriginatorPublicKey id)
 {
     this.id = new DerTaggedObject(false, 1, id);
 }