Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry is used to get registered crypto provider implementations.
var DefaultRegistry *Registry
DefaultRegistry is the singleton with the registry.
func (*Registry) Create ¶
func (s *Registry) Create(name, version, logName string) (crypto.SubtleCrypto, error)
Create instantiates a crypto provider based on `name`.
func (*Registry) RegisterComponent ¶
func (s *Registry) RegisterComponent(componentFactory func(logger.Logger) crypto.SubtleCrypto, names ...string)
RegisterComponent adds a new crypto provider to the registry.
Click to show internal directories.
Click to hide internal directories.