Skip to content

Commit

Permalink
feat: add sm2p256_ecdh
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencil-Yao committed Dec 13, 2023
1 parent e345f6f commit f4edb6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ec/suite_b/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ ecdh!(
p384_ecdh
);

ecdh!(
ECDH_SM2P256,
&ec::suite_b::curve::SM2P256,
"SM2-P-256 (sm2p256)",
&sm2p256::PRIVATE_KEY_OPS,
&sm2p256::PUBLIC_KEY_OPS,
sm2p256_ecdh
);

fn ecdh(
private_key_ops: &PrivateKeyOps,
public_key_ops: &PublicKeyOps,
Expand Down

0 comments on commit f4edb6b

Please sign in to comment.