Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RandReader = rand.Reader
RandReader is the io.Reader that produces cryptographically random bytes when they are need by the library. The default value is rand.Reader, but it can be replaced for testing.
Functions ¶
func LoadMultiBlockPem ¶
LoadMultiBlockPem load items (cert, private key, public key, etc.) from pem file. Supported block types are
- * PRIVATE KEY
- PUBLIC KEY
- CERTIFICATE
func LoadPrivateKey ¶
func LoadPrivateKey(file string, keyPassword string) (*rsa.PrivateKey, error)
func RandomBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.