Documentation ¶
Index ¶
- func GenerateKeysFromSeed(seedData []byte, bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)
- func PublicKeyToBytes(pubKey *rsa.PublicKey) ([]byte, error)
- func SignData(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
- func VerifySignature(publicKey *rsa.PublicKey, data []byte, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeysFromSeed ¶
GenerateKeysFromSeed 使用种子数据生成 RSA 密钥对
func PublicKeyToBytes ¶
PublicKeyToBytes 使用x509标准将公钥转换为字节
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.