Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ed25519 = &EdDSAEncrypt{}
Ed25519 Ed25519
Functions ¶
func DumpPriKeyPKCS8Base64 ¶
func DumpPriKeyPKCS8Base64(privateKey *ed25519.PrivateKey) (string, error)
DumpPriKeyPKCS8Base64 DumpPriKeyPKCS8Base64
func DumpPubPKCS8Base64 ¶
DumpPubPKCS8Base64 DumpPubPKCS8Base64
func GenerateKey ¶
func GenerateKey() (*ed25519.PublicKey, *ed25519.PrivateKey, error)
GenerateKey GenerateKey
Types ¶
type EdDSAEncrypt ¶
type EdDSAEncrypt struct {
// contains filtered or unexported fields
}
EdDSAEncrypt EdDSAEncrypt
func (*EdDSAEncrypt) SetPriKeyHex ¶
func (rsas *EdDSAEncrypt) SetPriKeyHex(priKeyStr string) (err error)
SetPriKeyHex 设置私钥
func (*EdDSAEncrypt) SignWithSha1Base64 ¶
func (rsas *EdDSAEncrypt) SignWithSha1Base64(data []byte) (string, error)
SignWithSha1Base64 SignWithSha1Base64
func (*EdDSAEncrypt) SignWithSha1Hex ¶
func (rsas *EdDSAEncrypt) SignWithSha1Hex(data []byte) (string, error)
SignWithSha1Hex RsaSignWithSha1Hex
Click to show internal directories.
Click to hide internal directories.