C# 클래스 Org.BouncyCastle.Bcpg.OpenPgp.PgpKeyPair

General class to handle JCA key pairs and convert them into OpenPGP ones.

A word for the unwary, the KeyId for an OpenPGP public key is calculated from a hash that includes the time of creation, if you pass a different date to the constructor below with the same public private key pair the KeyIs will not be the same as for previous generations of the key, so ideally you only want to do this once.

파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

공개 메소드들

메소드 설명
PgpKeyPair ( PgpPublicKey pub, PgpPrivateKey priv ) : System

Create a key pair from a PgpPrivateKey and a PgpPublicKey.

PgpKeyPair ( PublicKeyAlgorithmTag algorithm, AsymmetricCipherKeyPair keyPair, System.DateTime time ) : System
PgpKeyPair ( PublicKeyAlgorithmTag algorithm, AsymmetricKeyParameter pubKey, AsymmetricKeyParameter privKey, System.DateTime time ) : System

메소드 상세

PgpKeyPair() 공개 메소드

Create a key pair from a PgpPrivateKey and a PgpPublicKey.
public PgpKeyPair ( PgpPublicKey pub, PgpPrivateKey priv ) : System
pub PgpPublicKey The public key.
priv PgpPrivateKey The private key.
리턴 System

PgpKeyPair() 공개 메소드

public PgpKeyPair ( PublicKeyAlgorithmTag algorithm, AsymmetricCipherKeyPair keyPair, System.DateTime time ) : System
algorithm PublicKeyAlgorithmTag
keyPair Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair
time System.DateTime
리턴 System

PgpKeyPair() 공개 메소드

public PgpKeyPair ( PublicKeyAlgorithmTag algorithm, AsymmetricKeyParameter pubKey, AsymmetricKeyParameter privKey, System.DateTime time ) : System
algorithm PublicKeyAlgorithmTag
pubKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
privKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
time System.DateTime
리턴 System