cryptoutil

package
v0.0.0-...-3430805 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesDigest

func BytesDigest(data []byte, algo string) ([]byte, error)

func FileDigest

func FileDigest(path, algo string) ([]byte, error)

func GetCertDigest

func GetCertDigest(certfile string) ([]byte, string, error)

func GetHashAlgoFromCert

func GetHashAlgoFromCert(certfile string) (string, error)

func Sign

func Sign(message []byte, certFile, keyFile string) ([]byte, error)

func Verify

func Verify(message, sig []byte, certFile string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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