Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptRSA ¶
Types ¶
type OperatorDecrypter ¶
type OperatorPrivateKey ¶
type OperatorPrivateKey interface { OperatorSigner OperatorDecrypter StorageHash() (string, error) EKMHash() (string, error) Bytes() []byte Base64() []byte }
func GeneratePrivateKey ¶
func GeneratePrivateKey() (OperatorPrivateKey, error)
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(pemData []byte) (OperatorPrivateKey, error)
func PrivateKeyFromString ¶
func PrivateKeyFromString(privKeyString string) (OperatorPrivateKey, error)
type OperatorPublicKey ¶
type OperatorPublicKey interface { Encrypt(data []byte) ([]byte, error) Verify(data []byte, signature []byte) error Base64() ([]byte, error) }
func PublicKeyFromString ¶
func PublicKeyFromString(pubKeyString string) (OperatorPublicKey, error)
type OperatorSigner ¶
type OperatorSigner interface { Sign(data []byte) ([]byte, error) Public() OperatorPublicKey }
Click to show internal directories.
Click to hide internal directories.