Struct yubihsm::responses::GetPubKeyResponse [] [src]

pub struct GetPubKeyResponse {
    pub algorithm: Algorithm,
    pub data: Vec<u8>,
}

Fields

Algorithm of the public key

The public key in raw bytes. Keys have the following structure:

  • RSA: Public modulus N (0x100 | 0x200 | 0x400 bytes)
  • ECC (non-Ed25519):
    • Public point X (0x20 | 0x30 | 0x40 | 0x42 bytes)
    • Public point Y (0x20 | 0x30 | 0x40 | 0x42 bytes)
  • Ed25519: Public point A, compressed (0x20 bytes)

Trait Implementations

impl Debug for GetPubKeyResponse
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations