Struct pbp::PgpSig[][src]

pub struct PgpSig { /* fields omitted */ }

An OpenPGP formatted ed25519 signature.

Methods

impl PgpSig
[src]

Construct a new PGP signature.

This will construct a valid OpenPGP signature using the ed25519 signing algorithm & SHA-256 hashing algorithm. It will contain these hashed subpackets:

  • A version 4 key fingerprint
  • A timestamp
  • Whatever subpackets you pass as arguments

It will contain the key id as an unhashed subpacket.

Parse an OpenPGP signature from binary data.

This must be an ed25519 signature using SHA-256 for hashing, and it must be in the subset of OpenPGP supported by this library.

Parse an OpenPGP signature from ASCII armored data.

Get the binary representation of this signature.

Get the portion of this signature hashed into the signed data.

Get the actual ed25519 signature contained.

Get the fingerprint of the public key which made this signature.

Get the type of this signature.

Verify data against this signature.

The data to be verified should be inputed by hashing it into the SHA-256 hasher using the input function.

Trait Implementations

impl Eq for PgpSig
[src]

impl PartialEq for PgpSig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for PgpSig
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for PgpSig
[src]

Formats the value using the given formatter. Read more

impl Display for PgpSig
[src]

Formats the value using the given formatter. Read more

impl FromStr for PgpSig
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for PgpSig

impl Sync for PgpSig