Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SherLzp/goRecrypt
/ functions
Functions
43 in github.com/SherLzp/goRecrypt
⨍
Functions
43
◇
Types & classes
1
↓ 2 callers
Function
GCMDecrypt
(cipherText []byte, key string, iv []byte, additionalData []byte)
recrypt/aesgcm.go:23
↓ 2 callers
Function
GCMEncrypt
(plaintext []byte, key string, iv []byte, additionalData []byte)
recrypt/aesgcm.go:10
↓ 2 callers
Function
RecreateAESKeyByMyPriKey
Recreate aes key
recrypt/recrypt.go:54
↓ 2 callers
Function
decryptKeyGen
(bPriKey *ecdsa.PrivateKey, capsule *Capsule, pubX *ecdsa.PublicKey)
recrypt/recrypt.go:191
↓ 2 callers
Function
encryptKeyGen
(pubKey *ecdsa.PublicKey)
recrypt/recrypt.go:22
↓ 1 callers
Function
Decrypt
Recreate the aes key then decrypt the cipherText
recrypt/recrypt.go:211
↓ 1 callers
Function
DecryptFile
decrypt file
recrypt/recrypt.go:240
↓ 1 callers
Function
DecryptOnMyPriKey
Decrypt by my own private key
recrypt/recrypt.go:269
↓ 1 callers
Function
Encrypt
Encrypt the message AES GCM + Proxy Re-Encryption
recrypt/recrypt.go:86
↓ 1 callers
Function
EncryptFile
encrypt file
recrypt/recrypt.go:110
↓ 1 callers
Function
OFBFileDecrypt
(key string, iv []byte, encfileName string, decfileName string)
recrypt/aesgcm.go:66
↓ 1 callers
Function
OFBFileEncrypt
(key string, iv []byte, infileName string, encfileName string)
recrypt/aesgcm.go:39
↓ 1 callers
Function
ReKeyGen
generate re-encryption key and sends it to Server rk = sk_A * d^{-1}
recrypt/recrypt.go:136
Function
BigIntAdd
(a, b *big.Int)
math/bigIntMath.go:8
Function
BigIntMul
(a, b *big.Int)
math/bigIntMath.go:21
Function
BigIntMulBase
(k *big.Int)
curve/point.go:25
Function
BigIntSub
(a, b *big.Int)
math/bigIntMath.go:14
Function
ConcatBytes
concat bytes
utils/utils.go:14
Function
DecodeCapsule
(capsuleAsBytes []byte)
recrypt/recrypt.go:299
Function
DecryptByStr
(bPriKeyStr string, capsule *Capsule, pubXStr string, cipherText []byte)
recrypt/recrypt.go:227
Function
DecryptFileByStr
decrypt file by str
recrypt/recrypt.go:256
Function
DecryptOnMyOwnStrKey
(aPriKeyStr string, capsule *Capsule, cipherText []byte)
recrypt/recrypt.go:281
Function
EncodeCapsule
(capsule Capsule)
recrypt/recrypt.go:289
Function
EncryptByStr
(message, pubKeyStr string)
recrypt/recrypt.go:101
Function
EncryptFileByStr
encrypt file by pubkey str
recrypt/recrypt.go:126
Function
EncryptMessageByAESKey
(message []byte, keyBytes []byte)
recrypt/recrypt.go:73
Function
GenerateKeys
Generate Private and Public key-pair
curve/myEcdsa.go:16
Function
GetInvert
(a *big.Int)
math/bigIntMath.go:27
Function
HashToCurve
map hash value to curve
utils/utils.go:32
Function
PointScalarAdd
(a, b *CurvePoint)
curve/point.go:15
Function
PointScalarMul
(a *CurvePoint, k *big.Int)
curve/point.go:20
Function
PointToBytes
(point *CurvePoint)
curve/point.go:30
Function
PrivateKeyStrToKey
convert string to private key
utils/utils.go:43
Function
PrivateKeyToString
convert private key to string
utils/utils.go:38
Function
PublicKeyStrToKey
convert public key string to key
utils/utils.go:68
Function
PublicKeyToString
convert public key to string
utils/utils.go:62
Function
ReEncryption
Server executes Re-Encryption method
recrypt/recrypt.go:169
Function
ReKeyGenByStr
(aPriKeyStr, bPubKeyStr string)
recrypt/recrypt.go:156
Function
RecreateAESKeyByMyPriKeyStr
(capsule *Capsule, aPriKeyStr string)
recrypt/recrypt.go:65
Function
Sha3Hash
convert message to hash value
utils/utils.go:22
Function
Sign
ECDSA Sign
curve/myEcdsa.go:25
Function
Verify
ECDSA Verify
curve/myEcdsa.go:52
Function
main
()
main.go:10