eddsa

package
v1.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details.

* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details.

* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details.

* Copyright 2020 The openwallet Authors * This file is part of the openwallet library. * * The openwallet library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The openwallet library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPrivateKeyIllegal = errors.New("Invalid private key data!")
)

Functions

func CURVE25519_genPub

func CURVE25519_genPub(prikey []byte) ([]byte, error)

func CURVE25519_sha256_genPub

func CURVE25519_sha256_genPub(prikey []byte) ([]byte, error)

func CURVE25519_sha256_sign

func CURVE25519_sha256_sign(prikey, message []byte) ([]byte, error)

func CURVE25519_sha256_verify

func CURVE25519_sha256_verify(pubkey, message, signature []byte) bool

func CURVE25519_sign

func CURVE25519_sign(prikey, message []byte) ([]byte, error)

func CURVE25519_verify

func CURVE25519_verify(pubkey, message, sig []byte) bool

func ConvertEdToX

func ConvertEdToX(ed25519PubkeyBytes [32]byte) ([32]byte, error)

func ConvertXToEd

func ConvertXToEd(x25519PubkeyBytes [32]byte) ([32]byte, error)

func Curve

func Curve(Z, k, P []byte)

func ED25519_genPub

func ED25519_genPub(prikey []byte) ([]byte, error)

func ED25519_sign

func ED25519_sign(prikey, message []byte) ([]byte, error)

func ED25519_verify

func ED25519_verify(pubkey, message, sig []byte) bool

func IsCanonicalPublicKey

func IsCanonicalPublicKey(publicKey []byte) bool

func IsCanonicalSignature

func IsCanonicalSignature(v []byte) bool

func Keygen

func Keygen(P, s, k []byte)

func Point_add

func Point_add(point1, point2, point *[32]byte) bool

func ScalarMultBaseAdd

func ScalarMultBaseAdd(point1, scalar, point2 *[32]byte) bool

func Sign

func Sign(v, h, x, s []byte) bool

func Verify

func Verify(Y, v, h, P []byte)

func X25519_genPub

func X25519_genPub(prikey []byte) ([]byte, error)

func X25519_sign

func X25519_sign(prikey, message []byte) ([]byte, error)

func X25519_verify

func X25519_verify(pubkey, message, signature []byte) bool

Types

This section is empty.

Directories

Path Synopsis
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library.
* Copyright 2020 The openwallet Authors * This file is part of the openwallet library.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL