Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
return a private key generated using rsa or ecdsa. if param ecdsaCurve is empty string, then rsa with 'rsaBits' will be used; otherwise corresponding ecdsa algorithm will be used and 'rsaBits' is ignored.
func PublicKey ¶
func PublicKey(priv interface{}) interface{}
returns 'public part' of the passed asymmetric encryption algo key 'priv'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.