signatures
signatures copied to clipboard
dsa: reduce `Box<[u8]>` allocation in `SignatureEncoding::to_vec`
Rewritten as SignatureRef
The crypto-bigint crate has native support for der, although it's missing DecodeValue/EncodeValue impls for BoxedUint (and NonZero<BoxedUint>). They exist for Uint.
Perhaps support could be added there so there's not need for complex encoding logic in the dsa crate.
Depends on:
- https://github.com/RustCrypto/crypto-bigint/pull/851
Closing as stale