factories

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashSafeForSignature

func HashSafeForSignature(hashAlg string) error

HashSafeForSignature checks whether a hash function is safe to use with digital signatures that require collision resistance.

func NewAEADGCMKeyFactory

func NewAEADGCMKeyFactory(idService services.IDService, randomService services.CPRNGService) types.KeyFactory

func NewRSASSAPKCS1SHAKeyFactory

func NewRSASSAPKCS1SHAKeyFactory(randomService services.CPRNGService) types.WrappingKeyFactory

func NewXChaCha20Poly1305KeyFactory

func NewXChaCha20Poly1305KeyFactory(idService services.IDService, randomService services.CPRNGService) types.KeyFactory

func RSAHashFunc

func RSAHashFunc(hashAlg string) (func() hash.Hash, crypto.Hash, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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