Decrypter is an interface for an opaque private key that can be used for asymmetric decryption operations. An example would be an RSA key kept in a hardware module.

See also:

Fields

@:interfacetypeffundynamicpublic_():PublicKey

Public returns the public key corresponding to the opaque, private key.

@:interfacetypeffundynamicdecrypt(_rand:Reader, _msg:Slice<GoUInt8>, _opts:DecrypterOpts):{_1:Error, _0:Slice<GoUInt8>}

Decrypt decrypts msg. The opts argument should be appropriate for the primitive used. See the documentation in each implementation for details.

__underlying__():AnyInterface

Allows struct or interfaces to provide back type information.

Returns:

go.AnyInterface