Table of Contents

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

HashAlgorithmTag

KeyAlgorithm

public PublicKeyAlgorithmTag KeyAlgorithm { get; }

Property Value

PublicKeyAlgorithmTag

KeyId

public long KeyId { get; }

Property Value

long

SignatureType

public int SignatureType { get; }

Property Value

int

Methods

Encode(Stream)

public void Encode(Stream outStr)

Parameters

outStr Stream

GetEncoded()

public byte[] GetEncoded()

Returns

byte[]

InitVerify(PgpPublicKey)

Initialise the signature object for verification.

public void InitVerify(PgpPublicKey pubKey)

Parameters

pubKey PgpPublicKey

Update(byte)

public void Update(byte b)

Parameters

b byte

Update(params byte[])

public void Update(params byte[] bytes)

Parameters

bytes byte[]

Update(byte[], int, int)

public void Update(byte[] bytes, int off, int length)

Parameters

bytes byte[]
off int
length int

Update(ReadOnlySpan<byte>)

public void Update(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>

Verify(PgpSignature)

Verify the calculated signature against the passed in PgpSignature.

public bool Verify(PgpSignature pgpSig)

Parameters

pgpSig PgpSignature

Returns

bool