MCPcopy Create free account

hub / github.com/arnaucube/cryptofun / functions

Functions71 in github.com/arnaucube/cryptofun

↓ 54 callersMethodMul
Mul multiplies a point n times on the elliptic curve
ecc/ecc.go:115
↓ 46 callersMethodEqual
Equal compares the X and Y coord of a Point and returns true if are the same
ecc/point.go:21
↓ 21 callersMethodAdd
Add adds two points p1 and p2 and gets q, returns the negate of q
ecc/ecc.go:53
↓ 18 callersMethodString
String returns the components of the point in a string
ecc/point.go:32
↓ 17 callersFunctionNewEC
NewEC (y^2 = x^3 + ax + b) mod q, where q is a prime number
ecc/ecc.go:17
↓ 8 callersMethodOrder
Order returns smallest n where nG = O (point at zero)
ecc/ecc.go:137
↓ 4 callersMethodAt
At gets a point x in the curve
ecc/ecc.go:25
↓ 4 callersFunctionEncrypt
Encrypt encrypts a message m with given PublicKey
rsa/rsa.go:65
↓ 3 callersFunctionDecrypt
Decrypt deencrypts a ciphertext c with given PrivateKey
rsa/rsa.go:71
↓ 3 callersFunctionEncrypt
Encrypt encrypts a message m with given PublicKey
paillier/paillier.go:94
↓ 3 callersFunctionGenerateKeyPair
GenerateKeyPair generates a random private and public key
rsa/rsa.go:34
↓ 3 callersFunctionHash
Hash calculates a hash concatenating a given message bytes with a given EC Point. H(M||R)
schnorr/schnorr.go:37
↓ 3 callersMethodHash
Hash hashes a message m
bls/bls.go:50
↓ 3 callersFunctionNewEG
NewEG defines a new EG data structure
elgamal/elgamal.go:17
↓ 3 callersMethodNewKeys
NewKeys generate new Private Key and Public Key
bls/bls.go:36
↓ 3 callersMethodPubK
PubK returns the public key Point calculated from the private key over the elliptic curve
elgamal/elgamal.go:27
↓ 3 callersFunctionRandInt
RandInt returns a random integer between two values
prime/prime.go:13
↓ 3 callersMethodSign
Sign performs the BLS signature of a message m
bls/bls.go:61
↓ 2 callersFunctionDecrypt
Decrypt deencrypts a ciphertext c with given PublicKey and PrivateKey
paillier/paillier.go:105
↓ 2 callersMethodEncrypt
Encrypt encrypts a point m with the public key point, returns two points
elgamal/elgamal.go:35
↓ 2 callersFunctionGen
Gen generates the Schnorr scheme
schnorr/schnorr.go:52
↓ 2 callersMethodNeg
TODO add valid checker point function Valid() Neg returns the inverse of the P point on the elliptic curve
ecc/ecc.go:47
↓ 2 callersFunctionNewDSA
NewDSA defines a new DSA data structure
ecdsa/ecdsa.go:19
↓ 2 callersMethodPubK
PubK returns the public key Point calculated from the private key over the elliptic curve
ecdsa/ecdsa.go:29
↓ 2 callersMethodSign
Sign performs the signature of the message m with the given private key
schnorr/schnorr.go:85
↓ 2 callersFunctionVerify
Verify checks if the given public key matches with the given signature of the message m, in the given EC
schnorr/schnorr.go:114
↓ 2 callersMethodVerify
Verify checks the signature of a message m with the given Public Key
bls/bls.go:69
↓ 2 callersFunctionl
(u *big.Int, n *big.Int)
paillier/paillier.go:87
↓ 1 callersMethodAggregateSignatures
AggregateSignatures s = s0 + s1 + s2 ...
bls/bls.go:85
↓ 1 callersFunctionBlind
Blind blinds a message
rsa/rsa.go:77
↓ 1 callersFunctionBlindSign
BlindSign blind signs a message without knowing the content
rsa/rsa.go:85
↓ 1 callersMethodDecrypt
Decrypt decrypts c (two points) with the private key, returns the point decrypted
elgamal/elgamal.go:55
↓ 1 callersFunctionGcd
Gcd returns the greatest common divisor
prime/prime.go:41
↓ 1 callersFunctionGenerateKeyPair
GenerateKeyPair generates a random private and public key
paillier/paillier.go:35
↓ 1 callersFunctionHomomorphicAddition
HomomorphicAddition calculates the addition of tow encrypted values given a PublicKey
paillier/paillier.go:116
↓ 1 callersFunctionHomomorphicMul
HomomorphicMul calculates the multiplication of tow encrypted values given a PublicKey
rsa/rsa.go:107
↓ 1 callersFunctionNewBLS
NewBLS generates a new BLS scheme
bls/bls.go:25
↓ 1 callersFunctionSieveOfEratosthenes
SieveOfEratosthenes returns a list of primes less than N
prime/prime.go:26
↓ 1 callersMethodSign
Sign performs the ECDSA signature
ecdsa/ecdsa.go:37
↓ 1 callersFunctionUnblind
Unblind unblinds the Blinded Signature
rsa/rsa.go:91
↓ 1 callersFunctionVerify
Verify verifies the signature of a message given the PublicKey of the signer
rsa/rsa.go:99
↓ 1 callersMethodVerify
Verify validates the ECDSA signature
ecdsa/ecdsa.go:57
↓ 1 callersMethodVerifyAggregatedSignatures
VerifyAggregatedSignatures ê(G,S) == ê(P, H(m)) ê(G, s0+s1+s2...) == ê(p0+p1+p2..., H(m))
bls/bls.go:96
↓ 1 callersFunctionlcm
(a, b float64)
paillier/paillier.go:82
FunctionBytesToHex
BytesToHex converts from an array of bytes to a hex encoded string
utils/utils.go:6
FunctionHexToBytes
HexToBytes converts from a hex string into an array of bytes
utils/utils.go:14
FunctionRandPrime
RandPrime returns a random prime number between two values
prime/prime.go:19
FunctionTestAdd
(t *testing.T)
ecc/ecc_test.go:34
FunctionTestAddSamePoint
(t *testing.T)
ecc/ecc_test.go:55
FunctionTestBlindSignature
(t *testing.T)
rsa/rsa_test.go:24
FunctionTestBls
(t *testing.T)
bls/bls_test.go:11
FunctionTestDiffieHellman
(t *testing.T)
dh/dh_test.go:15
FunctionTestECC
(t *testing.T)
ecc/ecc_test.go:10
FunctionTestECDSASignAndVerify
(t *testing.T)
ecdsa/ecdsa_test.go:26
FunctionTestEGDecrypt
(t *testing.T)
elgamal/elgamal_test.go:48
FunctionTestEGEncrypt
(t *testing.T)
elgamal/elgamal_test.go:25
FunctionTestEncryptDecrypt
(t *testing.T)
paillier/paillier_test.go:12
FunctionTestEncryptDecrypt
(t *testing.T)
rsa/rsa_test.go:11
FunctionTestHash
(t *testing.T)
schnorr/schnorr_test.go:11
FunctionTestHomomorphicAddition
(t *testing.T)
paillier/paillier_test.go:26
FunctionTestHomomorphicMultiplication
(t *testing.T)
rsa/rsa_test.go:46
FunctionTestMulEqualSelfAdd
(t *testing.T)
ecc/ecc_test.go:151
FunctionTestMulPoint1
(t *testing.T)
ecc/ecc_test.go:76
FunctionTestMulPoint2
(t *testing.T)
ecc/ecc_test.go:109
FunctionTestMulPoint3
(t *testing.T)
ecc/ecc_test.go:133
FunctionTestNeg
(t *testing.T)
ecc/ecc_test.go:22
FunctionTestNewECDSA
(t *testing.T)
ecdsa/ecdsa_test.go:11
FunctionTestNewEG
(t *testing.T)
elgamal/elgamal_test.go:11
FunctionTestOrder
(t *testing.T)
ecc/ecc_test.go:187
FunctionTestSign
(t *testing.T)
schnorr/schnorr_test.go:17
FunctionTestSign2
(t *testing.T)
schnorr/schnorr_test.go:35