arnaucube 151ca78806 | 6 years ago | |
---|---|---|
bn128 | 6 years ago | |
dh | 6 years ago | |
ecc | 6 years ago | |
ecdsa | 6 years ago | |
elgamal | 6 years ago | |
paillier | 6 years ago | |
prime | 6 years ago | |
rsa | 6 years ago | |
schnorr | 6 years ago | |
shamirsecretsharing | 6 years ago | |
utils | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
go.mod | 6 years ago | |
go.sum | 6 years ago |
Crypto algorithms from scratch. Academic purposes only.
https://en.wikipedia.org/wiki/RSA_(cryptosystem)#
https://en.wikipedia.org/wiki/Paillier_cryptosystem
https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
https://en.wikipedia.org/wiki/Elliptic-curve_cryptography
https://en.wikipedia.org/wiki/ElGamal_encryption
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm
https://en.wikipedia.org/wiki/Schnorr_signature
[not finished]
This is implemented followng the implementations and info from:
Multiplication and Squaring on Pairing-Friendly Fields
, Augusto Jun Devegili, Colm Ó hÉigeartaigh, Michael Scott, and Ricardo Dahab https://pdfs.semanticscholar.org/3e01/de88d7428076b2547b60072088507d881bf1.pdf
Optimal Pairings
, Frederik Vercauteren https://www.cosic.esat.kuleuven.be/bcrypt/optimal.pdf
To run all tests:
go test ./... -v