Struct yubihsm::responses::GetPubKeyResponse
[−]
[src]
pub struct GetPubKeyResponse { pub algorithm: Algorithm, pub data: Vec<u8>, }
Response from CommandType::GetPubKey
https://developers.yubico.com/YubiHSM2/Commands/Get_Pubkey.html
Fields
algorithm: Algorithm
Algorithm of the public key
data: Vec<u8>
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)