Documentation ¶
Index ¶
- func ArrayIntToString(a []int, delim string) string
- func Blind(m []int, r int, pubK RSAPublicKey, privK RSAPrivateKey) []int
- func BlindSign(m []int, privK RSAPrivateKey) []int
- func Decrypt(c []int, privK RSAPrivateKey) string
- func DecryptBigInt(bigint *big.Int, privK RSAPrivateKey) *big.Int
- func DecryptInt(val int, privK RSAPrivateKey) int
- func Encrypt(m string, pubK RSAPublicKey) []int
- func EncryptBigInt(bigint *big.Int, pubK RSAPublicKey) *big.Int
- func EncryptInt(char int, pubK RSAPublicKey) int
- func HomomorphicMultiplication(c1 int, c2 int, pubK RSAPublicKey) int
- func StringToArrayInt(s string, delim string) []int
- func Unblind(blindsigned []int, r int, pubK RSAPublicKey) []int
- func Verify(msg []int, mSigned []int, pubK RSAPublicKey) bool
- type PackRSA
- type RSA
- type RSAPrivateKey
- type RSAPublicKey
- type RSAPublicKeyString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayIntToString ¶
func Blind ¶
func Blind(m []int, r int, pubK RSAPublicKey, privK RSAPrivateKey) []int
func BlindSign ¶
func BlindSign(m []int, privK RSAPrivateKey) []int
func Decrypt ¶
func Decrypt(c []int, privK RSAPrivateKey) string
func DecryptBigInt ¶
func DecryptBigInt(bigint *big.Int, privK RSAPrivateKey) *big.Int
func DecryptInt ¶
func DecryptInt(val int, privK RSAPrivateKey) int
func Encrypt ¶
func Encrypt(m string, pubK RSAPublicKey) []int
func EncryptBigInt ¶
func EncryptBigInt(bigint *big.Int, pubK RSAPublicKey) *big.Int
func EncryptInt ¶
func EncryptInt(char int, pubK RSAPublicKey) int
func HomomorphicMultiplication ¶
func HomomorphicMultiplication(c1 int, c2 int, pubK RSAPublicKey) int
func StringToArrayInt ¶
Types ¶
type PackRSA ¶
type RSA ¶
type RSA struct { PubK RSAPublicKey PrivK RSAPrivateKey }
func GenerateKeyPair ¶
func GenerateKeyPair() RSA
type RSAPublicKey ¶
func PubKStringToBigInt ¶
func PubKStringToBigInt(kS RSAPublicKeyString) (RSAPublicKey, error)
type RSAPublicKeyString ¶
Click to show internal directories.
Click to hide internal directories.