Class PgpOnePassSignature
- Namespace
- Org.BouncyCastle.Bcpg.OpenPgp
- Assembly
- BouncyCastle.Cryptography.dll
public class PgpOnePassSignature
- Inheritance
-
PgpOnePassSignature
- Inherited Members
Remarks
A one pass signature object.
Properties
HashAlgorithm
public HashAlgorithmTag HashAlgorithm { get; }
Property Value
KeyAlgorithm
public PublicKeyAlgorithmTag KeyAlgorithm { get; }
Property Value
KeyId
public long KeyId { get; }
Property Value
SignatureType
public int SignatureType { get; }
Property Value
Methods
Encode(Stream)
public void Encode(Stream outStr)
Parameters
outStrStream
GetEncoded()
public byte[] GetEncoded()
Returns
- byte[]
InitVerify(PgpPublicKey)
Initialise the signature object for verification.
public void InitVerify(PgpPublicKey pubKey)
Parameters
pubKeyPgpPublicKey
Update(byte)
public void Update(byte b)
Parameters
bbyte
Update(params byte[])
public void Update(params byte[] bytes)
Parameters
bytesbyte[]
Update(byte[], int, int)
public void Update(byte[] bytes, int off, int length)
Parameters
Update(ReadOnlySpan<byte>)
public void Update(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>
Verify(PgpSignature)
Verify the calculated signature against the passed in PgpSignature.
public bool Verify(PgpSignature pgpSig)
Parameters
pgpSigPgpSignature