factory

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package factory is used to create Crpt instances from options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNew

func MustNew(keyType crpt.KeyType, hashFunc crypto.Hash) crpt.Crpt

MustNew creates a Crpt instance with the specified algorithm and hashFunc, it panics if an error occurs.

func New

func New(keyType crpt.KeyType, hashFunc crypto.Hash) (crpt.Crpt, error)

New creates a Crpt instance with the specified KeyType and hashFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL