Versions in this module Expand all Collapse all v1 v1.1.0 Aug 27, 2023 v1.0.0 Mar 5, 2023 Changes in this version + var SealServiceClass = reflect.TypeOf((*SealService)(nil)).Elem() + type AsymmetricSealer interface + EncodePrivateKey func() (string, error) + EncodePublicKey func() (string, error) + Open func(ciphertext []byte, sender crypto.PublicKey) (plaintext []byte, err error) + PrivateKey func() crypto.PrivateKey + PublicKey func() crypto.PublicKey + Seal func(plaintext []byte, recipient crypto.PublicKey) (ciphertext []byte, err error) + type AsymmetricSigner interface + EncodePrivateKey func() (string, error) + EncodePublicKey func() (string, error) + PrivateKey func() crypto.PrivateKey + PublicKey func() crypto.PublicKey + Sign func(plaintext []byte) (sign []byte, err error) + Verify func(plaintext, sign []byte) (valid bool, err error) + type AuthenticatedCipher interface + Decrypt func(ciphertext []byte) (plaintext []byte, err error) + Encrypt func(plaintext []byte) (ciphertext []byte, err error) + Key func() cipher.AEAD + type CipherOption interface + Apply func(*CipherOptions) error + type CipherOptions struct + Algorithm string + Block cipher.Block + type SealService interface + AuthenticatedCipher func(options ...CipherOption) (AuthenticatedCipher, error) + IssueSealer func(algorithm string, bits int) (AsymmetricSealer, error) + IssueSigner func(algorithm string, bits int) (AsymmetricSigner, error) + Sealer func(options ...SealerOption) (AsymmetricSealer, error) + Signer func(options ...SealerOption) (AsymmetricSigner, error) + type SealerOption interface + Apply func(*SealerOptions) error + type SealerOptions struct + Algorithm string + PrivateKey crypto.PrivateKey + PublicKey crypto.PublicKey