Documentation ¶
Index ¶
- type ECPrivateKey
- type RSAPrivateKey
- func (k *RSAPrivateKey) DER() []byte
- func (k *RSAPrivateKey) PEM() []byte
- func (k *RSAPrivateKey) PKCS1PrivateKey() []byte
- func (k *RSAPrivateKey) PKCS1PrivateKeyPEM() []byte
- func (k *RSAPrivateKey) PKCS1PublicKey() []byte
- func (k *RSAPrivateKey) PKCS1PublicKeyPEM() []byte
- func (k *RSAPrivateKey) PKCS8PrivateKey() []byte
- func (k *RSAPrivateKey) PKCS8PrivateKeyPEM() []byte
- func (k *RSAPrivateKey) PKIXPrivateKey() []byte
- func (k *RSAPrivateKey) PKIXPrivateKeyPEM() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECPrivateKey ¶
type ECPrivateKey struct {
// contains filtered or unexported fields
}
func GenerateECKey ¶
func GenerateECKey(curve elliptic.Curve) (*ECPrivateKey, error)
func (*ECPrivateKey) DER ¶
func (k *ECPrivateKey) DER() []byte
func (*ECPrivateKey) PEM ¶
func (k *ECPrivateKey) PEM() []byte
type RSAPrivateKey ¶
type RSAPrivateKey struct {
rsa.PrivateKey
}
func GenerateRSAKey ¶
func GenerateRSAKey(random io.Reader, bits int) (*RSAPrivateKey, error)
func (*RSAPrivateKey) DER ¶
func (k *RSAPrivateKey) DER() []byte
func (*RSAPrivateKey) PEM ¶
func (k *RSAPrivateKey) PEM() []byte
func (*RSAPrivateKey) PKCS1PrivateKey ¶
func (k *RSAPrivateKey) PKCS1PrivateKey() []byte
func (*RSAPrivateKey) PKCS1PrivateKeyPEM ¶
func (k *RSAPrivateKey) PKCS1PrivateKeyPEM() []byte
func (*RSAPrivateKey) PKCS1PublicKey ¶
func (k *RSAPrivateKey) PKCS1PublicKey() []byte
func (*RSAPrivateKey) PKCS1PublicKeyPEM ¶
func (k *RSAPrivateKey) PKCS1PublicKeyPEM() []byte
func (*RSAPrivateKey) PKCS8PrivateKey ¶
func (k *RSAPrivateKey) PKCS8PrivateKey() []byte
func (*RSAPrivateKey) PKCS8PrivateKeyPEM ¶
func (k *RSAPrivateKey) PKCS8PrivateKeyPEM() []byte
func (*RSAPrivateKey) PKIXPrivateKey ¶
func (k *RSAPrivateKey) PKIXPrivateKey() []byte
func (*RSAPrivateKey) PKIXPrivateKeyPEM ¶
func (k *RSAPrivateKey) PKIXPrivateKeyPEM() []byte
Click to show internal directories.
Click to hide internal directories.