@reallyme/crypto 0.3.16 → 0.4.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.
Files changed (63) hide show
  1. package/LICENSE +1 -1
  2. package/dist/aead.js +1 -1
  3. package/dist/aesKw.js +1 -1
  4. package/dist/algorithms.js +1 -1
  5. package/dist/argon2id.js +1 -1
  6. package/dist/bip340Schnorr.js +1 -1
  7. package/dist/cryptoFacade.js +1 -1
  8. package/dist/cryptoFacadeAsymmetric.js +1 -1
  9. package/dist/cryptoFacadeSymmetric.js +1 -1
  10. package/dist/digest.js +1 -1
  11. package/dist/ed25519.js +1 -1
  12. package/dist/encodeEcdsaDer.js +1 -1
  13. package/dist/errors.js +1 -1
  14. package/dist/hkdf.js +1 -1
  15. package/dist/hmac.js +1 -1
  16. package/dist/hpke.js +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/jwaConcatKdf.js +1 -1
  19. package/dist/jwk.js +1 -1
  20. package/dist/kmac.js +1 -1
  21. package/dist/memory.js +1 -1
  22. package/dist/mlDsa.js +1 -1
  23. package/dist/mlKem.js +1 -1
  24. package/dist/operationResponse.js +1 -1
  25. package/dist/p256Ecdh.js +1 -1
  26. package/dist/p256Ecdsa.js +1 -1
  27. package/dist/p384Ecdh.js +1 -1
  28. package/dist/p384Ecdsa.js +1 -1
  29. package/dist/p521Ecdh.js +1 -1
  30. package/dist/p521Ecdsa.js +1 -1
  31. package/dist/pbkdf2.js +1 -1
  32. package/dist/proto/generated/reallyme/crypto/v1/crypto_pb.d.ts +4346 -1113
  33. package/dist/proto/generated/reallyme/crypto/v1/crypto_pb.js +1058 -99
  34. package/dist/proto/generated/reallyme/crypto/v1/native_formats_pb.d.ts +101 -0
  35. package/dist/proto/generated/reallyme/crypto/v1/native_formats_pb.js +106 -0
  36. package/dist/proto/generated/reallyme/crypto/v1/native_options_pb.d.ts +112 -0
  37. package/dist/proto/generated/reallyme/crypto/v1/native_options_pb.js +77 -0
  38. package/dist/proto/generated/reallyme/crypto/v1/native_primitives_pb.d.ts +87 -0
  39. package/dist/proto/generated/reallyme/crypto/v1/native_primitives_pb.js +93 -0
  40. package/dist/proto/generated/reallyme/crypto/v1/native_protocols_pb.d.ts +30 -0
  41. package/dist/proto/generated/reallyme/crypto/v1/native_protocols_pb.js +34 -0
  42. package/dist/proto/generated/reallyme/crypto/v1/policy_pb.d.ts +964 -0
  43. package/dist/proto/generated/reallyme/crypto/v1/policy_pb.js +925 -0
  44. package/dist/proto.js +1 -1
  45. package/dist/protoAlgorithms.js +1 -1
  46. package/dist/protoErrors.js +54 -181
  47. package/dist/protoIdentifiers.js +1 -1
  48. package/dist/protoJwk.js +1 -1
  49. package/dist/protoValues.js +1 -1
  50. package/dist/providerCatalog.js +1 -1
  51. package/dist/rsa.js +1 -1
  52. package/dist/secp256k1.js +1 -1
  53. package/dist/slhDsa.js +1 -1
  54. package/dist/validateBytes.js +1 -1
  55. package/dist/verifyBundledWasmModule.js +1 -1
  56. package/dist/wasm/LICENSE +1 -1
  57. package/dist/wasm/reallyme_crypto_wasm.js +4 -0
  58. package/dist/wasm/reallyme_crypto_wasm_bg.wasm +0 -0
  59. package/dist/wasmModuleTypes.js +1 -1
  60. package/dist/wasmProvider.js +1 -1
  61. package/dist/x25519.js +1 -1
  62. package/dist/xWing.js +1 -1
  63. package/package.json +3 -3
@@ -0,0 +1,964 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file reallyme/crypto/v1/policy.proto.
5
+ */
6
+ export declare const file_reallyme_crypto_v1_policy: GenFile;
7
+ /**
8
+ * MaterialPolicy reports the complete ownership contract for one buffer.
9
+ * Receiving or editing this record does not authorize a change to that contract.
10
+ *
11
+ * @generated from message reallyme.crypto.v1.MaterialPolicy
12
+ */
13
+ export type MaterialPolicy = Message<"reallyme.crypto.v1.MaterialPolicy"> & {
14
+ /**
15
+ * @generated from field: reallyme.crypto.v1.BufferOwner owner = 1;
16
+ */
17
+ owner: BufferOwner;
18
+ /**
19
+ * @generated from field: reallyme.crypto.v1.SecretSensitivity sensitivity = 2;
20
+ */
21
+ sensitivity: SecretSensitivity;
22
+ /**
23
+ * @generated from field: reallyme.crypto.v1.RetentionPolicy retention = 3;
24
+ */
25
+ retention: RetentionPolicy;
26
+ /**
27
+ * @generated from field: reallyme.crypto.v1.ZeroizationPolicy zeroization = 4;
28
+ */
29
+ zeroization: ZeroizationPolicy;
30
+ /**
31
+ * @generated from field: reallyme.crypto.v1.ExportPolicy export = 5;
32
+ */
33
+ export: ExportPolicy;
34
+ /**
35
+ * @generated from field: reallyme.crypto.v1.DestructionPolicy destruction = 6;
36
+ */
37
+ destruction: DestructionPolicy;
38
+ };
39
+ /**
40
+ * Describes the message reallyme.crypto.v1.MaterialPolicy.
41
+ * Use `create(MaterialPolicySchema)` to create a new message.
42
+ */
43
+ export declare const MaterialPolicySchema: GenMessage<MaterialPolicy>;
44
+ /**
45
+ * OperationSecretMaterialPolicy reports the complete policy computed by the
46
+ * semantic operation. Every nested record is required in a produced result.
47
+ *
48
+ * @generated from message reallyme.crypto.v1.OperationSecretMaterialPolicy
49
+ */
50
+ export type OperationSecretMaterialPolicy = Message<"reallyme.crypto.v1.OperationSecretMaterialPolicy"> & {
51
+ /**
52
+ * @generated from field: reallyme.crypto.v1.MaterialPolicy input = 1;
53
+ */
54
+ input?: MaterialPolicy | undefined;
55
+ /**
56
+ * @generated from field: reallyme.crypto.v1.MaterialPolicy output = 2;
57
+ */
58
+ output?: MaterialPolicy | undefined;
59
+ /**
60
+ * @generated from field: reallyme.crypto.v1.MaterialPolicy request_wire = 3;
61
+ */
62
+ requestWire?: MaterialPolicy | undefined;
63
+ /**
64
+ * @generated from field: reallyme.crypto.v1.MaterialPolicy response_wire = 4;
65
+ */
66
+ responseWire?: MaterialPolicy | undefined;
67
+ /**
68
+ * @generated from field: reallyme.crypto.v1.OutputMaterial output_material = 5;
69
+ */
70
+ outputMaterial: OutputMaterial;
71
+ };
72
+ /**
73
+ * Describes the message reallyme.crypto.v1.OperationSecretMaterialPolicy.
74
+ * Use `create(OperationSecretMaterialPolicySchema)` to create a new message.
75
+ */
76
+ export declare const OperationSecretMaterialPolicySchema: GenMessage<OperationSecretMaterialPolicy>;
77
+ /**
78
+ * Operation requested from the dispatch provider. Key lifecycle uses 100-199, signatures
79
+ * 200-299, agreement 300-399 and KEM 400-499.
80
+ *
81
+ * @generated from enum reallyme.crypto.v1.ProviderOperation
82
+ */
83
+ export declare enum ProviderOperation {
84
+ /**
85
+ * @generated from enum value: PROVIDER_OPERATION_UNSPECIFIED = 0;
86
+ */
87
+ UNSPECIFIED = 0,
88
+ /**
89
+ * Generate a fresh raw keypair.
90
+ *
91
+ * @generated from enum value: PROVIDER_OPERATION_GENERATE_KEY_PAIR = 100;
92
+ */
93
+ GENERATE_KEY_PAIR = 100,
94
+ /**
95
+ * Reconstruct a keypair from caller-owned secret material.
96
+ *
97
+ * @generated from enum value: PROVIDER_OPERATION_DERIVE_KEY_PAIR = 110;
98
+ */
99
+ DERIVE_KEY_PAIR = 110,
100
+ /**
101
+ * Produce a detached signature.
102
+ *
103
+ * @generated from enum value: PROVIDER_OPERATION_SIGN = 200;
104
+ */
105
+ SIGN = 200,
106
+ /**
107
+ * Verify a detached signature.
108
+ *
109
+ * @generated from enum value: PROVIDER_OPERATION_VERIFY = 210;
110
+ */
111
+ VERIFY = 210,
112
+ /**
113
+ * Derive a key-agreement shared secret.
114
+ *
115
+ * @generated from enum value: PROVIDER_OPERATION_DERIVE_SHARED_SECRET = 300;
116
+ */
117
+ DERIVE_SHARED_SECRET = 300,
118
+ /**
119
+ * Encapsulate to a KEM public key.
120
+ *
121
+ * @generated from enum value: PROVIDER_OPERATION_KEM_ENCAPSULATE = 400;
122
+ */
123
+ KEM_ENCAPSULATE = 400,
124
+ /**
125
+ * Decapsulate a KEM ciphertext.
126
+ *
127
+ * @generated from enum value: PROVIDER_OPERATION_KEM_DECAPSULATE = 410;
128
+ */
129
+ KEM_DECAPSULATE = 410
130
+ }
131
+ /**
132
+ * Describes the enum reallyme.crypto.v1.ProviderOperation.
133
+ */
134
+ export declare const ProviderOperationSchema: GenEnum<ProviderOperation>;
135
+ /**
136
+ * Implementation class considered by dispatch. Package-owned implementations use 100-199.
137
+ *
138
+ * @generated from enum reallyme.crypto.v1.ProviderKind
139
+ */
140
+ export declare enum ProviderKind {
141
+ /**
142
+ * @generated from enum value: PROVIDER_KIND_UNSPECIFIED = 0;
143
+ */
144
+ UNSPECIFIED = 0,
145
+ /**
146
+ * Package-owned Rust implementation selected by Cargo feature policy.
147
+ *
148
+ * @generated from enum value: PROVIDER_KIND_PACKAGE_OWNED_RUST = 100;
149
+ */
150
+ PACKAGE_OWNED_RUST = 100
151
+ }
152
+ /**
153
+ * Describes the enum reallyme.crypto.v1.ProviderKind.
154
+ */
155
+ export declare const ProviderKindSchema: GenEnum<ProviderKind>;
156
+ /**
157
+ * Runtime lane considered by dispatch. Native uses 100-199 and WebAssembly uses 200-299.
158
+ *
159
+ * @generated from enum reallyme.crypto.v1.ProviderLane
160
+ */
161
+ export declare enum ProviderLane {
162
+ /**
163
+ * @generated from enum value: PROVIDER_LANE_UNSPECIFIED = 0;
164
+ */
165
+ UNSPECIFIED = 0,
166
+ /**
167
+ * Native Rust target.
168
+ *
169
+ * @generated from enum value: PROVIDER_LANE_NATIVE = 100;
170
+ */
171
+ NATIVE = 100,
172
+ /**
173
+ * WebAssembly Rust target using package-owned implementations.
174
+ *
175
+ * @generated from enum value: PROVIDER_LANE_WASM = 200;
176
+ */
177
+ WASM = 200
178
+ }
179
+ /**
180
+ * Describes the enum reallyme.crypto.v1.ProviderLane.
181
+ */
182
+ export declare const ProviderLaneSchema: GenEnum<ProviderLane>;
183
+ /**
184
+ * Residency of secret key material. Process-memory custody uses 100-199.
185
+ *
186
+ * @generated from enum reallyme.crypto.v1.KeyResidency
187
+ */
188
+ export declare enum KeyResidency {
189
+ /**
190
+ * @generated from enum value: KEY_RESIDENCY_UNSPECIFIED = 0;
191
+ */
192
+ UNSPECIFIED = 0,
193
+ /**
194
+ * Secret material resides in caller or provider process memory.
195
+ *
196
+ * @generated from enum value: KEY_RESIDENCY_PROCESS_MEMORY = 100;
197
+ */
198
+ PROCESS_MEMORY = 100
199
+ }
200
+ /**
201
+ * Describes the enum reallyme.crypto.v1.KeyResidency.
202
+ */
203
+ export declare const KeyResidencySchema: GenEnum<KeyResidency>;
204
+ /**
205
+ * Secret-input boundary. No-secret, borrowed and newly owned material use 100-, 200- and
206
+ * 300-series values respectively.
207
+ *
208
+ * @generated from enum reallyme.crypto.v1.KeyCopyBoundary
209
+ */
210
+ export declare enum KeyCopyBoundary {
211
+ /**
212
+ * @generated from enum value: KEY_COPY_BOUNDARY_UNSPECIFIED = 0;
213
+ */
214
+ UNSPECIFIED = 0,
215
+ /**
216
+ * The operation has no secret-key input.
217
+ *
218
+ * @generated from enum value: KEY_COPY_BOUNDARY_NO_SECRET_INPUT = 100;
219
+ */
220
+ NO_SECRET_INPUT = 100,
221
+ /**
222
+ * The provider borrows caller-owned secret bytes for one call.
223
+ *
224
+ * @generated from enum value: KEY_COPY_BOUNDARY_BORROWED_CALLER_SECRET = 200;
225
+ */
226
+ BORROWED_CALLER_SECRET = 200,
227
+ /**
228
+ * The provider creates a new secret owner for the result.
229
+ *
230
+ * @generated from enum value: KEY_COPY_BOUNDARY_PROVIDER_CREATES_SECRET = 300;
231
+ */
232
+ PROVIDER_CREATES_SECRET = 300
233
+ }
234
+ /**
235
+ * Describes the enum reallyme.crypto.v1.KeyCopyBoundary.
236
+ */
237
+ export declare const KeyCopyBoundarySchema: GenEnum<KeyCopyBoundary>;
238
+ /**
239
+ * Provider output cleanup classification. Public and secret output use 100- and 200-series
240
+ * values respectively.
241
+ *
242
+ * @generated from enum reallyme.crypto.v1.ProviderOutputPolicy
243
+ */
244
+ export declare enum ProviderOutputPolicy {
245
+ /**
246
+ * @generated from enum value: PROVIDER_OUTPUT_POLICY_UNSPECIFIED = 0;
247
+ */
248
+ UNSPECIFIED = 0,
249
+ /**
250
+ * The result contains no secret-bearing output.
251
+ *
252
+ * @generated from enum value: PROVIDER_OUTPUT_POLICY_PUBLIC_ONLY = 100;
253
+ */
254
+ PUBLIC_ONLY = 100,
255
+ /**
256
+ * Secret output is returned in a zeroizing owner.
257
+ *
258
+ * @generated from enum value: PROVIDER_OUTPUT_POLICY_ZEROIZING_SECRET = 200;
259
+ */
260
+ ZEROIZING_SECRET = 200
261
+ }
262
+ /**
263
+ * Describes the enum reallyme.crypto.v1.ProviderOutputPolicy.
264
+ */
265
+ export declare const ProviderOutputPolicySchema: GenEnum<ProviderOutputPolicy>;
266
+ /**
267
+ * Fixed provider-policy reason. Selection uses 100-199 and rejection uses 200-299.
268
+ *
269
+ * @generated from enum reallyme.crypto.v1.ProviderPolicyReason
270
+ */
271
+ export declare enum ProviderPolicyReason {
272
+ /**
273
+ * @generated from enum value: PROVIDER_POLICY_REASON_UNSPECIFIED = 0;
274
+ */
275
+ UNSPECIFIED = 0,
276
+ /**
277
+ * The operation and algorithm are supported in the compiled lane.
278
+ *
279
+ * @generated from enum value: PROVIDER_POLICY_REASON_SELECTED_COMPILED_IMPLEMENTATION = 100;
280
+ */
281
+ SELECTED_COMPILED_IMPLEMENTATION = 100,
282
+ /**
283
+ * The algorithm does not implement the requested operation family.
284
+ *
285
+ * @generated from enum value: PROVIDER_POLICY_REASON_REJECTED_OPERATION_MISMATCH = 200;
286
+ */
287
+ REJECTED_OPERATION_MISMATCH = 200,
288
+ /**
289
+ * The matching implementation was not compiled into the package.
290
+ *
291
+ * @generated from enum value: PROVIDER_POLICY_REASON_REJECTED_FEATURE_DISABLED = 210;
292
+ */
293
+ REJECTED_FEATURE_DISABLED = 210
294
+ }
295
+ /**
296
+ * Describes the enum reallyme.crypto.v1.ProviderPolicyReason.
297
+ */
298
+ export declare const ProviderPolicyReasonSchema: GenEnum<ProviderPolicyReason>;
299
+ /**
300
+ * Provider selection result. Selection uses 100-199 and rejection uses 200-299.
301
+ *
302
+ * @generated from enum reallyme.crypto.v1.ProviderDisposition
303
+ */
304
+ export declare enum ProviderDisposition {
305
+ /**
306
+ * @generated from enum value: PROVIDER_DISPOSITION_UNSPECIFIED = 0;
307
+ */
308
+ UNSPECIFIED = 0,
309
+ /**
310
+ * The provider was selected.
311
+ *
312
+ * @generated from enum value: PROVIDER_DISPOSITION_SELECTED = 100;
313
+ */
314
+ SELECTED = 100,
315
+ /**
316
+ * The provider was rejected without trying another implementation.
317
+ *
318
+ * @generated from enum value: PROVIDER_DISPOSITION_REJECTED = 200;
319
+ */
320
+ REJECTED = 200
321
+ }
322
+ /**
323
+ * Describes the enum reallyme.crypto.v1.ProviderDisposition.
324
+ */
325
+ export declare const ProviderDispositionSchema: GenEnum<ProviderDisposition>;
326
+ /**
327
+ * Explicit provider fallback policy. Prohibition uses 100-199.
328
+ *
329
+ * @generated from enum reallyme.crypto.v1.FallbackPolicy
330
+ */
331
+ export declare enum FallbackPolicy {
332
+ /**
333
+ * @generated from enum value: FALLBACK_POLICY_UNSPECIFIED = 0;
334
+ */
335
+ UNSPECIFIED = 0,
336
+ /**
337
+ * Cross-provider and cross-lane fallback is prohibited.
338
+ *
339
+ * @generated from enum value: FALLBACK_POLICY_PROHIBITED = 100;
340
+ */
341
+ PROHIBITED = 100
342
+ }
343
+ /**
344
+ * Describes the enum reallyme.crypto.v1.FallbackPolicy.
345
+ */
346
+ export declare const FallbackPolicySchema: GenEnum<FallbackPolicy>;
347
+ /**
348
+ * Layer responsible for a material buffer. Caller, operation, contract, adapter, managed-
349
+ * runtime and platform custody occupy successive 100-value families.
350
+ *
351
+ * @generated from enum reallyme.crypto.v1.BufferOwner
352
+ */
353
+ export declare enum BufferOwner {
354
+ /**
355
+ * @generated from enum value: BUFFER_OWNER_UNSPECIFIED = 0;
356
+ */
357
+ UNSPECIFIED = 0,
358
+ /**
359
+ * The caller owns borrowed input storage.
360
+ *
361
+ * @generated from enum value: BUFFER_OWNER_CALLER = 100;
362
+ */
363
+ CALLER = 100,
364
+ /**
365
+ * The semantic Rust operation owns a result or temporary.
366
+ *
367
+ * @generated from enum value: BUFFER_OWNER_OPERATION_LAYER = 200;
368
+ */
369
+ OPERATION_LAYER = 200,
370
+ /**
371
+ * The protobuf contract owns an encoded request or response.
372
+ *
373
+ * @generated from enum value: BUFFER_OWNER_OPERATION_CONTRACT = 300;
374
+ */
375
+ OPERATION_CONTRACT = 300,
376
+ /**
377
+ * A C ABI or JNI adapter owns native memory for a caller.
378
+ *
379
+ * @generated from enum value: BUFFER_OWNER_NATIVE_ADAPTER = 400;
380
+ */
381
+ NATIVE_ADAPTER = 400,
382
+ /**
383
+ * A managed runtime owns memory Rust cannot deterministically wipe.
384
+ *
385
+ * @generated from enum value: BUFFER_OWNER_MANAGED_RUNTIME = 500;
386
+ */
387
+ MANAGED_RUNTIME = 500,
388
+ /**
389
+ * A platform provider owns non-exportable key material.
390
+ *
391
+ * @generated from enum value: BUFFER_OWNER_PLATFORM_PROVIDER = 600;
392
+ */
393
+ PLATFORM_PROVIDER = 600
394
+ }
395
+ /**
396
+ * Describes the enum reallyme.crypto.v1.BufferOwner.
397
+ */
398
+ export declare const BufferOwnerSchema: GenEnum<BufferOwner>;
399
+ /**
400
+ * Material sensitivity. Public, privacy-sensitive and cryptographically secret material use
401
+ * 100-, 200- and 300-series values.
402
+ *
403
+ * @generated from enum reallyme.crypto.v1.SecretSensitivity
404
+ */
405
+ export declare enum SecretSensitivity {
406
+ /**
407
+ * @generated from enum value: SECRET_SENSITIVITY_UNSPECIFIED = 0;
408
+ */
409
+ UNSPECIFIED = 0,
410
+ /**
411
+ * Public material without secret-memory requirements.
412
+ *
413
+ * @generated from enum value: SECRET_SENSITIVITY_PUBLIC = 100;
414
+ */
415
+ PUBLIC = 100,
416
+ /**
417
+ * Privacy-sensitive material, including plaintext and ciphertext.
418
+ *
419
+ * @generated from enum value: SECRET_SENSITIVITY_SENSITIVE = 200;
420
+ */
421
+ SENSITIVE = 200,
422
+ /**
423
+ * Cryptographic secret material requiring deterministic zeroization.
424
+ *
425
+ * @generated from enum value: SECRET_SENSITIVITY_SECRET = 300;
426
+ */
427
+ SECRET = 300
428
+ }
429
+ /**
430
+ * Describes the enum reallyme.crypto.v1.SecretSensitivity.
431
+ */
432
+ export declare const SecretSensitivitySchema: GenEnum<SecretSensitivity>;
433
+ /**
434
+ * Security-relevant result class. Public, privacy-sensitive, secret and mixed results
435
+ * occupy successive 100-value families.
436
+ *
437
+ * @generated from enum reallyme.crypto.v1.OutputMaterial
438
+ */
439
+ export declare enum OutputMaterial {
440
+ /**
441
+ * @generated from enum value: OUTPUT_MATERIAL_UNSPECIFIED = 0;
442
+ */
443
+ UNSPECIFIED = 0,
444
+ /**
445
+ * Digest, signature, public key, boolean or another public result.
446
+ *
447
+ * @generated from enum value: OUTPUT_MATERIAL_PUBLIC = 100;
448
+ */
449
+ PUBLIC = 100,
450
+ /**
451
+ * Ciphertext or wrapped material that remains privacy-sensitive.
452
+ *
453
+ * @generated from enum value: OUTPUT_MATERIAL_SENSITIVE_PUBLIC = 200;
454
+ */
455
+ SENSITIVE_PUBLIC = 200,
456
+ /**
457
+ * Private key, plaintext, shared secret, derived key or seed.
458
+ *
459
+ * @generated from enum value: OUTPUT_MATERIAL_SECRET = 300;
460
+ */
461
+ SECRET = 300,
462
+ /**
463
+ * A structured result containing public and secret fields.
464
+ *
465
+ * @generated from enum value: OUTPUT_MATERIAL_MIXED = 400;
466
+ */
467
+ MIXED = 400
468
+ }
469
+ /**
470
+ * Describes the enum reallyme.crypto.v1.OutputMaterial.
471
+ */
472
+ export declare const OutputMaterialSchema: GenEnum<OutputMaterial>;
473
+ /**
474
+ * Maximum intended material lifetime. Call, temporary, result and provider lifetimes occupy
475
+ * successive 100-value families.
476
+ *
477
+ * @generated from enum reallyme.crypto.v1.RetentionPolicy
478
+ */
479
+ export declare enum RetentionPolicy {
480
+ /**
481
+ * @generated from enum value: RETENTION_POLICY_UNSPECIFIED = 0;
482
+ */
483
+ UNSPECIFIED = 0,
484
+ /**
485
+ * Borrowed only while the operation call is active.
486
+ *
487
+ * @generated from enum value: RETENTION_POLICY_BORROWED_FOR_CALL = 100;
488
+ */
489
+ BORROWED_FOR_CALL = 100,
490
+ /**
491
+ * Owned until the operation completes or returns an error.
492
+ *
493
+ * @generated from enum value: RETENTION_POLICY_OPERATION_TEMPORARY = 200;
494
+ */
495
+ OPERATION_TEMPORARY = 200,
496
+ /**
497
+ * Retained by the returned value until its owner drops it.
498
+ *
499
+ * @generated from enum value: RETENTION_POLICY_RESULT_LIFETIME = 300;
500
+ */
501
+ RESULT_LIFETIME = 300,
502
+ /**
503
+ * Retained under the provider key-lifecycle policy.
504
+ *
505
+ * @generated from enum value: RETENTION_POLICY_PROVIDER_MANAGED = 400;
506
+ */
507
+ PROVIDER_MANAGED = 400
508
+ }
509
+ /**
510
+ * Describes the enum reallyme.crypto.v1.RetentionPolicy.
511
+ */
512
+ export declare const RetentionPolicySchema: GenEnum<RetentionPolicy>;
513
+ /**
514
+ * Permitted material export. Public, protected-owner and non-exportable policies occupy
515
+ * successive 100-value families.
516
+ *
517
+ * @generated from enum reallyme.crypto.v1.ExportPolicy
518
+ */
519
+ export declare enum ExportPolicy {
520
+ /**
521
+ * @generated from enum value: EXPORT_POLICY_UNSPECIFIED = 0;
522
+ */
523
+ UNSPECIFIED = 0,
524
+ /**
525
+ * Public or ciphertext material may cross the boundary.
526
+ *
527
+ * @generated from enum value: EXPORT_POLICY_PUBLIC = 100;
528
+ */
529
+ PUBLIC = 100,
530
+ /**
531
+ * Secret bytes may cross only through an explicitly secret owner.
532
+ *
533
+ * @generated from enum value: EXPORT_POLICY_SECRET_OWNER_REQUIRED = 200;
534
+ */
535
+ SECRET_OWNER_REQUIRED = 200,
536
+ /**
537
+ * Provider-resident material must not be exported as raw bytes.
538
+ *
539
+ * @generated from enum value: EXPORT_POLICY_NON_EXPORTABLE = 300;
540
+ */
541
+ NON_EXPORTABLE = 300
542
+ }
543
+ /**
544
+ * Describes the enum reallyme.crypto.v1.ExportPolicy.
545
+ */
546
+ export declare const ExportPolicySchema: GenEnum<ExportPolicy>;
547
+ /**
548
+ * Zeroization obligation. Public, owning, caller-managed and managed-runtime obligations
549
+ * occupy successive 100-value families.
550
+ *
551
+ * @generated from enum reallyme.crypto.v1.ZeroizationPolicy
552
+ */
553
+ export declare enum ZeroizationPolicy {
554
+ /**
555
+ * @generated from enum value: ZEROIZATION_POLICY_UNSPECIFIED = 0;
556
+ */
557
+ UNSPECIFIED = 0,
558
+ /**
559
+ * Public material does not require explicit zeroization.
560
+ *
561
+ * @generated from enum value: ZEROIZATION_POLICY_NOT_REQUIRED = 100;
562
+ */
563
+ NOT_REQUIRED = 100,
564
+ /**
565
+ * The owning value clears its storage on drop.
566
+ *
567
+ * @generated from enum value: ZEROIZATION_POLICY_OWNER_ZEROIZES_ON_DROP = 200;
568
+ */
569
+ OWNER_ZEROIZES_ON_DROP = 200,
570
+ /**
571
+ * The operation borrows storage and the caller remains responsible.
572
+ *
573
+ * @generated from enum value: ZEROIZATION_POLICY_CALLER_RETAINS_RESPONSIBILITY = 300;
574
+ */
575
+ CALLER_RETAINS_RESPONSIBILITY = 300,
576
+ /**
577
+ * Managed memory must be overwritten as soon as practical.
578
+ *
579
+ * @generated from enum value: ZEROIZATION_POLICY_MANAGED_RUNTIME_BEST_EFFORT = 400;
580
+ */
581
+ MANAGED_RUNTIME_BEST_EFFORT = 400
582
+ }
583
+ /**
584
+ * Describes the enum reallyme.crypto.v1.ZeroizationPolicy.
585
+ */
586
+ export declare const ZeroizationPolicySchema: GenEnum<ZeroizationPolicy>;
587
+ /**
588
+ * Required destruction behavior. Public, owning, caller-managed and managed-runtime
589
+ * behavior occupies successive 100-value families.
590
+ *
591
+ * @generated from enum reallyme.crypto.v1.DestructionPolicy
592
+ */
593
+ export declare enum DestructionPolicy {
594
+ /**
595
+ * @generated from enum value: DESTRUCTION_POLICY_UNSPECIFIED = 0;
596
+ */
597
+ UNSPECIFIED = 0,
598
+ /**
599
+ * Public material has no explicit destruction requirement.
600
+ *
601
+ * @generated from enum value: DESTRUCTION_POLICY_NONE_REQUIRED = 100;
602
+ */
603
+ NONE_REQUIRED = 100,
604
+ /**
605
+ * The owning value zeroizes its storage when dropped.
606
+ *
607
+ * @generated from enum value: DESTRUCTION_POLICY_ZEROIZE_ON_DROP = 200;
608
+ */
609
+ ZEROIZE_ON_DROP = 200,
610
+ /**
611
+ * The caller clears borrowed storage.
612
+ *
613
+ * @generated from enum value: DESTRUCTION_POLICY_CALLER_CONTROLLED = 300;
614
+ */
615
+ CALLER_CONTROLLED = 300,
616
+ /**
617
+ * A managed runtime clears mutable storage as a best effort.
618
+ *
619
+ * @generated from enum value: DESTRUCTION_POLICY_MANAGED_RUNTIME_BEST_EFFORT = 400;
620
+ */
621
+ MANAGED_RUNTIME_BEST_EFFORT = 400
622
+ }
623
+ /**
624
+ * Describes the enum reallyme.crypto.v1.DestructionPolicy.
625
+ */
626
+ export declare const DestructionPolicySchema: GenEnum<DestructionPolicy>;
627
+ /**
628
+ * Semantic operation identity. AEAD uses 100-199, comparison 200-299, hashing 300-399, MAC
629
+ * 400-499, KDF 500-599, key wrap 600-699, signatures 700-799, agreement 800-899, KEM
630
+ * 900-999, HPKE 1000-1099, randomness 1100-1199 and key encoding 1200-1299. These values
631
+ * are not native persisted discriminants.
632
+ *
633
+ * @generated from enum reallyme.crypto.v1.SecretMaterialOperation
634
+ */
635
+ export declare enum SecretMaterialOperation {
636
+ /**
637
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_UNSPECIFIED = 0;
638
+ */
639
+ UNSPECIFIED = 0,
640
+ /**
641
+ * Authenticated encryption.
642
+ *
643
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_AEAD_SEAL = 100;
644
+ */
645
+ AEAD_SEAL = 100,
646
+ /**
647
+ * Authenticated decryption.
648
+ *
649
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_AEAD_OPEN = 110;
650
+ */
651
+ AEAD_OPEN = 110,
652
+ /**
653
+ * Constant-time comparison.
654
+ *
655
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_CONSTANT_TIME_COMPARE = 200;
656
+ */
657
+ CONSTANT_TIME_COMPARE = 200,
658
+ /**
659
+ * Cryptographic hashing.
660
+ *
661
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HASH = 300;
662
+ */
663
+ HASH = 300,
664
+ /**
665
+ * Message authentication tag generation.
666
+ *
667
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_MAC_AUTHENTICATE = 400;
668
+ */
669
+ MAC_AUTHENTICATE = 400,
670
+ /**
671
+ * Message authentication tag verification.
672
+ *
673
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_MAC_VERIFY = 410;
674
+ */
675
+ MAC_VERIFY = 410,
676
+ /**
677
+ * Password or key derivation.
678
+ *
679
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_DERIVATION = 500;
680
+ */
681
+ KEY_DERIVATION = 500,
682
+ /**
683
+ * Symmetric key wrapping.
684
+ *
685
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_WRAP = 600;
686
+ */
687
+ KEY_WRAP = 600,
688
+ /**
689
+ * Symmetric key unwrapping.
690
+ *
691
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_UNWRAP = 610;
692
+ */
693
+ KEY_UNWRAP = 610,
694
+ /**
695
+ * Signature keypair generation.
696
+ *
697
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SIGNATURE_KEY_GENERATION = 700;
698
+ */
699
+ SIGNATURE_KEY_GENERATION = 700,
700
+ /**
701
+ * Signature keypair derivation.
702
+ *
703
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SIGNATURE_KEY_DERIVATION = 710;
704
+ */
705
+ SIGNATURE_KEY_DERIVATION = 710,
706
+ /**
707
+ * Signature creation.
708
+ *
709
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SIGNATURE_SIGN = 720;
710
+ */
711
+ SIGNATURE_SIGN = 720,
712
+ /**
713
+ * Signature verification.
714
+ *
715
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SIGNATURE_VERIFY = 730;
716
+ */
717
+ SIGNATURE_VERIFY = 730,
718
+ /**
719
+ * Public signature representation validation or normalization.
720
+ *
721
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SIGNATURE_ENCODING = 740;
722
+ */
723
+ SIGNATURE_ENCODING = 740,
724
+ /**
725
+ * Key-agreement keypair generation.
726
+ *
727
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_AGREEMENT_KEY_GENERATION = 800;
728
+ */
729
+ KEY_AGREEMENT_KEY_GENERATION = 800,
730
+ /**
731
+ * Key-agreement keypair derivation.
732
+ *
733
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_AGREEMENT_KEY_DERIVATION = 810;
734
+ */
735
+ KEY_AGREEMENT_KEY_DERIVATION = 810,
736
+ /**
737
+ * Shared-secret derivation.
738
+ *
739
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEY_AGREEMENT_SHARED_SECRET = 820;
740
+ */
741
+ KEY_AGREEMENT_SHARED_SECRET = 820,
742
+ /**
743
+ * KEM keypair generation.
744
+ *
745
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEM_KEY_GENERATION = 900;
746
+ */
747
+ KEM_KEY_GENERATION = 900,
748
+ /**
749
+ * KEM keypair derivation.
750
+ *
751
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEM_KEY_DERIVATION = 910;
752
+ */
753
+ KEM_KEY_DERIVATION = 910,
754
+ /**
755
+ * KEM encapsulation.
756
+ *
757
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEM_ENCAPSULATE = 920;
758
+ */
759
+ KEM_ENCAPSULATE = 920,
760
+ /**
761
+ * KEM decapsulation.
762
+ *
763
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_KEM_DECAPSULATE = 930;
764
+ */
765
+ KEM_DECAPSULATE = 930,
766
+ /**
767
+ * HPKE keypair generation.
768
+ *
769
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_KEY_GENERATION = 1000;
770
+ */
771
+ HPKE_KEY_GENERATION = 1000,
772
+ /**
773
+ * HPKE keypair derivation.
774
+ *
775
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_KEY_DERIVATION = 1010;
776
+ */
777
+ HPKE_KEY_DERIVATION = 1010,
778
+ /**
779
+ * Establish a live non-exportable HPKE sender context.
780
+ *
781
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_SENDER_SETUP = 1020;
782
+ */
783
+ HPKE_SENDER_SETUP = 1020,
784
+ /**
785
+ * Establish a live non-exportable HPKE receiver context.
786
+ *
787
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_RECEIVER_SETUP = 1030;
788
+ */
789
+ HPKE_RECEIVER_SETUP = 1030,
790
+ /**
791
+ * HPKE sealing.
792
+ *
793
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_SEAL = 1040;
794
+ */
795
+ HPKE_SEAL = 1040,
796
+ /**
797
+ * HPKE opening.
798
+ *
799
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_OPEN = 1050;
800
+ */
801
+ HPKE_OPEN = 1050,
802
+ /**
803
+ * HPKE exporter-secret derivation.
804
+ *
805
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_HPKE_EXPORT = 1060;
806
+ */
807
+ HPKE_EXPORT = 1060,
808
+ /**
809
+ * Fill caller-owned storage with secure random bytes.
810
+ *
811
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_RANDOM_FILL = 1100;
812
+ */
813
+ RANDOM_FILL = 1100,
814
+ /**
815
+ * Generate an AEAD nonce.
816
+ *
817
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_RANDOM_NONCE = 1110;
818
+ */
819
+ RANDOM_NONCE = 1110,
820
+ /**
821
+ * Generate an Argon2 salt.
822
+ *
823
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_RANDOM_SALT = 1120;
824
+ */
825
+ RANDOM_SALT = 1120,
826
+ /**
827
+ * Public-key encoding or decoding.
828
+ *
829
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_PUBLIC_KEY_ENCODING = 1200;
830
+ */
831
+ PUBLIC_KEY_ENCODING = 1200
832
+ }
833
+ /**
834
+ * Describes the enum reallyme.crypto.v1.SecretMaterialOperation.
835
+ */
836
+ export declare const SecretMaterialOperationSchema: GenEnum<SecretMaterialOperation>;
837
+ /**
838
+ * Purpose of generated randomness. Generic output uses 100-199, nonce 200-299, salt
839
+ * 300-399, symmetric key 400-499, classical seed 500-599 and post-quantum seeds 1000-1199.
840
+ *
841
+ * @generated from enum reallyme.crypto.v1.RngOutputKind
842
+ */
843
+ export declare enum RngOutputKind {
844
+ /**
845
+ * @generated from enum value: RNG_OUTPUT_KIND_UNSPECIFIED = 0;
846
+ */
847
+ UNSPECIFIED = 0,
848
+ /**
849
+ * Generic random bytes with no fixed length.
850
+ *
851
+ * @generated from enum value: RNG_OUTPUT_KIND_GENERIC = 100;
852
+ */
853
+ GENERIC = 100,
854
+ /**
855
+ * A 12-byte AEAD nonce.
856
+ *
857
+ * @generated from enum value: RNG_OUTPUT_KIND_AEAD_NONCE_12 = 200;
858
+ */
859
+ AEAD_NONCE_12 = 200,
860
+ /**
861
+ * A 16-byte Argon2 salt.
862
+ *
863
+ * @generated from enum value: RNG_OUTPUT_KIND_ARGON2_SALT_16 = 300;
864
+ */
865
+ ARGON2_SALT_16 = 300,
866
+ /**
867
+ * A 32-byte Argon2 salt.
868
+ *
869
+ * @generated from enum value: RNG_OUTPUT_KIND_ARGON2_SALT_32 = 310;
870
+ */
871
+ ARGON2_SALT_32 = 310,
872
+ /**
873
+ * A 32-byte AES-256-GCM key.
874
+ *
875
+ * @generated from enum value: RNG_OUTPUT_KIND_AES_256_GCM_KEY = 400;
876
+ */
877
+ AES_256_GCM_KEY = 400,
878
+ /**
879
+ * A 64-byte ML-KEM-1024 seed.
880
+ *
881
+ * @generated from enum value: RNG_OUTPUT_KIND_ML_KEM_1024_SEED = 1000;
882
+ */
883
+ ML_KEM_1024_SEED = 1000,
884
+ /**
885
+ * A 32-byte ML-DSA-87 seed.
886
+ *
887
+ * @generated from enum value: RNG_OUTPUT_KIND_ML_DSA_87_SEED = 1100;
888
+ */
889
+ ML_DSA_87_SEED = 1100,
890
+ /**
891
+ * A 32-byte Ed25519 private seed.
892
+ *
893
+ * @generated from enum value: RNG_OUTPUT_KIND_ED25519_SEED = 500;
894
+ */
895
+ ED25519_SEED = 500,
896
+ /**
897
+ * One 16-byte SLH-DSA-SHA2-128s key-generation seed component.
898
+ *
899
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SHA2_128S_SEED = 1110;
900
+ */
901
+ SLH_DSA_SHA2_128S_SEED = 1110
902
+ }
903
+ /**
904
+ * Describes the enum reallyme.crypto.v1.RngOutputKind.
905
+ */
906
+ export declare const RngOutputKindSchema: GenEnum<RngOutputKind>;
907
+ /**
908
+ * Descriptive platform-key operation. Lifecycle uses 100-199, signatures 200-299, agreement
909
+ * 300-399 and attestation 400-499. This metadata cannot transfer provider custody.
910
+ *
911
+ * @generated from enum reallyme.crypto.v1.PlatformKeyOperation
912
+ */
913
+ export declare enum PlatformKeyOperation {
914
+ /**
915
+ * @generated from enum value: PLATFORM_KEY_OPERATION_UNSPECIFIED = 0;
916
+ */
917
+ UNSPECIFIED = 0,
918
+ /**
919
+ * Generate a non-exportable platform key.
920
+ *
921
+ * @generated from enum value: PLATFORM_KEY_OPERATION_GENERATE = 100;
922
+ */
923
+ GENERATE = 100,
924
+ /**
925
+ * Return the public half of an existing key.
926
+ *
927
+ * @generated from enum value: PLATFORM_KEY_OPERATION_GET_PUBLIC_KEY = 110;
928
+ */
929
+ GET_PUBLIC_KEY = 110,
930
+ /**
931
+ * Sign with an existing key.
932
+ *
933
+ * @generated from enum value: PLATFORM_KEY_OPERATION_SIGN = 200;
934
+ */
935
+ SIGN = 200,
936
+ /**
937
+ * Verify with an existing key.
938
+ *
939
+ * @generated from enum value: PLATFORM_KEY_OPERATION_VERIFY = 210;
940
+ */
941
+ VERIFY = 210,
942
+ /**
943
+ * Derive a shared secret with an existing key.
944
+ *
945
+ * @generated from enum value: PLATFORM_KEY_OPERATION_DERIVE_SHARED_SECRET = 300;
946
+ */
947
+ DERIVE_SHARED_SECRET = 300,
948
+ /**
949
+ * Delete an existing key.
950
+ *
951
+ * @generated from enum value: PLATFORM_KEY_OPERATION_DELETE = 120;
952
+ */
953
+ DELETE = 120,
954
+ /**
955
+ * Request provider attestation for an existing key.
956
+ *
957
+ * @generated from enum value: PLATFORM_KEY_OPERATION_ATTEST = 400;
958
+ */
959
+ ATTEST = 400
960
+ }
961
+ /**
962
+ * Describes the enum reallyme.crypto.v1.PlatformKeyOperation.
963
+ */
964
+ export declare const PlatformKeyOperationSchema: GenEnum<PlatformKeyOperation>;