RustCrypto / elliptic-curves

Collection of pure Rust elliptic curve implementations: NIST P-224, P-256, P-384, P-521, secp256k1, SM2
683 stars 191 forks source link

how to init ecdh::EphemeralSecret from [u8;32] #1071

Closed 982945902 closed 3 months ago

tarcieri commented 3 months ago

EphemeralSecret is designed to be computed via ECDH and deliberately does not implement serialization APIs

982945902 commented 3 months ago

EphemeralSecret is designed to be computed via ECDH and deliberately does not implement serialization APIs

ok