Documentation
¶
Index ¶
- func AesToString(wallet types.Wallet, pubKey *ecies.PublicKey, key []byte, iv []byte) (string, error)
- func ConvertFromEncryptedFile(data []byte, key []byte, iv []byte) (*types.File, error)
- func ConvertToEncryptedFile(workingFile *types.File, key []byte, iv []byte) (*types.File, error)
- func Decrypt(cipherText []byte, encKey []byte, iv []byte) ([]byte, error)
- func Encrypt(plaintext []byte, key []byte, iv []byte) ([]byte, error)
- func GenIv() []byte
- func GenKey() []byte
- func HashAndHex(input string) string
- func HexFullPath(path string, fileName string) string
- func MerkleMeBro(rawpath string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func RemovePKCS5Padding(ciphertext []byte, blockSize int) []byte
- func StringToAes(wallet types.Wallet, source string) (iv []byte, key []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesToString ¶
func ConvertToEncryptedFile ¶
func HashAndHex ¶
func HexFullPath ¶
func MerkleMeBro ¶
func PKCS5Padding ¶
func RemovePKCS5Padding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.