pub fn encode_ssh_signature(signature: &[u8], curve: CurveType) -> Vec<u8> ⓘExpand description
Encode a raw signature in SSH wire format.
Args:
signature: Raw signature bytes (64 for both Ed25519 and P-256 r||s).curve: Which curve produced the signature.
Usage:
use auths_core::crypto::ssh::encode_ssh_signature;
use auths_crypto::CurveType;
let blob = encode_ssh_signature(&[0xAB; 64], CurveType::Ed25519);
assert_eq!(&blob[4..15], b"ssh-ed25519");