Add first party support for k256 and p256 under feature flags

Given the lack of vectors for k256, it's currently a match of the p256 
spec (with a distinct context string), yet p256 is still always used 
when testing.
This commit is contained in:
Luke Parker
2022-06-05 16:08:51 -04:00
parent 5313210526
commit 55a895d65a
8 changed files with 288 additions and 220 deletions

View File

@@ -15,6 +15,10 @@ hex = "0.4"
ff = "0.11"
group = "0.11"
sha2 = { version = "0.10", optional = true }
p256 = { version = "0.10", optional = true }
k256 = { version = "0.10", optional = true }
transcript = { path = "../transcript" }
multiexp = { path = "../multiexp", features = ["batch"] }
@@ -23,3 +27,7 @@ multiexp = { path = "../multiexp", features = ["batch"] }
rand = "0.8"
sha2 = "0.10"
p256 = { version = "0.10", features = ["arithmetic"] }
[features]
p256 = ["sha2", "dep:p256"]
k256 = ["sha2", "dep:k256"]