MCPcopy Create free account
hub / github.com/dcoker/biscuit / Algorithm

Interface Algorithm

algorithms/algorithms.go:13–17  ·  view source on GitHub ↗

Algorithm implementations encrypt and decrypt data.

Source from the content-addressed store, hash-verified

11
12// Algorithm implementations encrypt and decrypt data.
13type Algorithm interface {
14 Encrypt(key []byte, data []byte) ([]byte, error)
15 Decrypt(key []byte, ciphertext []byte) ([]byte, error)
16 NeedsKey() bool
17}
18
19// Register adds a value to the store of all algorithms
20func Register(name string, a Algorithm) error {

Callers 10

encryptOneFunction · 0.65
TestAlgorithmsFunction · 0.65
TestSecretboxSymmetryFunction · 0.65
decryptOneValueFunction · 0.65
TestAlgorithmsFunction · 0.65
TestSecretboxSymmetryFunction · 0.65
chooseKeysMethod · 0.65
encryptOneFunction · 0.65
decryptOneValueFunction · 0.65

Implementers 3

aesGcm256algorithms/aesgcm256/aesgcm256.go
secretBoxalgorithms/secretbox/secretbox.go
plainalgorithms/plain/plain.go

Calls

no outgoing calls

Tested by

no test coverage detected