pub fn encode_ssh_pubkey(pubkey: &[u8], curve: CurveType) -> Vec<u8> ⓘExpand description
Encode a public key in SSH wire format.
Args:
pubkey: Raw public key bytes.curve: Which curve this key belongs to.
Usage:
use auths_core::crypto::ssh::encode_ssh_pubkey;
use auths_crypto::CurveType;
let blob = encode_ssh_pubkey(&[0x42u8; 32], CurveType::Ed25519);
assert_eq!(&blob[4..15], b"ssh-ed25519");