Documentation
¶
Index ¶
- func CalculateSHA1(data []byte) []byte
- func CalculateSHA512(data []byte) []byte
- func CalculateSHA512Str(data []byte) string
- func EcdsaSign(data []byte, privateKey string) (string, error)
- func EcdsaSignRow(data []byte, privateKey string) ([]byte, error)
- func EcdsaVerify(data []byte, base64Sig, publicKey string) error
- func EcdsaVerifyRow(data []byte, sign []byte, publicKey string) error
- func RSASign(data []byte, privateKey string) (string, error)
- func RSAVerify(data []byte, base64Sig, publicKey string) error
- func ReadPrivateKey[T any](privateKey string) *T
- func ReadPublicKey[T any](publicKey string) *T
- func ReadSshPublicKey[T any](publicKey string) *T
- func Sha256Checksum(filename string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSHA1 ¶
func CalculateSHA512 ¶
func CalculateSHA512Str ¶
func EcdsaVerify ¶
EcdsaVerify 验证 Ecdsa 签名
func ReadSshPublicKey ¶
ReadSshPublicKey 读取 ssh 格式的公钥
func Sha256Checksum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.