crypto

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressPublicKey

func CompressPublicKey(keyToCompress []byte) []byte

CompressPublicKey compresses the given public key.

func DeriveKDFAESKey

func DeriveKDFAESKey(publicKey, sharedECDHSecret []byte) ([]byte, error)

DeriveKDFAESKey derives an AES key using the given public key and shared ECDH secret.

func EncryptValue

func EncryptValue(
	aesKey, ephemeralPublicKey, appPublicKey []byte, value, role string, datatype datatypes.Datatype,
) (string, error)

EncryptValue encrypts the given value using AES encryption.

Types

This section is empty.

Jump to

Keyboard shortcuts

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