Struct botan::Pubkey[][src]

pub struct Pubkey { /* fields omitted */ }

A public key object

Methods

impl Pubkey
[src]

Load a DER encoded public key

Load a PEM encoded public key

Load an RSA public key (n,e)

Load an DH public key (p,g,y)

Load an ECDSA public key (x,y) for the specified curve

Load an ECDH public key (x,y) for the specified curve

Load an Ed25519 public key

Load an X25519 key

Return estimated bit strength of this key

Check key for problems

Return hash of the public key data

DER encode this public key

PEM encode this public key

Return the name of the algorithm

Get a value for the public key The which parameter selects a field which is algorithm specific

Return the 32-byte Ed25519 public key

Get the X25519 public key

Trait Implementations

impl Debug for Pubkey
[src]

Formats the value using the given formatter. Read more

impl Drop for Pubkey
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Pubkey

impl !Sync for Pubkey