-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhdllwyc
committed
Sep 3, 2022
1 parent
c8971c0
commit d3c549c
Showing
115 changed files
with
4,356 additions
and
419 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
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,30 +1,43 @@ | ||
// Package sidh provides implementation of experimental post-quantum | ||
// Package sidh is deprecated, it provides SIDH and SIKE key encapsulation | ||
// mechanisms. | ||
// | ||
// # DEPRECATION NOTICE | ||
// | ||
// SIDH and SIKE are deprecated as were shown vulnerable to a key recovery | ||
// attack by Castryck-Decru's paper (https://eprint.iacr.org/2022/975). New | ||
// systems should not rely on this package. This package is frozen. | ||
// | ||
// # SIDH and SIKE | ||
// | ||
// This package provides implementation of experimental post-quantum | ||
// Supersingular Isogeny Diffie-Hellman (SIDH) as well as Supersingular | ||
// Isogeny Key Encapsulation (SIKE). | ||
// | ||
// It comes with implementations of 2 different field arithmetic | ||
// implementations sidh.Fp503 and sidh.Fp751. | ||
// It comes with implementations of three different field arithmetic | ||
// implementations sidh.Fp434, sidh.Fp503, and sidh.Fp751. | ||
// | ||
// | Algorithm | Public Key Size | Shared Secret Size | Ciphertext Size | | ||
// |-----------|-----------------|--------------------|-----------------| | ||
// | SIDH/p503 | 376 | 126 | N/A | | ||
// | SIDH/p751 | 564 | 188 | N/A | | ||
// | SIKE/p503 | 376 | 16 | 402 | | ||
// | SIKE/p751 | 564 | 24 | 596 | | ||
// | SIDH/p434 | 330 | 110 | N/A | | ||
// | SIDH/p503 | 378 | 126 | N/A | | ||
// | SIDH/p751 | 564 | 188 | N/A | | ||
// | SIKE/p434 | 330 | 16 | 346 | | ||
// | SIKE/p503 | 378 | 24 | 402 | | ||
// | SIKE/p751 | 564 | 32 | 596 | | ||
// | ||
// In order to instantiate SIKE/p751 KEM one needs to create a KEM object | ||
// and allocate internal structures. This can be done with NewSike751 helper. | ||
// After that kem can be used multiple times. | ||
// After that, the kem variable can be used multiple times. | ||
// | ||
// var kem = sike.NewSike751(rand.Reader) | ||
// kem.Encapsulate(ciphertext, sharedSecret, publicBob) | ||
// kem.Decapsulate(sharedSecret, privateBob, PublicBob, ciphertext) | ||
// kem.Decapsulate(sharedSecret, privateBob, publicBob, ciphertext) | ||
// | ||
// Code is optimized for AMD64 and aarch64. Generic implementation | ||
// is provided for other architectures. | ||
// | ||
// References: | ||
// - [SIDH] https://eprint.iacr.org/2011/506 | ||
// - [SIKE] http://www.sike.org/files/SIDH-spec.pdf | ||
// | ||
// - [SIDH] https://eprint.iacr.org/2011/506 | ||
// - [SIKE] http://www.sike.org/files/SIDH-spec.pdf | ||
package sidh |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.