Documentation ¶
Index ¶
- func Error(file string, line int, err string) error
- func GetKey(filePath string) (*pem.Block, error)
- func PaddingLastGroup(plainText []byte, blockSize int) []byte
- func PriEcdsaToEcies(prv *ecdsa.PrivateKey) *ecies.PrivateKey
- func PubEcdsaToEcies(pub *ecdsa.PublicKey) *ecies.PublicKey
- func UnpaddingLastGroup(plainText []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PaddingLastGroup ¶
填充最后一组 plainText:明文 blockSize:块大小 返回:填充后的明文
func PriEcdsaToEcies ¶
func PriEcdsaToEcies(prv *ecdsa.PrivateKey) *ecies.PrivateKey
ecdsa private key to ecies private key
func PubEcdsaToEcies ¶
ecdsa public key to ecies public key
func UnpaddingLastGroup ¶
去掉填充 plainText:填充后的明文 返回:填充前的明文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.