Documentation ¶
Index ¶
- func AesDecrypt(key []byte, ciphertext []byte) (plaintext []byte)
- func AesEncrypt(key []byte, plaintext []byte) (ciphertext []byte)
- func PKCS7Padding(plaintext []byte) []byte
- func PKCS7UnPadding(plaintext []byte) []byte
- func Prng(length uint64) []byte
- func ThresholdDecrypt(ctx context.Context, shares []DecryptionShare, ciphertext, netPubKeySet string) ([]byte, error)
- func ThresholdEncrypt(ctx context.Context, subPubKey []byte, message []byte) ([]byte, error)
- type DecryptionShare
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ThresholdDecrypt ¶
Types ¶
type DecryptionShare ¶
type DecryptionShare struct {}
Click to show internal directories.
Click to hide internal directories.