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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
# In this file, every section corresponds to a header file.
# A corresponding binding file will be created in $OUT_DIR.
[nspr_err]
# NSPR doesn't use an enum for errors, so we have to pull in everything in the header file.
# Specifying no types, functions, or variables does that, but then exclude some.
exclude = [
"nspr_.*",
"PR_MAX_ERROR",
"ERROR_TABLE_BASE_nspr"
]
[nspr_error]
functions = [
"PR_ErrorToName",
"PR_ErrorToString",
"PR_GetError",
"PR_SetError",
]
variables = [
"PR_LANGUAGE_I_DEFAULT",
]
[nss_secerr]
types = ["SECErrorCodes"]
enums = ["SECErrorCodes"]
[nss_init]
functions = [
"NSS_IsInitialized",
"NSS_NoDB_Init",
"NSS_Shutdown",
]
[nss_p11]
types = [
"CK_ATTRIBUTE_TYPE",
"CK_BBOOL",
"CK_FLAGS",
"CK_GENERATOR_FUNCTION",
"CK_HKDF_PARAMS",
"CK_MECHANISM_TYPE",
"CK_OBJECT_HANDLE",
"CK_ULONG",
"SECItem",
"SECItemArray",
"SECOidData",
]
functions = [
"PK11_AEADOp",
"PK11_CreateContextBySymKey",
"PK11_Derive",
"PK11_DestroyContext",
"PK11_Encrypt",
"PK11_ExtractKeyValue",
"PK11_FreeSlot",
"PK11_FreeSymKey",
"PK11_GenerateKeyPairWithOpFlags",
"PK11_GenerateRandom",
"PK11_GetBlockSize",
"PK11_GetInternalSlot",
"PK11_GetKeyData",
"PK11_GetMechanism",
"PK11_HPKE_Deserialize",
"PK11_HPKE_DestroyContext",
"PK11_HPKE_ExportSecret",
"PK11_HPKE_GetEncapPubKey",
"PK11_HPKE_NewContext",
"PK11_HPKE_Open",
"PK11_HPKE_Seal",
"PK11_HPKE_Serialize",
"PK11_HPKE_SetupR",
"PK11_HPKE_SetupS",
"PK11_HPKE_ValidateParameters",
"PK11_ImportSymKey",
"PK11_ReadRawAttribute",
"PK11_ReferenceSymKey",
"SECITEM_FreeItem",
"SECKEY_CopyPrivateKey",
"SECKEY_CopyPublicKey",
"SECKEY_DestroyPrivateKey",
"SECKEY_DestroyPublicKey",
"SECOID_FindOIDByTag",
]
enums = [
"HpkeAeadId",
"HpkeKdfId",
"HpkeKemId",
"PK11ObjectType",
"PK11Origin",
"SECItemType",
"SECOidTag",
]
opaque = [
"HpkeContext",
"PK11Context",
"PK11SlotInfo",
"PK11SymKey",
"SECKEYPrivateKey",
"SECKEYPublicKey",
]
variables = [
"CK_INVALID_HANDLE",
"CKA_DECRYPT",
"CKA_DERIVE",
"CKA_ENCRYPT",
"CKA_NSS_MESSAGE",
"CKA_SIGN",
"CKA_VALUE",
"CKF_HKDF_SALT_DATA",
"CKF_HKDF_SALT_NULL",
"CKF_DERIVE",
"CKG_GENERATE_COUNTER_XOR",
"CKG_NO_GENERATE",
"CKM_AES_GCM",
"CKM_CHACHA20_POLY1305",
"CKM_EC_KEY_PAIR_GEN",
"CKM_HKDF_DATA",
"CKM_HKDF_DERIVE",
"CKM_HKDF_KEY_GEN",
"CKM_INVALID_MECHANISM",
"CKM_SHA256",
"HPKE_DRAFT_VERSION",
"PK11_ATTR_INSENSITIVE",
"PK11_ATTR_PRIVATE",
"PK11_ATTR_PUBLIC",
"PK11_ATTR_SENSITIVE",
"PK11_ATTR_SESSION",
"SEC_ASN1_OBJECT_ID",
]
|