cryptoutil

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package cryptoutil provides utility functions for cryptographic operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignSymmetric added in v0.0.12

func SignSymmetric(msg []byte, secretKey *[32]byte) ([]byte, error)

SignSymmetric signs a message using a symmetric key. It is a convenience wrapper around the nacl/auth package.

func VerifyAndReadAssymetric added in v0.0.20

func VerifyAndReadAssymetric(signedMsg []byte, publicKey *[32]byte) ([]byte, error)

VerifyAndReadAssymetric verifies a signed message using a public key and returns the original message. It is a convenience wrapper around the nacl/sign package.

func VerifyAndReadSymmetric added in v0.0.20

func VerifyAndReadSymmetric(signedMsg []byte, secretKey *[32]byte) ([]byte, error)

VerifyAndReadSymmetric verifies a signed message using a symmetric key and returns the original message. It is a convenience wrapper around the nacl/auth package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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