Documentation ¶
Index ¶
- Variables
- func Decrypt(key []byte, cipherTxt []byte) ([]byte, error)
- func DecryptAndIV(key []byte, cipherTxt []byte) (iv, plainTxt []byte, err error)
- func DeriveGroupKey(priv ed25519.PrivateKey, groupPKs [][]byte, pubkeys [][]byte) (aes []byte, err error)
- func DeriveGroupKey2(priv ed25519.PrivateKey, groupPKs []string, pubkeys []string) (aes []byte, err error)
- func DeriveKey(seed []byte) (pub ed25519.PublicKey, priv ed25519.PrivateKey)
- func Encrypt(key []byte, plainTxt []byte) ([]byte, error)
- func EncryptWithIV(key, iv, plainTxt []byte) ([]byte, error)
- func GenEd25519KeyAndSave(password string) error
- func GenGroupAesKey(mainPriv ed25519.PrivateKey, pubkeys [][]byte) (aes []byte, groupKeys [][]byte, err error)
- func GenGroupAesKey2(mainPriv ed25519.PrivateKey, pubkeys []string) (aes []byte, groupKeys []string, err error)
- func GenerateAesKey(peerPub []byte, key ed25519.PrivateKey) ([]byte, error)
- func InsertionSortDArray(arr [][]byte) [][]byte
- func KeyIsGenerated() bool
- func LoadKey(password string)
- func PrivateKeyToCurve25519(curve25519Private *[32]byte, privateKey *[64]byte)
- func PublicKeyToCurve25519(curve25519Public *[32]byte, publicKey *[32]byte) bool
- func Sign(priv ed25519.PrivateKey, message []byte) []byte
- func Verify(pub ed25519.PublicKey, message, sig []byte) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EConvertCurvePubKey = fmt.Errorf("convert ed25519 public key to curve25519 public key failed")
)
Functions ¶
func DecryptAndIV ¶
func DeriveGroupKey ¶
func DeriveGroupKey2 ¶
func EncryptWithIV ¶
func GenEd25519KeyAndSave ¶
func GenGroupAesKey ¶
func GenGroupAesKey2 ¶
func GenerateAesKey ¶
func GenerateAesKey(peerPub []byte, key ed25519.PrivateKey) ([]byte, error)
func InsertionSortDArray ¶
func KeyIsGenerated ¶
func KeyIsGenerated() bool
func PrivateKeyToCurve25519 ¶
func PublicKeyToCurve25519 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.