hyperledger / aries-askar

Secure storage designed for Hyperledger Aries agents.
Apache License 2.0
59 stars 42 forks source link

P-384/P-512 support #10

Open andrewwhitehead opened 3 years ago

andrewwhitehead commented 3 years ago

P-384 is one of the core key types supported in DIDComm.

The RustCrypto p384 crate only supports the key representation currently, not signing or ECDH: https://github.com/RustCrypto/elliptic-curves/issues/240

There is the ring-compat crate, but it only seems to support P-384 signatures, not ECDH.

Currently waiting to see if the weierstrass crate gets added with generic arithmetic support for these curves.

andrewwhitehead commented 3 years ago

static-dh-ecdh might be one option for implementing ECDH. It would require an allocator and Rust 1.51+ for min-const-generics.