Versions in this module Expand all Collapse all v1 v1.3.3 Apr 1, 2024 Changes in this version + func EncryptRSA(pub *publicKey, data []byte) ([]byte, error) + func SignRSA(priv *privateKey, data []byte) ([]byte, error) + func VerifyRSA(pub *publicKey, data, signature []byte) error + type OperatorDecrypter interface + Decrypt func(data []byte) ([]byte, error) + type OperatorPrivateKey interface + Base64 func() []byte + Bytes func() []byte + EKMHash func() (string, error) + StorageHash func() (string, error) + func GeneratePrivateKey() (OperatorPrivateKey, error) + func PrivateKeyFromBytes(pemData []byte) (OperatorPrivateKey, error) + func PrivateKeyFromString(privKeyString string) (OperatorPrivateKey, error) + type OperatorPublicKey interface + Base64 func() ([]byte, error) + Encrypt func(data []byte) ([]byte, error) + Verify func(data []byte, signature []byte) error + func PublicKeyFromString(pubKeyString string) (OperatorPublicKey, error) + type OperatorSigner interface + Public func() OperatorPublicKey + Sign func(data []byte) ([]byte, error)