-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mirage-crypto-ec: ECDSA and curves P-224, P-256, P-384, P-521
This includes: - ECDSA implementation with blinding - tests from RFC 6979 (deterministic k) - wycheproof tests for ECDH and ECDSA (commit 2196000605e45d91097147c9c71f26b72af58003) - ec/native contains a Makefile which runs the extraction (using fiat-crypto's word-by-word-montgomery)
- Loading branch information
Showing
67 changed files
with
151,877 additions
and
4,448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,22 @@ | ||
(library | ||
(name mirage_crypto_ec) | ||
(public_name mirage-crypto-ec) | ||
(libraries cstruct eqaf.cstruct hex) | ||
(libraries cstruct eqaf.cstruct mirage-crypto mirage-crypto-rng) | ||
(foreign_stubs | ||
(language c) | ||
(names p256_stubs) | ||
(names p224_stubs np224_stubs p256_stubs np256_stubs p384_stubs np384_stubs | ||
p521_stubs np521_stubs) | ||
(flags | ||
(:standard -I../src/native) | ||
(:include cflags_optimized.sexp)))) | ||
|
||
(env | ||
(dev | ||
(c_flags (-Werror)))) | ||
|
||
(include_subdirs unqualified) | ||
|
||
(rule | ||
(targets cflags_optimized.sexp) | ||
(action | ||
(run ../config/cfg.exe))) | ||
|
||
(rule | ||
(targets upstream_p256_32) | ||
(action | ||
(bash | ||
"wget https://raw.githubusercontent.com/mit-plv/fiat-crypto/ecdfd03c636ab63e167fbe4fc4d7ab0ed5d9db74/p256_32.c -O %{targets}"))) | ||
|
||
(rule | ||
(targets upstream_p256_64) | ||
(action | ||
(bash | ||
"wget https://raw.githubusercontent.com/mit-plv/fiat-crypto/ecdfd03c636ab63e167fbe4fc4d7ab0ed5d9db74/p256_64.c -O %{targets}"))) | ||
|
||
(rule | ||
(alias check_vendors) | ||
(action | ||
(diff native/p256_32.h upstream_p256_32))) | ||
|
||
(rule | ||
(alias check_vendors) | ||
(action | ||
(diff native/p256_64.h upstream_p256_64))) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.