The highest tagged major version is
v2.
package
Version:
v0.2.4
Opens a new window with list of versions in this module.
Published: Apr 14, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func AESCBCDecrypt(rawData, key []byte) ([]byte, error)
-
func AESCBCEncrypt(rawData, key []byte) ([]byte, error)
-
func Decrypt(cipherText []byte, privateKey [32]byte) ([]byte, error)
-
func Encrypt(plainText []byte, publicKey [32]byte) ([]byte, error)
-
func GenerateKey() (priv, pub [32]byte, err error)
func GenerateKey() (priv, pub [32]byte, err error)
GenerateKey 基于curve25519椭圆曲线算法生成秘钥对(32位)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.