/
a_crypto_slow_init.go
63 lines (50 loc) · 2.4 KB
/
a_crypto_slow_init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// This file is generated by generate-std.joke script. Do not edit manually!
package crypto
import (
"fmt"
. "github.com/candid82/joker/core"
"os"
)
func InternsOrThunks() {
if VerbosityLevel > 0 {
fmt.Fprintln(os.Stderr, "Lazily running slow version of crypto.InternsOrThunks().")
}
cryptoNamespace.ResetMeta(MakeMeta(nil, `Implements common cryptographic and hash functions.`, "1.0"))
cryptoNamespace.InternVar("hmac", hmac_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("algorithm"), MakeSymbol("message"), MakeSymbol("key"))),
`Returns HMAC signature for message and key using specified algorithm.
Algorithm is one of the following: :sha1, :sha224, :sha256, :sha384, :sha512.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("md5", md5_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the MD5 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha1", sha1_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA1 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha224", sha224_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA224 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha256", sha256_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA256 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha384", sha384_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA384 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha512", sha512_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA512 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha512-224", sha512_224_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA512/224 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
cryptoNamespace.InternVar("sha512-256", sha512_256_,
MakeMeta(
NewListFrom(NewVectorFrom(MakeSymbol("data"))),
`Returns the SHA512/256 checksum of the data.`, "1.0").Plus(MakeKeyword("tag"), String{S: "String"}))
}