Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeECDSAPublicKey ¶
DecodeECDSAPublicKey parses the ecdsa public key
Types ¶
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
KeyPair saves the ecdsa private key or the rsa private key and provides a get public/private encoded bytes array method
func DecodePrivateKey ¶
DecodePrivateKey parses the private key to a KeyPair.
func (*KeyPair) EncodedPrivateKey ¶
EncodedPrivateKey gets the encoded private key
func (*KeyPair) EncodedPublicKey ¶
EncodedPublicKey gets the encoded public key
func (*KeyPair) GetEcdsaPrivateKey ¶
func (k *KeyPair) GetEcdsaPrivateKey() (*ecdsa.PrivateKey, error)
GetEcdsaPrivateKey gets the ecdsa private key if you are using ecdsa signature algorithm to generate the private key
func (*KeyPair) GetRsaPrivateKey ¶
func (k *KeyPair) GetRsaPrivateKey() (*rsa.PrivateKey, error)
GetRsaPrivateKey gets the rsa private key if you are using rsa signature algorithm to generate the private key
Click to show internal directories.
Click to hide internal directories.