MCPcopy Create free account

hub / github.com/SherLzp/goRecrypt / functions

Functions43 in github.com/SherLzp/goRecrypt

↓ 2 callersFunctionGCMDecrypt
(cipherText []byte, key string, iv []byte, additionalData []byte)
recrypt/aesgcm.go:23
↓ 2 callersFunctionGCMEncrypt
(plaintext []byte, key string, iv []byte, additionalData []byte)
recrypt/aesgcm.go:10
↓ 2 callersFunctionRecreateAESKeyByMyPriKey
Recreate aes key
recrypt/recrypt.go:54
↓ 2 callersFunctiondecryptKeyGen
(bPriKey *ecdsa.PrivateKey, capsule *Capsule, pubX *ecdsa.PublicKey)
recrypt/recrypt.go:191
↓ 2 callersFunctionencryptKeyGen
(pubKey *ecdsa.PublicKey)
recrypt/recrypt.go:22
↓ 1 callersFunctionDecrypt
Recreate the aes key then decrypt the cipherText
recrypt/recrypt.go:211
↓ 1 callersFunctionDecryptFile
decrypt file
recrypt/recrypt.go:240
↓ 1 callersFunctionDecryptOnMyPriKey
Decrypt by my own private key
recrypt/recrypt.go:269
↓ 1 callersFunctionEncrypt
Encrypt the message AES GCM + Proxy Re-Encryption
recrypt/recrypt.go:86
↓ 1 callersFunctionEncryptFile
encrypt file
recrypt/recrypt.go:110
↓ 1 callersFunctionOFBFileDecrypt
(key string, iv []byte, encfileName string, decfileName string)
recrypt/aesgcm.go:66
↓ 1 callersFunctionOFBFileEncrypt
(key string, iv []byte, infileName string, encfileName string)
recrypt/aesgcm.go:39
↓ 1 callersFunctionReKeyGen
generate re-encryption key and sends it to Server rk = sk_A * d^{-1}
recrypt/recrypt.go:136
FunctionBigIntAdd
(a, b *big.Int)
math/bigIntMath.go:8
FunctionBigIntMul
(a, b *big.Int)
math/bigIntMath.go:21
FunctionBigIntMulBase
(k *big.Int)
curve/point.go:25
FunctionBigIntSub
(a, b *big.Int)
math/bigIntMath.go:14
FunctionConcatBytes
concat bytes
utils/utils.go:14
FunctionDecodeCapsule
(capsuleAsBytes []byte)
recrypt/recrypt.go:299
FunctionDecryptByStr
(bPriKeyStr string, capsule *Capsule, pubXStr string, cipherText []byte)
recrypt/recrypt.go:227
FunctionDecryptFileByStr
decrypt file by str
recrypt/recrypt.go:256
FunctionDecryptOnMyOwnStrKey
(aPriKeyStr string, capsule *Capsule, cipherText []byte)
recrypt/recrypt.go:281
FunctionEncodeCapsule
(capsule Capsule)
recrypt/recrypt.go:289
FunctionEncryptByStr
(message, pubKeyStr string)
recrypt/recrypt.go:101
FunctionEncryptFileByStr
encrypt file by pubkey str
recrypt/recrypt.go:126
FunctionEncryptMessageByAESKey
(message []byte, keyBytes []byte)
recrypt/recrypt.go:73
FunctionGenerateKeys
Generate Private and Public key-pair
curve/myEcdsa.go:16
FunctionGetInvert
(a *big.Int)
math/bigIntMath.go:27
FunctionHashToCurve
map hash value to curve
utils/utils.go:32
FunctionPointScalarAdd
(a, b *CurvePoint)
curve/point.go:15
FunctionPointScalarMul
(a *CurvePoint, k *big.Int)
curve/point.go:20
FunctionPointToBytes
(point *CurvePoint)
curve/point.go:30
FunctionPrivateKeyStrToKey
convert string to private key
utils/utils.go:43
FunctionPrivateKeyToString
convert private key to string
utils/utils.go:38
FunctionPublicKeyStrToKey
convert public key string to key
utils/utils.go:68
FunctionPublicKeyToString
convert public key to string
utils/utils.go:62
FunctionReEncryption
Server executes Re-Encryption method
recrypt/recrypt.go:169
FunctionReKeyGenByStr
(aPriKeyStr, bPubKeyStr string)
recrypt/recrypt.go:156
FunctionRecreateAESKeyByMyPriKeyStr
(capsule *Capsule, aPriKeyStr string)
recrypt/recrypt.go:65
FunctionSha3Hash
convert message to hash value
utils/utils.go:22
FunctionSign
ECDSA Sign
curve/myEcdsa.go:25
FunctionVerify
ECDSA Verify
curve/myEcdsa.go:52
Functionmain
()
main.go:10