crypto

package
v2.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryptor

type Encryptor interface {
	// Name returns the name of the encryptor.
	Name() string
	// Encrypt encrypts data.
	Encrypt(data []byte) ([]byte, error)
	// Decrypt decrypts data.
	Decrypt(data []byte) ([]byte, error)
}

type Signer

type Signer interface {
	// Name returns the name of the signer.
	Name() string
	// Sign signs data.
	Sign(data []byte) ([]byte, error)
	// Verify verifies the signature of data.
	Verify(data []byte, signature []byte) (bool, error)
}

Jump to

Keyboard shortcuts

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