MCPcopy
hub / github.com/kopia/kopia / SupportedAlgorithms

Function SupportedAlgorithms

repo/encryption/encryption.go:59–73  ·  view source on GitHub ↗

SupportedAlgorithms returns the names of the supported encryption methods.

(includeDeprecated bool)

Source from the content-addressed store, hash-verified

57// SupportedAlgorithms returns the names of the supported encryption
58// methods.
59func SupportedAlgorithms(includeDeprecated bool) []string {
60 var result []string
61
62 for k, e := range encryptors {
63 if e.deprecated && !includeDeprecated {
64 continue
65 }
66
67 result = append(result, k)
68 }
69
70 sort.Strings(result)
71
72 return result
73}
74
75// Register registers new encryption algorithm.
76func Register(name, description string, deprecated bool, newEncryptor EncryptorFactory) {

Callers 8

runBenchmarkMethod · 0.92
runBenchmarkMethod · 0.92
setupMethod · 0.92
TestFormattersFunction · 0.92
TestRoundTripFunction · 0.92
verifyCiphertextSamplesFunction · 0.92
TestAllFormatsSmokeTestFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestFormattersFunction · 0.74
TestRoundTripFunction · 0.74
verifyCiphertextSamplesFunction · 0.74
TestAllFormatsSmokeTestFunction · 0.74