@reallyme/crypto 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +140 -0
- package/dist/aead.d.ts +9 -0
- package/dist/aead.js +62 -0
- package/dist/aesKw.d.ts +10 -0
- package/dist/aesKw.js +45 -0
- package/dist/algorithms.d.ts +18 -0
- package/dist/algorithms.js +64 -0
- package/dist/argon2id.d.ts +8 -0
- package/dist/argon2id.js +40 -0
- package/dist/bip340Schnorr.d.ts +26 -0
- package/dist/bip340Schnorr.js +72 -0
- package/dist/codecs.d.ts +35 -0
- package/dist/codecs.js +216 -0
- package/dist/cryptoFacade.d.ts +51 -0
- package/dist/cryptoFacade.js +329 -0
- package/dist/digest.d.ts +14 -0
- package/dist/digest.js +33 -0
- package/dist/ed25519.d.ts +34 -0
- package/dist/ed25519.js +78 -0
- package/dist/encodeEcdsaDer.d.ts +2 -0
- package/dist/encodeEcdsaDer.js +141 -0
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +11 -0
- package/dist/hkdf.d.ts +7 -0
- package/dist/hkdf.js +27 -0
- package/dist/hmac.d.ts +9 -0
- package/dist/hmac.js +50 -0
- package/dist/hpke.d.ts +15 -0
- package/dist/hpke.js +59 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +31 -0
- package/dist/jwk.d.ts +42 -0
- package/dist/jwk.js +289 -0
- package/dist/mlDsa.d.ts +18 -0
- package/dist/mlDsa.js +85 -0
- package/dist/mlKem.d.ts +25 -0
- package/dist/mlKem.js +95 -0
- package/dist/p256Ecdh.d.ts +22 -0
- package/dist/p256Ecdh.js +53 -0
- package/dist/p256Ecdsa.d.ts +25 -0
- package/dist/p256Ecdsa.js +85 -0
- package/dist/p384Ecdsa.d.ts +23 -0
- package/dist/p384Ecdsa.js +83 -0
- package/dist/p521Ecdsa.d.ts +23 -0
- package/dist/p521Ecdsa.js +83 -0
- package/dist/pbkdf2.d.ts +28 -0
- package/dist/pbkdf2.js +57 -0
- package/dist/proto/generated/reallyme/crypto/v1/crypto_pb.d.ts +618 -0
- package/dist/proto/generated/reallyme/crypto/v1/crypto_pb.js +523 -0
- package/dist/proto.d.ts +25 -0
- package/dist/proto.js +342 -0
- package/dist/providerCatalog.d.ts +9 -0
- package/dist/providerCatalog.js +15 -0
- package/dist/rsa.d.ts +13 -0
- package/dist/rsa.js +102 -0
- package/dist/secp256k1.d.ts +47 -0
- package/dist/secp256k1.js +106 -0
- package/dist/slhDsa.d.ts +15 -0
- package/dist/slhDsa.js +54 -0
- package/dist/validateBytes.d.ts +2 -0
- package/dist/validateBytes.js +20 -0
- package/dist/verifySignature.d.ts +1 -0
- package/dist/verifySignature.js +9 -0
- package/dist/wasm/LICENSE +201 -0
- package/dist/wasm/reallyme_crypto_wasm.js +1319 -0
- package/dist/wasm/reallyme_crypto_wasm_bg.wasm +0 -0
- package/dist/wasmModuleTypes.d.ts +72 -0
- package/dist/wasmModuleTypes.js +4 -0
- package/dist/wasmProvider.d.ts +94 -0
- package/dist/wasmProvider.js +173 -0
- package/dist/x25519.d.ts +28 -0
- package/dist/x25519.js +66 -0
- package/dist/xWing.d.ts +23 -0
- package/dist/xWing.js +86 -0
- package/package.json +48 -0
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
|
|
2
|
+
//
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file reallyme/crypto/v1/crypto.proto.
|
|
7
|
+
*/
|
|
8
|
+
export const file_reallyme_crypto_v1_crypto = /*@__PURE__*/ fileDesc("Ch9yZWFsbHltZS9jcnlwdG8vdjEvY3J5cHRvLnByb3RvEhJyZWFsbHltZS5jcnlwdG8udjEi0QQKGUNyeXB0b0FsZ29yaXRobUlkZW50aWZpZXISOwoJc2lnbmF0dXJ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TlfUFJJVhAPEigKJE1VTFRJQ09ERUNfS0VZX0FMR09SSVRITV9YMjU1MTlfUFJJVhAQEisKJ01VTFRJQ09ERUNfS0VZX0FMR09SSVRITV9TRUNQMjU2SzFfUFJJVhAREiYKIk1VTFRJQ09ERUNfS0VZX0FMR09SSVRITV9QMjU2X1BSSVYQEhImCiJNVUxUSUNPREVDX0tFWV9BTEdPUklUSE1fUDM4NF9QUklWEBMSJgoiTVVMVElDT0RFQ19LRVlfQUxHT1JJVEhNX1A1MjFfUFJJVhAUEicKI01VTFRJQ09ERUNfS0VZX0FMR09SSVRITV9FRDQ0OF9QUklWEBUSJQohTVVMVElDT0RFQ19LRVlfQUxHT1JJVEhNX1JTQV9QUklWEBYSLAooTVVMVElDT0RFQ19LRVlfQUxHT1JJVEhNX01MX0tFTV81MTJfUFJJVhAXEiwKKE1VTFRJQ09ERUNfS0VZX0FMR09SSVRITV9NTF9LRU1fNzY4X1BSSVYQGBItCilNVUxUSUNPREVDX0tFWV9BTEdPUklUSE1fTUxfS0VNXzEwMjRfUFJJVhAZQioKFmNvbS5yZWFsbHltZS5jcnlwdG8udjFQAboCDVJlYWxseU1lUHJvdG9iBnByb3RvMw");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message reallyme.crypto.v1.CryptoAlgorithmIdentifier.
|
|
11
|
+
* Use `create(CryptoAlgorithmIdentifierSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const CryptoAlgorithmIdentifierSchema = /*@__PURE__*/ messageDesc(file_reallyme_crypto_v1_crypto, 0);
|
|
14
|
+
/**
|
|
15
|
+
* Describes the message reallyme.crypto.v1.JsonWebKey.
|
|
16
|
+
* Use `create(JsonWebKeySchema)` to create a new message.
|
|
17
|
+
*/
|
|
18
|
+
export const JsonWebKeySchema = /*@__PURE__*/ messageDesc(file_reallyme_crypto_v1_crypto, 1);
|
|
19
|
+
/**
|
|
20
|
+
* Describes the message reallyme.crypto.v1.JsonWebKeySet.
|
|
21
|
+
* Use `create(JsonWebKeySetSchema)` to create a new message.
|
|
22
|
+
*/
|
|
23
|
+
export const JsonWebKeySetSchema = /*@__PURE__*/ messageDesc(file_reallyme_crypto_v1_crypto, 2);
|
|
24
|
+
/**
|
|
25
|
+
* CryptoAlgorithmFamily classifies an algorithm identifier without implying
|
|
26
|
+
* that the identifier is valid for a specific operation.
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum reallyme.crypto.v1.CryptoAlgorithmFamily
|
|
29
|
+
*/
|
|
30
|
+
export var CryptoAlgorithmFamily;
|
|
31
|
+
(function (CryptoAlgorithmFamily) {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_SIGNATURE = 1;
|
|
38
|
+
*/
|
|
39
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["SIGNATURE"] = 1] = "SIGNATURE";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_KEY_AGREEMENT = 2;
|
|
42
|
+
*/
|
|
43
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["KEY_AGREEMENT"] = 2] = "KEY_AGREEMENT";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_KEM = 3;
|
|
46
|
+
*/
|
|
47
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["KEM"] = 3] = "KEM";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_AEAD = 4;
|
|
50
|
+
*/
|
|
51
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["AEAD"] = 4] = "AEAD";
|
|
52
|
+
/**
|
|
53
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_HASH = 5;
|
|
54
|
+
*/
|
|
55
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["HASH"] = 5] = "HASH";
|
|
56
|
+
/**
|
|
57
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_MAC = 6;
|
|
58
|
+
*/
|
|
59
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["MAC"] = 6] = "MAC";
|
|
60
|
+
/**
|
|
61
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_KDF = 7;
|
|
62
|
+
*/
|
|
63
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["KDF"] = 7] = "KDF";
|
|
64
|
+
/**
|
|
65
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_KEY_WRAP = 8;
|
|
66
|
+
*/
|
|
67
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["KEY_WRAP"] = 8] = "KEY_WRAP";
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: CRYPTO_ALGORITHM_FAMILY_HPKE = 9;
|
|
70
|
+
*/
|
|
71
|
+
CryptoAlgorithmFamily[CryptoAlgorithmFamily["HPKE"] = 9] = "HPKE";
|
|
72
|
+
})(CryptoAlgorithmFamily || (CryptoAlgorithmFamily = {}));
|
|
73
|
+
/**
|
|
74
|
+
* Describes the enum reallyme.crypto.v1.CryptoAlgorithmFamily.
|
|
75
|
+
*/
|
|
76
|
+
export const CryptoAlgorithmFamilySchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 0);
|
|
77
|
+
/**
|
|
78
|
+
* SignatureAlgorithm identifies signature suites supported or reserved by the
|
|
79
|
+
* crypto repository. RSA values identify verification suites; RSA signing is
|
|
80
|
+
* intentionally not exposed by this package today.
|
|
81
|
+
*
|
|
82
|
+
* @generated from enum reallyme.crypto.v1.SignatureAlgorithm
|
|
83
|
+
*/
|
|
84
|
+
export var SignatureAlgorithm;
|
|
85
|
+
(function (SignatureAlgorithm) {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_UNSPECIFIED = 0;
|
|
88
|
+
*/
|
|
89
|
+
SignatureAlgorithm[SignatureAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ED25519 = 1;
|
|
92
|
+
*/
|
|
93
|
+
SignatureAlgorithm[SignatureAlgorithm["ED25519"] = 1] = "ED25519";
|
|
94
|
+
/**
|
|
95
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ECDSA_P256_SHA256 = 2;
|
|
96
|
+
*/
|
|
97
|
+
SignatureAlgorithm[SignatureAlgorithm["ECDSA_P256_SHA256"] = 2] = "ECDSA_P256_SHA256";
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ECDSA_P384_SHA384 = 3;
|
|
100
|
+
*/
|
|
101
|
+
SignatureAlgorithm[SignatureAlgorithm["ECDSA_P384_SHA384"] = 3] = "ECDSA_P384_SHA384";
|
|
102
|
+
/**
|
|
103
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ECDSA_P521_SHA512 = 4;
|
|
104
|
+
*/
|
|
105
|
+
SignatureAlgorithm[SignatureAlgorithm["ECDSA_P521_SHA512"] = 4] = "ECDSA_P521_SHA512";
|
|
106
|
+
/**
|
|
107
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ECDSA_SECP256K1_SHA256 = 5;
|
|
108
|
+
*/
|
|
109
|
+
SignatureAlgorithm[SignatureAlgorithm["ECDSA_SECP256K1_SHA256"] = 5] = "ECDSA_SECP256K1_SHA256";
|
|
110
|
+
/**
|
|
111
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_BIP340_SCHNORR_SECP256K1_SHA256 = 6;
|
|
112
|
+
*/
|
|
113
|
+
SignatureAlgorithm[SignatureAlgorithm["BIP340_SCHNORR_SECP256K1_SHA256"] = 6] = "BIP340_SCHNORR_SECP256K1_SHA256";
|
|
114
|
+
/**
|
|
115
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PKCS1V15_SHA1 = 7;
|
|
116
|
+
*/
|
|
117
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PKCS1V15_SHA1"] = 7] = "RSA_PKCS1V15_SHA1";
|
|
118
|
+
/**
|
|
119
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PKCS1V15_SHA256 = 8;
|
|
120
|
+
*/
|
|
121
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PKCS1V15_SHA256"] = 8] = "RSA_PKCS1V15_SHA256";
|
|
122
|
+
/**
|
|
123
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PKCS1V15_SHA384 = 9;
|
|
124
|
+
*/
|
|
125
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PKCS1V15_SHA384"] = 9] = "RSA_PKCS1V15_SHA384";
|
|
126
|
+
/**
|
|
127
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PKCS1V15_SHA512 = 10;
|
|
128
|
+
*/
|
|
129
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PKCS1V15_SHA512"] = 10] = "RSA_PKCS1V15_SHA512";
|
|
130
|
+
/**
|
|
131
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PSS_SHA1_MGF1_SHA1 = 11;
|
|
132
|
+
*/
|
|
133
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PSS_SHA1_MGF1_SHA1"] = 11] = "RSA_PSS_SHA1_MGF1_SHA1";
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PSS_SHA256_MGF1_SHA256 = 12;
|
|
136
|
+
*/
|
|
137
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PSS_SHA256_MGF1_SHA256"] = 12] = "RSA_PSS_SHA256_MGF1_SHA256";
|
|
138
|
+
/**
|
|
139
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PSS_SHA384_MGF1_SHA384 = 13;
|
|
140
|
+
*/
|
|
141
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PSS_SHA384_MGF1_SHA384"] = 13] = "RSA_PSS_SHA384_MGF1_SHA384";
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_RSA_PSS_SHA512_MGF1_SHA512 = 14;
|
|
144
|
+
*/
|
|
145
|
+
SignatureAlgorithm[SignatureAlgorithm["RSA_PSS_SHA512_MGF1_SHA512"] = 14] = "RSA_PSS_SHA512_MGF1_SHA512";
|
|
146
|
+
/**
|
|
147
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ML_DSA_44 = 15;
|
|
148
|
+
*/
|
|
149
|
+
SignatureAlgorithm[SignatureAlgorithm["ML_DSA_44"] = 15] = "ML_DSA_44";
|
|
150
|
+
/**
|
|
151
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ML_DSA_65 = 16;
|
|
152
|
+
*/
|
|
153
|
+
SignatureAlgorithm[SignatureAlgorithm["ML_DSA_65"] = 16] = "ML_DSA_65";
|
|
154
|
+
/**
|
|
155
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_ML_DSA_87 = 17;
|
|
156
|
+
*/
|
|
157
|
+
SignatureAlgorithm[SignatureAlgorithm["ML_DSA_87"] = 17] = "ML_DSA_87";
|
|
158
|
+
/**
|
|
159
|
+
* @generated from enum value: SIGNATURE_ALGORITHM_SLH_DSA_SHA2_128S = 18;
|
|
160
|
+
*/
|
|
161
|
+
SignatureAlgorithm[SignatureAlgorithm["SLH_DSA_SHA2_128S"] = 18] = "SLH_DSA_SHA2_128S";
|
|
162
|
+
})(SignatureAlgorithm || (SignatureAlgorithm = {}));
|
|
163
|
+
/**
|
|
164
|
+
* Describes the enum reallyme.crypto.v1.SignatureAlgorithm.
|
|
165
|
+
*/
|
|
166
|
+
export const SignatureAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 1);
|
|
167
|
+
/**
|
|
168
|
+
* KeyAgreementAlgorithm identifies direct shared-secret derivation suites.
|
|
169
|
+
* Callers must still feed derived shared secrets through a protocol KDF.
|
|
170
|
+
*
|
|
171
|
+
* @generated from enum reallyme.crypto.v1.KeyAgreementAlgorithm
|
|
172
|
+
*/
|
|
173
|
+
export var KeyAgreementAlgorithm;
|
|
174
|
+
(function (KeyAgreementAlgorithm) {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from enum value: KEY_AGREEMENT_ALGORITHM_UNSPECIFIED = 0;
|
|
177
|
+
*/
|
|
178
|
+
KeyAgreementAlgorithm[KeyAgreementAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
179
|
+
/**
|
|
180
|
+
* @generated from enum value: KEY_AGREEMENT_ALGORITHM_X25519 = 1;
|
|
181
|
+
*/
|
|
182
|
+
KeyAgreementAlgorithm[KeyAgreementAlgorithm["X25519"] = 1] = "X25519";
|
|
183
|
+
/**
|
|
184
|
+
* @generated from enum value: KEY_AGREEMENT_ALGORITHM_P256_ECDH = 2;
|
|
185
|
+
*/
|
|
186
|
+
KeyAgreementAlgorithm[KeyAgreementAlgorithm["P256_ECDH"] = 2] = "P256_ECDH";
|
|
187
|
+
})(KeyAgreementAlgorithm || (KeyAgreementAlgorithm = {}));
|
|
188
|
+
/**
|
|
189
|
+
* Describes the enum reallyme.crypto.v1.KeyAgreementAlgorithm.
|
|
190
|
+
*/
|
|
191
|
+
export const KeyAgreementAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 2);
|
|
192
|
+
/**
|
|
193
|
+
* KemAlgorithm identifies encapsulation suites. X-Wing values are ReallyMe's
|
|
194
|
+
* supported hybrid KEM variants over X25519 and ML-KEM.
|
|
195
|
+
*
|
|
196
|
+
* @generated from enum reallyme.crypto.v1.KemAlgorithm
|
|
197
|
+
*/
|
|
198
|
+
export var KemAlgorithm;
|
|
199
|
+
(function (KemAlgorithm) {
|
|
200
|
+
/**
|
|
201
|
+
* @generated from enum value: KEM_ALGORITHM_UNSPECIFIED = 0;
|
|
202
|
+
*/
|
|
203
|
+
KemAlgorithm[KemAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
204
|
+
/**
|
|
205
|
+
* @generated from enum value: KEM_ALGORITHM_ML_KEM_512 = 1;
|
|
206
|
+
*/
|
|
207
|
+
KemAlgorithm[KemAlgorithm["ML_KEM_512"] = 1] = "ML_KEM_512";
|
|
208
|
+
/**
|
|
209
|
+
* @generated from enum value: KEM_ALGORITHM_ML_KEM_768 = 2;
|
|
210
|
+
*/
|
|
211
|
+
KemAlgorithm[KemAlgorithm["ML_KEM_768"] = 2] = "ML_KEM_768";
|
|
212
|
+
/**
|
|
213
|
+
* @generated from enum value: KEM_ALGORITHM_ML_KEM_1024 = 3;
|
|
214
|
+
*/
|
|
215
|
+
KemAlgorithm[KemAlgorithm["ML_KEM_1024"] = 3] = "ML_KEM_1024";
|
|
216
|
+
/**
|
|
217
|
+
* @generated from enum value: KEM_ALGORITHM_X_WING_768 = 4;
|
|
218
|
+
*/
|
|
219
|
+
KemAlgorithm[KemAlgorithm["X_WING_768"] = 4] = "X_WING_768";
|
|
220
|
+
/**
|
|
221
|
+
* @generated from enum value: KEM_ALGORITHM_X_WING_1024 = 5;
|
|
222
|
+
*/
|
|
223
|
+
KemAlgorithm[KemAlgorithm["X_WING_1024"] = 5] = "X_WING_1024";
|
|
224
|
+
})(KemAlgorithm || (KemAlgorithm = {}));
|
|
225
|
+
/**
|
|
226
|
+
* Describes the enum reallyme.crypto.v1.KemAlgorithm.
|
|
227
|
+
*/
|
|
228
|
+
export const KemAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 3);
|
|
229
|
+
/**
|
|
230
|
+
* HpkeSuite identifies supported RFC 9180 HPKE Base-mode ciphersuites.
|
|
231
|
+
*
|
|
232
|
+
* @generated from enum reallyme.crypto.v1.HpkeSuite
|
|
233
|
+
*/
|
|
234
|
+
export var HpkeSuite;
|
|
235
|
+
(function (HpkeSuite) {
|
|
236
|
+
/**
|
|
237
|
+
* @generated from enum value: HPKE_SUITE_UNSPECIFIED = 0;
|
|
238
|
+
*/
|
|
239
|
+
HpkeSuite[HpkeSuite["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
240
|
+
/**
|
|
241
|
+
* @generated from enum value: HPKE_SUITE_DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM = 1;
|
|
242
|
+
*/
|
|
243
|
+
HpkeSuite[HpkeSuite["DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM"] = 1] = "DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM";
|
|
244
|
+
/**
|
|
245
|
+
* @generated from enum value: HPKE_SUITE_DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305 = 2;
|
|
246
|
+
*/
|
|
247
|
+
HpkeSuite[HpkeSuite["DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305"] = 2] = "DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305";
|
|
248
|
+
})(HpkeSuite || (HpkeSuite = {}));
|
|
249
|
+
/**
|
|
250
|
+
* Describes the enum reallyme.crypto.v1.HpkeSuite.
|
|
251
|
+
*/
|
|
252
|
+
export const HpkeSuiteSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 4);
|
|
253
|
+
/**
|
|
254
|
+
* AeadAlgorithm identifies authenticated-encryption suites.
|
|
255
|
+
*
|
|
256
|
+
* @generated from enum reallyme.crypto.v1.AeadAlgorithm
|
|
257
|
+
*/
|
|
258
|
+
export var AeadAlgorithm;
|
|
259
|
+
(function (AeadAlgorithm) {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from enum value: AEAD_ALGORITHM_UNSPECIFIED = 0;
|
|
262
|
+
*/
|
|
263
|
+
AeadAlgorithm[AeadAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum value: AEAD_ALGORITHM_AES_256_GCM = 1;
|
|
266
|
+
*/
|
|
267
|
+
AeadAlgorithm[AeadAlgorithm["AES_256_GCM"] = 1] = "AES_256_GCM";
|
|
268
|
+
/**
|
|
269
|
+
* @generated from enum value: AEAD_ALGORITHM_AES_256_GCM_SIV = 2;
|
|
270
|
+
*/
|
|
271
|
+
AeadAlgorithm[AeadAlgorithm["AES_256_GCM_SIV"] = 2] = "AES_256_GCM_SIV";
|
|
272
|
+
/**
|
|
273
|
+
* @generated from enum value: AEAD_ALGORITHM_CHACHA20_POLY1305 = 3;
|
|
274
|
+
*/
|
|
275
|
+
AeadAlgorithm[AeadAlgorithm["CHACHA20_POLY1305"] = 3] = "CHACHA20_POLY1305";
|
|
276
|
+
/**
|
|
277
|
+
* @generated from enum value: AEAD_ALGORITHM_XCHACHA20_POLY1305 = 4;
|
|
278
|
+
*/
|
|
279
|
+
AeadAlgorithm[AeadAlgorithm["XCHACHA20_POLY1305"] = 4] = "XCHACHA20_POLY1305";
|
|
280
|
+
})(AeadAlgorithm || (AeadAlgorithm = {}));
|
|
281
|
+
/**
|
|
282
|
+
* Describes the enum reallyme.crypto.v1.AeadAlgorithm.
|
|
283
|
+
*/
|
|
284
|
+
export const AeadAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 5);
|
|
285
|
+
/**
|
|
286
|
+
* HashAlgorithm identifies digest algorithms exposed by the hash primitives.
|
|
287
|
+
*
|
|
288
|
+
* @generated from enum reallyme.crypto.v1.HashAlgorithm
|
|
289
|
+
*/
|
|
290
|
+
export var HashAlgorithm;
|
|
291
|
+
(function (HashAlgorithm) {
|
|
292
|
+
/**
|
|
293
|
+
* @generated from enum value: HASH_ALGORITHM_UNSPECIFIED = 0;
|
|
294
|
+
*/
|
|
295
|
+
HashAlgorithm[HashAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
296
|
+
/**
|
|
297
|
+
* @generated from enum value: HASH_ALGORITHM_SHA2_256 = 1;
|
|
298
|
+
*/
|
|
299
|
+
HashAlgorithm[HashAlgorithm["SHA2_256"] = 1] = "SHA2_256";
|
|
300
|
+
/**
|
|
301
|
+
* @generated from enum value: HASH_ALGORITHM_SHA2_384 = 2;
|
|
302
|
+
*/
|
|
303
|
+
HashAlgorithm[HashAlgorithm["SHA2_384"] = 2] = "SHA2_384";
|
|
304
|
+
/**
|
|
305
|
+
* @generated from enum value: HASH_ALGORITHM_SHA2_512 = 3;
|
|
306
|
+
*/
|
|
307
|
+
HashAlgorithm[HashAlgorithm["SHA2_512"] = 3] = "SHA2_512";
|
|
308
|
+
/**
|
|
309
|
+
* @generated from enum value: HASH_ALGORITHM_SHA3_224 = 4;
|
|
310
|
+
*/
|
|
311
|
+
HashAlgorithm[HashAlgorithm["SHA3_224"] = 4] = "SHA3_224";
|
|
312
|
+
/**
|
|
313
|
+
* @generated from enum value: HASH_ALGORITHM_SHA3_256 = 5;
|
|
314
|
+
*/
|
|
315
|
+
HashAlgorithm[HashAlgorithm["SHA3_256"] = 5] = "SHA3_256";
|
|
316
|
+
/**
|
|
317
|
+
* @generated from enum value: HASH_ALGORITHM_SHA3_384 = 6;
|
|
318
|
+
*/
|
|
319
|
+
HashAlgorithm[HashAlgorithm["SHA3_384"] = 6] = "SHA3_384";
|
|
320
|
+
/**
|
|
321
|
+
* @generated from enum value: HASH_ALGORITHM_SHA3_512 = 7;
|
|
322
|
+
*/
|
|
323
|
+
HashAlgorithm[HashAlgorithm["SHA3_512"] = 7] = "SHA3_512";
|
|
324
|
+
})(HashAlgorithm || (HashAlgorithm = {}));
|
|
325
|
+
/**
|
|
326
|
+
* Describes the enum reallyme.crypto.v1.HashAlgorithm.
|
|
327
|
+
*/
|
|
328
|
+
export const HashAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 6);
|
|
329
|
+
/**
|
|
330
|
+
* MacAlgorithm identifies message-authentication-code suites.
|
|
331
|
+
*
|
|
332
|
+
* @generated from enum reallyme.crypto.v1.MacAlgorithm
|
|
333
|
+
*/
|
|
334
|
+
export var MacAlgorithm;
|
|
335
|
+
(function (MacAlgorithm) {
|
|
336
|
+
/**
|
|
337
|
+
* @generated from enum value: MAC_ALGORITHM_UNSPECIFIED = 0;
|
|
338
|
+
*/
|
|
339
|
+
MacAlgorithm[MacAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
340
|
+
/**
|
|
341
|
+
* @generated from enum value: MAC_ALGORITHM_HMAC_SHA256 = 1;
|
|
342
|
+
*/
|
|
343
|
+
MacAlgorithm[MacAlgorithm["HMAC_SHA256"] = 1] = "HMAC_SHA256";
|
|
344
|
+
/**
|
|
345
|
+
* @generated from enum value: MAC_ALGORITHM_HMAC_SHA512 = 2;
|
|
346
|
+
*/
|
|
347
|
+
MacAlgorithm[MacAlgorithm["HMAC_SHA512"] = 2] = "HMAC_SHA512";
|
|
348
|
+
})(MacAlgorithm || (MacAlgorithm = {}));
|
|
349
|
+
/**
|
|
350
|
+
* Describes the enum reallyme.crypto.v1.MacAlgorithm.
|
|
351
|
+
*/
|
|
352
|
+
export const MacAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 7);
|
|
353
|
+
/**
|
|
354
|
+
* KdfAlgorithm identifies key-derivation functions. PBKDF2 values are retained
|
|
355
|
+
* for legacy interoperability; new password storage should prefer Argon2id.
|
|
356
|
+
*
|
|
357
|
+
* @generated from enum reallyme.crypto.v1.KdfAlgorithm
|
|
358
|
+
*/
|
|
359
|
+
export var KdfAlgorithm;
|
|
360
|
+
(function (KdfAlgorithm) {
|
|
361
|
+
/**
|
|
362
|
+
* @generated from enum value: KDF_ALGORITHM_UNSPECIFIED = 0;
|
|
363
|
+
*/
|
|
364
|
+
KdfAlgorithm[KdfAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
365
|
+
/**
|
|
366
|
+
* @generated from enum value: KDF_ALGORITHM_HKDF_SHA256 = 1;
|
|
367
|
+
*/
|
|
368
|
+
KdfAlgorithm[KdfAlgorithm["HKDF_SHA256"] = 1] = "HKDF_SHA256";
|
|
369
|
+
/**
|
|
370
|
+
* @generated from enum value: KDF_ALGORITHM_ARGON2ID = 2;
|
|
371
|
+
*/
|
|
372
|
+
KdfAlgorithm[KdfAlgorithm["ARGON2ID"] = 2] = "ARGON2ID";
|
|
373
|
+
/**
|
|
374
|
+
* @generated from enum value: KDF_ALGORITHM_PBKDF2_HMAC_SHA256 = 3;
|
|
375
|
+
*/
|
|
376
|
+
KdfAlgorithm[KdfAlgorithm["PBKDF2_HMAC_SHA256"] = 3] = "PBKDF2_HMAC_SHA256";
|
|
377
|
+
/**
|
|
378
|
+
* @generated from enum value: KDF_ALGORITHM_PBKDF2_HMAC_SHA512 = 4;
|
|
379
|
+
*/
|
|
380
|
+
KdfAlgorithm[KdfAlgorithm["PBKDF2_HMAC_SHA512"] = 4] = "PBKDF2_HMAC_SHA512";
|
|
381
|
+
})(KdfAlgorithm || (KdfAlgorithm = {}));
|
|
382
|
+
/**
|
|
383
|
+
* Describes the enum reallyme.crypto.v1.KdfAlgorithm.
|
|
384
|
+
*/
|
|
385
|
+
export const KdfAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 8);
|
|
386
|
+
/**
|
|
387
|
+
* KeyWrapAlgorithm identifies key-wrapping algorithms.
|
|
388
|
+
*
|
|
389
|
+
* @generated from enum reallyme.crypto.v1.KeyWrapAlgorithm
|
|
390
|
+
*/
|
|
391
|
+
export var KeyWrapAlgorithm;
|
|
392
|
+
(function (KeyWrapAlgorithm) {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from enum value: KEY_WRAP_ALGORITHM_UNSPECIFIED = 0;
|
|
395
|
+
*/
|
|
396
|
+
KeyWrapAlgorithm[KeyWrapAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
397
|
+
/**
|
|
398
|
+
* @generated from enum value: KEY_WRAP_ALGORITHM_AES_256_KW = 1;
|
|
399
|
+
*/
|
|
400
|
+
KeyWrapAlgorithm[KeyWrapAlgorithm["AES_256_KW"] = 1] = "AES_256_KW";
|
|
401
|
+
})(KeyWrapAlgorithm || (KeyWrapAlgorithm = {}));
|
|
402
|
+
/**
|
|
403
|
+
* Describes the enum reallyme.crypto.v1.KeyWrapAlgorithm.
|
|
404
|
+
*/
|
|
405
|
+
export const KeyWrapAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 9);
|
|
406
|
+
/**
|
|
407
|
+
* MulticodecKeyAlgorithm identifies table-backed key codecs that ReallyMe
|
|
408
|
+
* recognizes. These are codec identifiers, not permission to expose private key
|
|
409
|
+
* material in protobuf payloads.
|
|
410
|
+
*
|
|
411
|
+
* @generated from enum reallyme.crypto.v1.MulticodecKeyAlgorithm
|
|
412
|
+
*/
|
|
413
|
+
export var MulticodecKeyAlgorithm;
|
|
414
|
+
(function (MulticodecKeyAlgorithm) {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_UNSPECIFIED = 0;
|
|
417
|
+
*/
|
|
418
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
419
|
+
/**
|
|
420
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ED25519_PUB = 1;
|
|
421
|
+
*/
|
|
422
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ED25519_PUB"] = 1] = "ED25519_PUB";
|
|
423
|
+
/**
|
|
424
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_X25519_PUB = 2;
|
|
425
|
+
*/
|
|
426
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["X25519_PUB"] = 2] = "X25519_PUB";
|
|
427
|
+
/**
|
|
428
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_SECP256K1_PUB = 3;
|
|
429
|
+
*/
|
|
430
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["SECP256K1_PUB"] = 3] = "SECP256K1_PUB";
|
|
431
|
+
/**
|
|
432
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P256_PUB = 4;
|
|
433
|
+
*/
|
|
434
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P256_PUB"] = 4] = "P256_PUB";
|
|
435
|
+
/**
|
|
436
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P384_PUB = 5;
|
|
437
|
+
*/
|
|
438
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P384_PUB"] = 5] = "P384_PUB";
|
|
439
|
+
/**
|
|
440
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P521_PUB = 6;
|
|
441
|
+
*/
|
|
442
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P521_PUB"] = 6] = "P521_PUB";
|
|
443
|
+
/**
|
|
444
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ED448_PUB = 7;
|
|
445
|
+
*/
|
|
446
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ED448_PUB"] = 7] = "ED448_PUB";
|
|
447
|
+
/**
|
|
448
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_RSA_PUB = 8;
|
|
449
|
+
*/
|
|
450
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["RSA_PUB"] = 8] = "RSA_PUB";
|
|
451
|
+
/**
|
|
452
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_512_PUB = 9;
|
|
453
|
+
*/
|
|
454
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_512_PUB"] = 9] = "ML_KEM_512_PUB";
|
|
455
|
+
/**
|
|
456
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_768_PUB = 10;
|
|
457
|
+
*/
|
|
458
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_768_PUB"] = 10] = "ML_KEM_768_PUB";
|
|
459
|
+
/**
|
|
460
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_1024_PUB = 11;
|
|
461
|
+
*/
|
|
462
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_1024_PUB"] = 11] = "ML_KEM_1024_PUB";
|
|
463
|
+
/**
|
|
464
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_DSA_44_PUB = 12;
|
|
465
|
+
*/
|
|
466
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_DSA_44_PUB"] = 12] = "ML_DSA_44_PUB";
|
|
467
|
+
/**
|
|
468
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_DSA_65_PUB = 13;
|
|
469
|
+
*/
|
|
470
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_DSA_65_PUB"] = 13] = "ML_DSA_65_PUB";
|
|
471
|
+
/**
|
|
472
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_DSA_87_PUB = 14;
|
|
473
|
+
*/
|
|
474
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_DSA_87_PUB"] = 14] = "ML_DSA_87_PUB";
|
|
475
|
+
/**
|
|
476
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ED25519_PRIV = 15;
|
|
477
|
+
*/
|
|
478
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ED25519_PRIV"] = 15] = "ED25519_PRIV";
|
|
479
|
+
/**
|
|
480
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_X25519_PRIV = 16;
|
|
481
|
+
*/
|
|
482
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["X25519_PRIV"] = 16] = "X25519_PRIV";
|
|
483
|
+
/**
|
|
484
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_SECP256K1_PRIV = 17;
|
|
485
|
+
*/
|
|
486
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["SECP256K1_PRIV"] = 17] = "SECP256K1_PRIV";
|
|
487
|
+
/**
|
|
488
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P256_PRIV = 18;
|
|
489
|
+
*/
|
|
490
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P256_PRIV"] = 18] = "P256_PRIV";
|
|
491
|
+
/**
|
|
492
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P384_PRIV = 19;
|
|
493
|
+
*/
|
|
494
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P384_PRIV"] = 19] = "P384_PRIV";
|
|
495
|
+
/**
|
|
496
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_P521_PRIV = 20;
|
|
497
|
+
*/
|
|
498
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["P521_PRIV"] = 20] = "P521_PRIV";
|
|
499
|
+
/**
|
|
500
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ED448_PRIV = 21;
|
|
501
|
+
*/
|
|
502
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ED448_PRIV"] = 21] = "ED448_PRIV";
|
|
503
|
+
/**
|
|
504
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_RSA_PRIV = 22;
|
|
505
|
+
*/
|
|
506
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["RSA_PRIV"] = 22] = "RSA_PRIV";
|
|
507
|
+
/**
|
|
508
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_512_PRIV = 23;
|
|
509
|
+
*/
|
|
510
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_512_PRIV"] = 23] = "ML_KEM_512_PRIV";
|
|
511
|
+
/**
|
|
512
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_768_PRIV = 24;
|
|
513
|
+
*/
|
|
514
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_768_PRIV"] = 24] = "ML_KEM_768_PRIV";
|
|
515
|
+
/**
|
|
516
|
+
* @generated from enum value: MULTICODEC_KEY_ALGORITHM_ML_KEM_1024_PRIV = 25;
|
|
517
|
+
*/
|
|
518
|
+
MulticodecKeyAlgorithm[MulticodecKeyAlgorithm["ML_KEM_1024_PRIV"] = 25] = "ML_KEM_1024_PRIV";
|
|
519
|
+
})(MulticodecKeyAlgorithm || (MulticodecKeyAlgorithm = {}));
|
|
520
|
+
/**
|
|
521
|
+
* Describes the enum reallyme.crypto.v1.MulticodecKeyAlgorithm.
|
|
522
|
+
*/
|
|
523
|
+
export const MulticodecKeyAlgorithmSchema = /*@__PURE__*/ enumDesc(file_reallyme_crypto_v1_crypto, 10);
|
package/dist/proto.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReallyMeAeadAlgorithm, ReallyMeHashAlgorithm, ReallyMeHpkeSuite, ReallyMeKdfAlgorithm, ReallyMeKemAlgorithm, ReallyMeKeyAgreementAlgorithm, ReallyMeKeyWrapAlgorithm, ReallyMeMacAlgorithm, ReallyMeSignatureAlgorithm } from "./algorithms.js";
|
|
2
|
+
export { AeadAlgorithm, AeadAlgorithmSchema, CryptoAlgorithmFamily, CryptoAlgorithmIdentifierSchema, CryptoAlgorithmFamilySchema, HashAlgorithm, HashAlgorithmSchema, HpkeSuite, HpkeSuiteSchema, JsonWebKeySchema, JsonWebKeySetSchema, KdfAlgorithm, KdfAlgorithmSchema, KemAlgorithm, KemAlgorithmSchema, KeyAgreementAlgorithm, KeyAgreementAlgorithmSchema, KeyWrapAlgorithm, KeyWrapAlgorithmSchema, MacAlgorithm, MacAlgorithmSchema, MulticodecKeyAlgorithm, MulticodecKeyAlgorithmSchema, SignatureAlgorithm, SignatureAlgorithmSchema, file_reallyme_crypto_v1_crypto, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
|
|
3
|
+
export type { CryptoAlgorithmIdentifier, JsonWebKey, JsonWebKeySet, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
|
|
4
|
+
import { AeadAlgorithm, HashAlgorithm, HpkeSuite, KdfAlgorithm, KemAlgorithm, KeyAgreementAlgorithm, KeyWrapAlgorithm, MacAlgorithm, MulticodecKeyAlgorithm, SignatureAlgorithm } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
|
|
5
|
+
export type ReallyMeMulticodecKeyAlgorithm = "ed25519-pub" | "x25519-pub" | "secp256k1-pub" | "p256-pub" | "p384-pub" | "p521-pub" | "ed448-pub" | "rsa-pub" | "mlkem-512-pub" | "mlkem-768-pub" | "mlkem-1024-pub" | "mldsa-44-pub" | "mldsa-65-pub" | "mldsa-87-pub";
|
|
6
|
+
export declare const signatureAlgorithmFromProto: (value: SignatureAlgorithm) => ReallyMeSignatureAlgorithm;
|
|
7
|
+
export declare const signatureAlgorithmToProto: (value: ReallyMeSignatureAlgorithm) => SignatureAlgorithm;
|
|
8
|
+
export declare const hashAlgorithmFromProto: (value: HashAlgorithm) => ReallyMeHashAlgorithm;
|
|
9
|
+
export declare const hashAlgorithmToProto: (value: ReallyMeHashAlgorithm) => HashAlgorithm;
|
|
10
|
+
export declare const aeadAlgorithmFromProto: (value: AeadAlgorithm) => ReallyMeAeadAlgorithm;
|
|
11
|
+
export declare const aeadAlgorithmToProto: (value: ReallyMeAeadAlgorithm) => AeadAlgorithm;
|
|
12
|
+
export declare const kemAlgorithmFromProto: (value: KemAlgorithm) => ReallyMeKemAlgorithm;
|
|
13
|
+
export declare const kemAlgorithmToProto: (value: ReallyMeKemAlgorithm) => KemAlgorithm;
|
|
14
|
+
export declare const keyAgreementAlgorithmFromProto: (value: KeyAgreementAlgorithm) => ReallyMeKeyAgreementAlgorithm;
|
|
15
|
+
export declare const keyAgreementAlgorithmToProto: (value: ReallyMeKeyAgreementAlgorithm) => KeyAgreementAlgorithm;
|
|
16
|
+
export declare const macAlgorithmFromProto: (value: MacAlgorithm) => ReallyMeMacAlgorithm;
|
|
17
|
+
export declare const macAlgorithmToProto: (value: ReallyMeMacAlgorithm) => MacAlgorithm;
|
|
18
|
+
export declare const kdfAlgorithmFromProto: (value: KdfAlgorithm) => ReallyMeKdfAlgorithm;
|
|
19
|
+
export declare const kdfAlgorithmToProto: (value: ReallyMeKdfAlgorithm) => KdfAlgorithm;
|
|
20
|
+
export declare const keyWrapAlgorithmFromProto: (value: KeyWrapAlgorithm) => ReallyMeKeyWrapAlgorithm;
|
|
21
|
+
export declare const keyWrapAlgorithmToProto: (value: ReallyMeKeyWrapAlgorithm) => KeyWrapAlgorithm;
|
|
22
|
+
export declare const hpkeSuiteFromProto: (value: HpkeSuite) => ReallyMeHpkeSuite;
|
|
23
|
+
export declare const hpkeSuiteToProto: (value: ReallyMeHpkeSuite) => HpkeSuite;
|
|
24
|
+
export declare const multicodecKeyAlgorithmFromProto: (value: MulticodecKeyAlgorithm) => ReallyMeMulticodecKeyAlgorithm;
|
|
25
|
+
export declare const multicodecKeyAlgorithmToProto: (value: ReallyMeMulticodecKeyAlgorithm) => MulticodecKeyAlgorithm;
|