-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenums.go
1749 lines (1616 loc) · 87.1 KB
/
enums.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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package kmip
import "github.com/ovh/kmip-go/ttlv"
//nolint:funlen // There's not cleaner way to do it
func init() {
ttlv.RegisterEnum(TagResultStatus, map[ResultStatus]string{
ResultStatusSuccess: "Success",
ResultStatusOperationFailed: "OperationFailed",
ResultStatusOperationPending: "OperationPending",
ResultStatusOperationUndone: "OperationUndone",
})
ttlv.RegisterEnum(TagResultReason, map[ResultReason]string{
// ReasonNone: "None",
ResultReasonItemNotFound: "ItemNotFound",
ResultReasonResponseTooLarge: "ResponseTooLarge",
ResultReasonAuthenticationNotSuccessful: "AuthenticationNotSuccessful",
ResultReasonInvalidMessage: "InvalidMessage",
ResultReasonOperationNotSupported: "OperationNotSupported",
ResultReasonMissingData: "MissingData",
ResultReasonInvalidField: "InvalidField",
ResultReasonFeatureNotSupported: "FeatureNotSupported",
ResultReasonOperationCanceledByRequester: "OperationCanceledByRequester",
ResultReasonCryptographicFailure: "CryptographicFailure",
ResultReasonIllegalOperation: "IllegalOperation",
ResultReasonPermissionDenied: "PermissionDenied",
ResultReasonObjectarchived: "Objectarchived",
ResultReasonIndexOutofBounds: "IndexOutofBounds",
ResultReasonApplicationNamespaceNotSupported: "ApplicationNamespaceNotSupported",
ResultReasonKeyFormatTypeNotSupported: "KeyFormatTypeNotSupported",
ResultReasonKeyCompressionTypeNotSupported: "KeyCompressionTypeNotSupported",
ResultReasonGeneralFailure: "GeneralFailure",
// KMIP 1.1.
ResultReasonEncodingOptionError: "EncodingOptionError",
// KMIP 1.2.
ResultReasonKeyValueNotPresent: "KeyValueNotPresent",
ResultReasonAttestationRequired: "AttestationRequired",
ResultReasonAttestationFailed: "AttestationFailed",
// KMIP 1.4.
ResultReasonSensitive: "Sensitive",
ResultReasonNotExtractable: "NotExtractable",
ResultReasonObjectAlreadyExists: "ObjectAlreadyExists",
})
ttlv.RegisterEnum(TagCredentialType, map[CredentialType]string{
CredentialTypeUsernameAndPassword: "UsernameAndPassword",
// KMIP 1.1.
CredentialTypeDevice: "Device",
// KMIP 1.2.
CredentialTypeAttestation: "Attestation",
})
ttlv.RegisterEnum(TagRevocationReasonCode, map[RevocationReasonCode]string{
RevocationReasonCodeUnspecified: "Unspecified",
RevocationReasonCodeKeyCompromise: "KeyCompromise",
RevocationReasonCodeCACompromise: "CACompromise",
RevocationReasonCodeAffiliationChanged: "AffiliationChanged",
RevocationReasonCodeSuperseded: "Superseded",
RevocationReasonCodeCessationOfOperation: "CessationOfOperation",
RevocationReasonCodePrivilegeWithdrawn: "PrivilegeWithdrawn",
})
ttlv.RegisterEnum(TagBatchErrorContinuationOption, map[BatchErrorContinuationOption]string{
BatchErrorContinuationOptionContinue: "Continue",
BatchErrorContinuationOptionStop: "Stop",
BatchErrorContinuationOptionUndo: "Undo",
})
ttlv.RegisterEnum(TagNameType, map[NameType]string{
NameTypeUninterpretedTextString: "UninterpretedTextString",
NameTypeUri: "Uri",
})
ttlv.RegisterEnum(TagObjectType, map[ObjectType]string{
ObjectTypeCertificate: "Certificate",
ObjectTypeSymmetricKey: "SymmetricKey",
ObjectTypePublicKey: "PublicKey",
ObjectTypePrivateKey: "PrivateKey",
ObjectTypeSplitKey: "SplitKey",
ObjectTypeTemplate: "Template",
ObjectTypeSecretData: "SecretData",
ObjectTypeOpaqueObject: "OpaqueObject",
// KMIP 1.2.
ObjectTypePGPKey: "PGPKey",
})
ttlv.RegisterEnum(TagOpaqueDataType, map[OpaqueDataType]string{})
ttlv.RegisterEnum(TagState, map[State]string{
StatePreActive: "PreActive",
StateActive: "Active",
StateDeactivated: "Deactivated",
StateCompromised: "Compromised",
StateDestroyed: "Destroyed",
StateDestroyedCompromised: "DestroyedCompromised",
})
ttlv.RegisterEnum(TagCryptographicAlgorithm, map[CryptographicAlgorithm]string{
CryptographicAlgorithmDES: "DES",
CryptographicAlgorithmTDES: "TDES",
CryptographicAlgorithmAES: "AES",
CryptographicAlgorithmRSA: "RSA",
CryptographicAlgorithmDSA: "DSA",
CryptographicAlgorithmECDSA: "ECDSA",
CryptographicAlgorithmHMACSHA1: "HMACSHA1",
CryptographicAlgorithmHMACSHA224: "HMACSHA224",
CryptographicAlgorithmHMACSHA256: "HMACSHA256",
CryptographicAlgorithmHMACSHA384: "HMACSHA384",
CryptographicAlgorithmHMACSHA512: "HMACSHA512",
CryptographicAlgorithmHMACMD5: "HMACMD5",
CryptographicAlgorithmDH: "DH",
CryptographicAlgorithmECDH: "ECDH",
CryptographicAlgorithmECMQV: "ECMQV",
CryptographicAlgorithmBlowfish: "Blowfish",
CryptographicAlgorithmCamellia: "Camellia",
CryptographicAlgorithmCAST5: "CAST5",
CryptographicAlgorithmIDEA: "IDEA",
CryptographicAlgorithmMARS: "MARS",
CryptographicAlgorithmRC2: "RC2",
CryptographicAlgorithmRC4: "RC4",
CryptographicAlgorithmRC5: "RC5",
CryptographicAlgorithmSKIPJACK: "SKIPJACK",
CryptographicAlgorithmTwofish: "Twofish",
// KMIP 1.2.
CryptographicAlgorithmEC: "EC",
// KMIP 1.3.
CryptographicAlgorithmOneTimePad: "OneTimePad",
// KMIP 1.4.
CryptographicAlgorithmChaCha20: "ChaCha20",
CryptographicAlgorithmPoly1305: "Poly1305",
CryptographicAlgorithmChaCha20Poly1305: "ChaCha20Poly1305",
CryptographicAlgorithmSHA3_224: "SHA3_224",
CryptographicAlgorithmSHA3_256: "SHA3_256",
CryptographicAlgorithmSHA3_384: "SHA3_384",
CryptographicAlgorithmSHA3_512: "SHA3_512",
CryptographicAlgorithmHMAC_SHA3_224: "HMAC_SHA3_224",
CryptographicAlgorithmHMAC_SHA3_256: "HMAC_SHA3_256",
CryptographicAlgorithmHMAC_SHA3_384: "HMAC_SHA3_384",
CryptographicAlgorithmHMAC_SHA3_512: "HMAC_SHA3_512",
CryptographicAlgorithmSHAKE_128: "SHAKE_128",
CryptographicAlgorithmSHAKE_256: "SHAKE_256",
})
ttlv.RegisterEnum(TagBlockCipherMode, map[BlockCipherMode]string{
BlockCipherModeCBC: "CBC",
BlockCipherModeECB: "ECB",
BlockCipherModePCBC: "PCBC",
BlockCipherModeCFB: "CFB",
BlockCipherModeOFB: "OFB",
BlockCipherModeCTR: "CTR",
BlockCipherModeCMAC: "CMAC",
BlockCipherModeCCM: "CCM",
BlockCipherModeGCM: "GCM",
BlockCipherModeCBCMAC: "CBCMAC",
BlockCipherModeXTS: "XTS",
BlockCipherModeAESKeyWrapPadding: "AESKeyWrapPadding",
BlockCipherModeNISTKeyWrap: "NISTKeyWrap",
BlockCipherModeX9_102AESKW: "X9_102AESKW",
BlockCipherModeX9_102TDKW: "X9_102TDKW",
BlockCipherModeX9_102AKW1: "X9_102AKW1",
BlockCipherModeX9_102AKW2: "X9_102AKW2",
// KMIP 1.4
BlockCipherModeAEAD: "AEAD",
})
ttlv.RegisterEnum(TagPaddingMethod, map[PaddingMethod]string{
PaddingMethodNone: "None",
PaddingMethodOAEP: "OAEP",
PaddingMethodPKCS5: "PKCS5",
PaddingMethodSSL3: "SSL3",
PaddingMethodZeros: "Zeros",
PaddingMethodANSIX9_23: "ANSIX9_23",
PaddingMethodISO10126: "ISO10126",
PaddingMethodPKCS1V1_5: "PKCS1V1_5",
PaddingMethodX9_31: "X9_31",
PaddingMethodPSS: "PSS",
})
ttlv.RegisterEnum(TagHashingAlgorithm, map[HashingAlgorithm]string{
HashingAlgorithmMD2: "MD2",
HashingAlgorithmMD4: "MD4",
HashingAlgorithmMD5: "MD5",
HashingAlgorithmSHA_1: "SHA_1",
HashingAlgorithmSHA_224: "SHA_224",
HashingAlgorithmSHA_256: "SHA_256",
HashingAlgorithmSHA_384: "SHA_384",
HashingAlgorithmSHA_512: "SHA_512",
HashingAlgorithmRIPEMD_160: "RIPEMD_160",
HashingAlgorithmTiger: "Tiger",
HashingAlgorithmWhirlpool: "Whirlpool",
// KMIP 1.2.
HashingAlgorithmSHA_512_224: "SHA_512_224",
HashingAlgorithmSHA_512_256: "SHA_512_256",
// KMIP 1.4.
HashingAlgorithmSHA_3_224: "SHA_3_224",
HashingAlgorithmSHA_3_256: "SHA_3_256",
HashingAlgorithmSHA_3_384: "SHA_3_384",
HashingAlgorithmSHA_3_512: "SHA_3_512",
})
ttlv.RegisterEnum(TagKeyRoleType, map[KeyRoleType]string{
KeyRoleTypeBDK: "BDK",
KeyRoleTypeCVK: "CVK",
KeyRoleTypeDEK: "DEK",
KeyRoleTypeMKAC: "MKAC",
KeyRoleTypeMKSMC: "MKSMC",
KeyRoleTypeMKSMI: "MKSMI",
KeyRoleTypeMKDAC: "MKDAC",
KeyRoleTypeMKDN: "MKDN",
KeyRoleTypeMKCP: "MKCP",
KeyRoleTypeMKOTH: "MKOTH",
KeyRoleTypeKEK: "KEK",
KeyRoleTypeMAC16609: "MAC16609",
KeyRoleTypeMAC97971: "MAC97971",
KeyRoleTypeMAC97972: "MAC97972",
KeyRoleTypeMAC97973: "MAC97973",
KeyRoleTypeMAC97974: "MAC97974",
KeyRoleTypeMAC97975: "MAC97975",
KeyRoleTypeZPK: "ZPK",
KeyRoleTypePVKIBM: "PVKIBM",
KeyRoleTypePVKPVV: "PVKPVV",
KeyRoleTypePVKOTH: "PVKOTH",
// KMIP 1.4
KeyRoleTypeDUKPT: "DUKPT",
KeyRoleTypeIV: "IV",
KeyRoleTypeTRKBK: "TRKBK",
})
ttlv.RegisterEnum(TagRecommendedCurve, map[RecommendedCurve]string{
RecommendedCurveP_192: "P_192",
RecommendedCurveK_163: "K_163",
RecommendedCurveB_163: "B_163",
RecommendedCurveP_224: "P_224",
RecommendedCurveK_233: "K_233",
RecommendedCurveB_233: "B_233",
RecommendedCurveP_256: "P_256",
RecommendedCurveK_283: "K_283",
RecommendedCurveB_283: "B_283",
RecommendedCurveP_384: "P_384",
RecommendedCurveK_409: "K_409",
RecommendedCurveB_409: "B_409",
RecommendedCurveP_521: "P_521",
RecommendedCurveK_571: "K_571",
RecommendedCurveB_571: "B_571",
RecommendedCurveSECP112R1: "SECP112R1",
RecommendedCurveSECP112R2: "SECP112R2",
RecommendedCurveSECP128R1: "SECP128R1",
RecommendedCurveSECP128R2: "SECP128R2",
RecommendedCurveSECP160K1: "SECP160K1",
RecommendedCurveSECP160R1: "SECP160R1",
RecommendedCurveSECP160R2: "SECP160R2",
RecommendedCurveSECP192K1: "SECP192K1",
RecommendedCurveSECP224K1: "SECP224K1",
RecommendedCurveSECP256K1: "SECP256K1",
RecommendedCurveSECT113R1: "SECT113R1",
RecommendedCurveSECT113R2: "SECT113R2",
RecommendedCurveSECT131R1: "SECT131R1",
RecommendedCurveSECT131R2: "SECT131R2",
RecommendedCurveSECT163R1: "SECT163R1",
RecommendedCurveSECT193R1: "SECT193R1",
RecommendedCurveSECT193R2: "SECT193R2",
RecommendedCurveSECT239K1: "SECT239K1",
RecommendedCurveANSIX9P192V2: "ANSIX9P192V2",
RecommendedCurveANSIX9P192V3: "ANSIX9P192V3",
RecommendedCurveANSIX9P239V1: "ANSIX9P239V1",
RecommendedCurveANSIX9P239V2: "ANSIX9P239V2",
RecommendedCurveANSIX9P239V3: "ANSIX9P239V3",
RecommendedCurveANSIX9C2PNB163V1: "ANSIX9C2PNB163V1",
RecommendedCurveANSIX9C2PNB163V2: "ANSIX9C2PNB163V2",
RecommendedCurveANSIX9C2PNB163V3: "ANSIX9C2PNB163V3",
RecommendedCurveANSIX9C2PNB176V1: "ANSIX9C2PNB176V1",
RecommendedCurveANSIX9C2TNB191V1: "ANSIX9C2TNB191V1",
RecommendedCurveANSIX9C2TNB191V2: "ANSIX9C2TNB191V2",
RecommendedCurveANSIX9C2TNB191V3: "ANSIX9C2TNB191V3",
RecommendedCurveANSIX9C2PNB208W1: "ANSIX9C2PNB208W1",
RecommendedCurveANSIX9C2TNB239V1: "ANSIX9C2TNB239V1",
RecommendedCurveANSIX9C2TNB239V2: "ANSIX9C2TNB239V2",
RecommendedCurveANSIX9C2TNB239V3: "ANSIX9C2TNB239V3",
RecommendedCurveANSIX9C2PNB272W1: "ANSIX9C2PNB272W1",
RecommendedCurveANSIX9C2PNB304W1: "ANSIX9C2PNB304W1",
RecommendedCurveANSIX9C2TNB359V1: "ANSIX9C2TNB359V1",
RecommendedCurveANSIX9C2PNB368W1: "ANSIX9C2PNB368W1",
RecommendedCurveANSIX9C2TNB431R1: "ANSIX9C2TNB431R1",
RecommendedCurveBRAINPOOLP160R1: "BRAINPOOLP160R1",
RecommendedCurveBRAINPOOLP160T1: "BRAINPOOLP160T1",
RecommendedCurveBRAINPOOLP192R1: "BRAINPOOLP192R1",
RecommendedCurveBRAINPOOLP192T1: "BRAINPOOLP192T1",
RecommendedCurveBRAINPOOLP224R1: "BRAINPOOLP224R1",
RecommendedCurveBRAINPOOLP224T1: "BRAINPOOLP224T1",
RecommendedCurveBRAINPOOLP256R1: "BRAINPOOLP256R1",
RecommendedCurveBRAINPOOLP256T1: "BRAINPOOLP256T1",
RecommendedCurveBRAINPOOLP320R1: "BRAINPOOLP320R1",
RecommendedCurveBRAINPOOLP320T1: "BRAINPOOLP320T1",
RecommendedCurveBRAINPOOLP384R1: "BRAINPOOLP384R1",
RecommendedCurveBRAINPOOLP384T1: "BRAINPOOLP384T1",
RecommendedCurveBRAINPOOLP512R1: "BRAINPOOLP512R1",
RecommendedCurveBRAINPOOLP512T1: "BRAINPOOLP512T1",
})
ttlv.RegisterEnum(TagSecretDataType, map[SecretDataType]string{
SecretDataTypePassword: "Password",
SecretDataTypeSeed: "Seed",
})
ttlv.RegisterEnum(TagKeyFormatType, map[KeyFormatType]string{
KeyFormatTypeRaw: "Raw",
KeyFormatTypeOpaque: "Opaque",
KeyFormatTypePKCS_1: "PKCS_1",
KeyFormatTypePKCS_8: "PKCS_8",
KeyFormatTypeX_509: "X_509",
KeyFormatTypeECPrivateKey: "ECPrivateKey",
KeyFormatTypeTransparentSymmetricKey: "TransparentSymmetricKey",
KeyFormatTypeTransparentDSAPrivateKey: "TransparentDSAPrivateKey",
KeyFormatTypeTransparentDSAPublicKey: "TransparentDSAPublicKey",
KeyFormatTypeTransparentRSAPrivateKey: "TransparentRSAPrivateKey",
KeyFormatTypeTransparentRSAPublicKey: "TransparentRSAPublicKey",
KeyFormatTypeTransparentDHPrivateKey: "TransparentDHPrivateKey",
KeyFormatTypeTransparentDHPublicKey: "TransparentDHPublicKey",
KeyFormatTypeTransparentECDSAPrivateKey: "TransparentECDSAPrivateKey",
KeyFormatTypeTransparentECDSAPublicKey: "TransparentECDSAPublicKey",
KeyFormatTypeTransparentECDHPrivateKey: "TransparentECDHPrivateKey",
KeyFormatTypeTransparentECDHPublicKey: "TransparentECDHPublicKey",
KeyFormatTypeTransparentECMQVPrivateKey: "TransparentECMQVPrivateKey",
KeyFormatTypeTransparentECMQVPublicKey: "TransparentECMQVPublicKey",
// KMIP 1.3.
KeyFormatTypeTransparentECPrivateKey: "TransparentECPrivateKey",
KeyFormatTypeTransparentECPublicKey: "TransparentECPublicKey",
// KMIP 1.4.
KeyFormatTypePKCS_12: "PKCS_12",
})
ttlv.RegisterEnum(TagKeyCompressionType, map[KeyCompressionType]string{
KeyCompressionTypeECPublicKeyTypeUncompressed: "ECPublicKeyTypeUncompressed",
KeyCompressionTypeECPublicKeyTypeX9_62CompressedPrime: "ECPublicKeyTypeX9_62CompressedPrime",
KeyCompressionTypeECPublicKeyTypeX9_62CompressedChar2: "ECPublicKeyTypeX9_62CompressedChar2",
KeyCompressionTypeECPublicKeyTypeX9_62Hybrid: "ECPublicKeyTypeX9_62Hybrid",
})
ttlv.RegisterEnum(TagWrappingMethod, map[WrappingMethod]string{
WrappingMethodEncrypt: "Encrypt",
WrappingMethodMACSign: "MACSign",
WrappingMethodEncryptThenMACSign: "EncryptThenMACSign",
WrappingMethodMACSignThenEncrypt: "MACSignThenEncrypt",
WrappingMethodTR_31: "TR_31",
})
ttlv.RegisterEnum(TagCertificateType, map[CertificateType]string{
CertificateTypeX_509: "X_509",
CertificateTypePGP: "PGP",
})
ttlv.RegisterEnum(TagLinkType, map[LinkType]string{
LinkTypeCertificateLink: "CertificateLink",
LinkTypePublicKeyLink: "PublicKeyLink",
LinkTypePrivateKeyLink: "PrivateKeyLink",
LinkTypeDerivationBaseObjectLink: "DerivationBaseObjectLink",
LinkTypeDerivedKeyLink: "DerivedKeyLink",
LinkTypeReplacementObjectLink: "ReplacementObjectLink",
LinkTypeReplacedObjectLink: "ReplacedObjectLink",
// KMIP 1.2.
LinkTypeParentLink: "ParentLink",
LinkTypeChildLink: "ChildLink",
LinkTypePreviousLink: "PreviousLink",
LinkTypeNextLink: "NextLink",
// KMIP 1.4.
LinkTypePKCS_12CertificateLink: "PKCS_12CertificateLink",
LinkTypePKCS_12PasswordLink: "PKCS_12PasswordLink",
//FIXME: This is defined in KMIP 2.0+ only.
LinkTypeWrappingKeyLink: "WrappingKeyLink",
})
ttlv.RegisterEnum(TagQueryFunction, map[QueryFunction]string{
QueryFunctionOperations: "QueryOperations",
QueryFunctionObjects: "QueryObjects",
QueryFunctionServerInformation: "QueryServerInformation",
QueryFunctionApplicationNamespaces: "QueryApplicationNamespaces",
// KMIP 1.1.
QueryFunctionExtensionList: "QueryExtensionList",
QueryFunctionExtensionMap: "QueryExtensionMap",
// KMIP 1.2.
QueryFunctionAttestationTypes: "QueryAttestationTypes",
// KMIP 1.3.
QueryFunctionRNGs: "QueryRNGs",
QueryFunctionValidations: "QueryValidations",
QueryFunctionProfiles: "QueryProfiles",
QueryFunctionCapabilities: "QueryCapabilities",
QueryFunctionClientRegistrationMethods: "QueryClientRegistrationMethods",
})
ttlv.RegisterEnum(TagUsageLimitsUnit, map[UsageLimitsUnit]string{
UsageLimitsUnitByte: "UnitByte",
UsageLimitsUnitObject: "UnitObject",
})
ttlv.RegisterEnum(TagCancellationResult, map[CancellationResult]string{
CancellationResultCanceled: "Canceled",
CancellationResultUnableToCancel: "UnableToCancel",
CancellationResultCompleted: "Completed",
CancellationResultFailed: "Failed",
CancellationResultUnavailable: "Unavailable",
})
ttlv.RegisterEnum(TagPutFunction, map[PutFunction]string{
PutFunctionNew: "New",
PutFunctionReplace: "Replace",
})
ttlv.RegisterEnum(TagCertificateRequestType, map[CertificateRequestType]string{
CertificateRequestTypeCRMF: "CRMF",
CertificateRequestTypePKCS_10: "PKCS_10",
CertificateRequestTypePEM: "PEM",
CertificateRequestTypePGP: "PGP",
})
ttlv.RegisterEnum(TagSplitKeyMethod, map[SplitKeyMethod]string{
SplitKeyMethodXOR: "XOR",
SplitKeyMethodPolynomialSharingGF216: "PolynomialSharingGF216",
SplitKeyMethodPolynomialSharingPrimeField: "PolynomialSharingPrimeField",
// KMIP 1.2.
SplitKeyMethodPolynomialSharingGF28: "PolynomialSharingGF28",
})
ttlv.RegisterEnum(TagObjectGroupMember, map[ObjectGroupMember]string{
ObjectGroupMemberFresh: "GroupMemberFresh",
ObjectGroupMemberDefault: "GroupMemberDefault",
})
ttlv.RegisterEnum(TagEncodingOption, map[EncodingOption]string{
EncodingOptionNoEncoding: "NoEncoding",
EncodingOptionTTLVEncoding: "TTLVEncoding",
})
ttlv.RegisterEnum(TagDigitalSignatureAlgorithm, map[DigitalSignatureAlgorithm]string{
DigitalSignatureAlgorithmMD2WithRSAEncryptionPKCS_1v1_5: "MD2WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmMD5WithRSAEncryptionPKCS_1v1_5: "MD5WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmSHA_1WithRSAEncryptionPKCS_1v1_5: "SHA_1WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmSHA_224WithRSAEncryptionPKCS_1v1_5: "SHA_224WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmSHA_256WithRSAEncryptionPKCS_1v1_5: "SHA_256WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmSHA_384WithRSAEncryptionPKCS_1v1_5: "SHA_384WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmSHA_512WithRSAEncryptionPKCS_1v1_5: "SHA_512WithRSAEncryptionPKCS_1v1_5",
DigitalSignatureAlgorithmRSASSA_PSSPKCS_1v2_1: "RSASSA_PSSPKCS_1v2_1",
DigitalSignatureAlgorithmDSAWithSHA_1: "DSAWithSHA_1",
DigitalSignatureAlgorithmDSAWithSHA224: "DSAWithSHA224",
DigitalSignatureAlgorithmDSAWithSHA256: "DSAWithSHA256",
DigitalSignatureAlgorithmECDSAWithSHA_1: "ECDSAWithSHA_1",
DigitalSignatureAlgorithmECDSAWithSHA224: "ECDSAWithSHA224",
DigitalSignatureAlgorithmECDSAWithSHA256: "ECDSAWithSHA256",
DigitalSignatureAlgorithmECDSAWithSHA384: "ECDSAWithSHA384",
DigitalSignatureAlgorithmECDSAWithSHA512: "ECDSAWithSHA512",
// KMIP 1.4.
DigitalSignatureAlgorithmSHA3_256WithRSAEncryption: "SHA3_256WithRSAEncryption",
DigitalSignatureAlgorithmSHA3_384WithRSAEncryption: "SHA3_384WithRSAEncryption",
DigitalSignatureAlgorithmSHA3_512WithRSAEncryption: "SHA3_512WithRSAEncryption",
})
ttlv.RegisterEnum(TagAttestationType, map[AttestationType]string{
AttestationTypeTPMQuote: "TPMQuote",
AttestationTypeTCGIntegrityReport: "TCGIntegrityReport",
AttestationTypeSAMLAssertion: "SAMLAssertion",
})
ttlv.RegisterEnum(TagAlternativeNameType, map[AlternativeNameType]string{
AlternativeNameTypeUninterpretedTextString: "UninterpretedTextString",
AlternativeNameTypeURI: "URI",
AlternativeNameTypeObjectSerialNumber: "ObjectSerialNumber",
AlternativeNameTypeEmailAddress: "EmailAddress",
AlternativeNameTypeDNSName: "DNSName",
AlternativeNameTypeX_500DistinguishedName: "X_500DistinguishedName",
AlternativeNameTypeIPAddress: "IPAddress",
})
ttlv.RegisterEnum(TagKeyValueLocationType, map[KeyValueLocationType]string{
KeyValueLocationTypeUninterpretedTextString: "UninterpretedTextString",
KeyValueLocationTypeURI: "URI",
})
ttlv.RegisterEnum(TagValidityIndicator, map[ValidityIndicator]string{
ValidityIndicatorValid: "Valid",
ValidityIndicatorInvalid: "Invalid",
ValidityIndicatorUnknown: "Unknown",
})
ttlv.RegisterEnum(TagRNGAlgorithm, map[RNGAlgorithm]string{
RNGAlgorithmUnspecified: "Unspecified",
RNGAlgorithmFIPS186_2: "FIPS186_2",
RNGAlgorithmDRBG: "DRBG",
RNGAlgorithmNRBG: "NRBG",
RNGAlgorithmANSIX9_31: "ANSIX9_31",
RNGAlgorithmANSIX9_62: "ANSIX9_62",
})
ttlv.RegisterEnum(TagDRBGAlgorithm, map[DRBGAlgorithm]string{
DRBGAlgorithmUnspecified: "Unspecified",
DRBGAlgorithmDual_EC: "Dual_EC",
DRBGAlgorithmHash: "Hash",
DRBGAlgorithmHMAC: "HMAC",
DRBGAlgorithmCTR: "CTR",
})
ttlv.RegisterEnum(TagFIPS186Variation, map[FIPS186Variation]string{
FIPS186VariationUnspecified: "Unspecified",
FIPS186VariationGPXOriginal: "GPXOriginal",
FIPS186VariationGPXChangeNotice: "GPXChangeNotice",
FIPS186VariationXOriginal: "XOriginal",
FIPS186VariationXChangeNotice: "XChangeNotice",
FIPS186VariationKOriginal: "KOriginal",
FIPS186VariationKChangeNotice: "KChangeNotice",
})
ttlv.RegisterEnum(TagProfileName, map[ProfileName]string{
ProfileNameBaselineServerBasicKMIPV1_2: "BaselineServerBasicKMIPV1_2",
ProfileNameBaselineServerTLSV1_2KMIPV1_2: "BaselineServerTLSV1_2KMIPV1_2",
ProfileNameBaselineClientBasicKMIPV1_2: "BaselineClientBasicKMIPV1_2",
ProfileNameBaselineClientTLSV1_2KMIPV1_2: "BaselineClientTLSV1_2KMIPV1_2",
ProfileNameCompleteServerBasicKMIPV1_2: "CompleteServerBasicKMIPV1_2",
ProfileNameCompleteServerTLSV1_2KMIPV1_2: "CompleteServerTLSV1_2KMIPV1_2",
ProfileNameTapeLibraryClientKMIPV1_0: "TapeLibraryClientKMIPV1_0",
ProfileNameTapeLibraryClientKMIPV1_1: "TapeLibraryClientKMIPV1_1",
ProfileNameTapeLibraryClientKMIPV1_2: "TapeLibraryClientKMIPV1_2",
ProfileNameTapeLibraryServerKMIPV1_0: "TapeLibraryServerKMIPV1_0",
ProfileNameTapeLibraryServerKMIPV1_1: "TapeLibraryServerKMIPV1_1",
ProfileNameTapeLibraryServerKMIPV1_2: "TapeLibraryServerKMIPV1_2",
ProfileNameSymmetricKeyLifecycleClientKMIPV1_0: "SymmetricKeyLifecycleClientKMIPV1_0",
ProfileNameSymmetricKeyLifecycleClientKMIPV1_1: "SymmetricKeyLifecycleClientKMIPV1_1",
ProfileNameSymmetricKeyLifecycleClientKMIPV1_2: "SymmetricKeyLifecycleClientKMIPV1_2",
ProfileNameSymmetricKeyLifecycleServerKMIPV1_0: "SymmetricKeyLifecycleServerKMIPV1_0",
ProfileNameSymmetricKeyLifecycleServerKMIPV1_1: "SymmetricKeyLifecycleServerKMIPV1_1",
ProfileNameSymmetricKeyLifecycleServerKMIPV1_2: "SymmetricKeyLifecycleServerKMIPV1_2",
ProfileNameAsymmetricKeyLifecycleClientKMIPV1_0: "AsymmetricKeyLifecycleClientKMIPV1_0",
ProfileNameAsymmetricKeyLifecycleClientKMIPV1_1: "AsymmetricKeyLifecycleClientKMIPV1_1",
ProfileNameAsymmetricKeyLifecycleClientKMIPV1_2: "AsymmetricKeyLifecycleClientKMIPV1_2",
ProfileNameAsymmetricKeyLifecycleServerKMIPV1_0: "AsymmetricKeyLifecycleServerKMIPV1_0",
ProfileNameAsymmetricKeyLifecycleServerKMIPV1_1: "AsymmetricKeyLifecycleServerKMIPV1_1",
ProfileNameAsymmetricKeyLifecycleServerKMIPV1_2: "AsymmetricKeyLifecycleServerKMIPV1_2",
ProfileNameBasicCryptographicClientKMIPV1_2: "BasicCryptographicClientKMIPV1_2",
ProfileNameBasicCryptographicServerKMIPV1_2: "BasicCryptographicServerKMIPV1_2",
ProfileNameAdvancedCryptographicClientKMIPV1_2: "AdvancedCryptographicClientKMIPV1_2",
ProfileNameAdvancedCryptographicServerKMIPV1_2: "AdvancedCryptographicServerKMIPV1_2",
ProfileNameRNGCryptographicClientKMIPV1_2: "RNGCryptographicClientKMIPV1_2",
ProfileNameRNGCryptographicServerKMIPV1_2: "RNGCryptographicServerKMIPV1_2",
ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_0: "BasicSymmetricKeyFoundryClientKMIPV1_0",
ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_0: "IntermediateSymmetricKeyFoundryClientKMIPV1_0",
ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_0: "AdvancedSymmetricKeyFoundryClientKMIPV1_0",
ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_1: "BasicSymmetricKeyFoundryClientKMIPV1_1",
ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_1: "IntermediateSymmetricKeyFoundryClientKMIPV1_1",
ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_1: "AdvancedSymmetricKeyFoundryClientKMIPV1_1",
ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_2: "BasicSymmetricKeyFoundryClientKMIPV1_2",
ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_2: "IntermediateSymmetricKeyFoundryClientKMIPV1_2",
ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_2: "AdvancedSymmetricKeyFoundryClientKMIPV1_2",
ProfileNameSymmetricKeyFoundryServerKMIPV1_0: "SymmetricKeyFoundryServerKMIPV1_0",
ProfileNameSymmetricKeyFoundryServerKMIPV1_1: "SymmetricKeyFoundryServerKMIPV1_1",
ProfileNameSymmetricKeyFoundryServerKMIPV1_2: "SymmetricKeyFoundryServerKMIPV1_2",
ProfileNameOpaqueManagedObjectStoreClientKMIPV1_0: "OpaqueManagedObjectStoreClientKMIPV1_0",
ProfileNameOpaqueManagedObjectStoreClientKMIPV1_1: "OpaqueManagedObjectStoreClientKMIPV1_1",
ProfileNameOpaqueManagedObjectStoreClientKMIPV1_2: "OpaqueManagedObjectStoreClientKMIPV1_2",
ProfileNameOpaqueManagedObjectStoreServerKMIPV1_0: "OpaqueManagedObjectStoreServerKMIPV1_0",
ProfileNameOpaqueManagedObjectStoreServerKMIPV1_1: "OpaqueManagedObjectStoreServerKMIPV1_1",
ProfileNameOpaqueManagedObjectStoreServerKMIPV1_2: "OpaqueManagedObjectStoreServerKMIPV1_2",
ProfileNameSuiteBMinLOS_128ClientKMIPV1_0: "SuiteBMinLOS_128ClientKMIPV1_0",
ProfileNameSuiteBMinLOS_128ClientKMIPV1_1: "SuiteBMinLOS_128ClientKMIPV1_1",
ProfileNameSuiteBMinLOS_128ClientKMIPV1_2: "SuiteBMinLOS_128ClientKMIPV1_2",
ProfileNameSuiteBMinLOS_128ServerKMIPV1_0: "SuiteBMinLOS_128ServerKMIPV1_0",
ProfileNameSuiteBMinLOS_128ServerKMIPV1_1: "SuiteBMinLOS_128ServerKMIPV1_1",
ProfileNameSuiteBMinLOS_128ServerKMIPV1_2: "SuiteBMinLOS_128ServerKMIPV1_2",
ProfileNameSuiteBMinLOS_192ClientKMIPV1_0: "SuiteBMinLOS_192ClientKMIPV1_0",
ProfileNameSuiteBMinLOS_192ClientKMIPV1_1: "SuiteBMinLOS_192ClientKMIPV1_1",
ProfileNameSuiteBMinLOS_192ClientKMIPV1_2: "SuiteBMinLOS_192ClientKMIPV1_2",
ProfileNameSuiteBMinLOS_192ServerKMIPV1_0: "SuiteBMinLOS_192ServerKMIPV1_0",
ProfileNameSuiteBMinLOS_192ServerKMIPV1_1: "SuiteBMinLOS_192ServerKMIPV1_1",
ProfileNameSuiteBMinLOS_192ServerKMIPV1_2: "SuiteBMinLOS_192ServerKMIPV1_2",
ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_0: "StorageArrayWithSelfEncryptingDriveClientKMIPV1_0",
ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_1: "StorageArrayWithSelfEncryptingDriveClientKMIPV1_1",
ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_2: "StorageArrayWithSelfEncryptingDriveClientKMIPV1_2",
ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_0: "StorageArrayWithSelfEncryptingDriveServerKMIPV1_0",
ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_1: "StorageArrayWithSelfEncryptingDriveServerKMIPV1_1",
ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_2: "StorageArrayWithSelfEncryptingDriveServerKMIPV1_2",
ProfileNameHTTPSClientKMIPV1_0: "HTTPSClientKMIPV1_0",
ProfileNameHTTPSClientKMIPV1_1: "HTTPSClientKMIPV1_1",
ProfileNameHTTPSClientKMIPV1_2: "HTTPSClientKMIPV1_2",
ProfileNameHTTPSServerKMIPV1_0: "HTTPSServerKMIPV1_0",
ProfileNameHTTPSServerKMIPV1_1: "HTTPSServerKMIPV1_1",
ProfileNameHTTPSServerKMIPV1_2: "HTTPSServerKMIPV1_2",
ProfileNameJSONClientKMIPV1_0: "JSONClientKMIPV1_0",
ProfileNameJSONClientKMIPV1_1: "JSONClientKMIPV1_1",
ProfileNameJSONClientKMIPV1_2: "JSONClientKMIPV1_2",
ProfileNameJSONServerKMIPV1_0: "JSONServerKMIPV1_0",
ProfileNameJSONServerKMIPV1_1: "JSONServerKMIPV1_1",
ProfileNameJSONServerKMIPV1_2: "JSONServerKMIPV1_2",
ProfileNameXMLClientKMIPV1_0: "XMLClientKMIPV1_0",
ProfileNameXMLClientKMIPV1_1: "XMLClientKMIPV1_1",
ProfileNameXMLClientKMIPV1_2: "XMLClientKMIPV1_2",
ProfileNameXMLServerKMIPV1_0: "XMLServerKMIPV1_0",
ProfileNameXMLServerKMIPV1_1: "XMLServerKMIPV1_1",
ProfileNameXMLServerKMIPV1_2: "XMLServerKMIPV1_2",
ProfileNameBaselineServerBasicKMIPV1_3: "BaselineServerBasicKMIPV1_3",
ProfileNameBaselineServerTLSV1_2KMIPV1_3: "BaselineServerTLSV1_2KMIPV1_3",
ProfileNameBaselineClientBasicKMIPV1_3: "BaselineClientBasicKMIPV1_3",
ProfileNameBaselineClientTLSV1_2KMIPV1_3: "BaselineClientTLSV1_2KMIPV1_3",
ProfileNameCompleteServerBasicKMIPV1_3: "CompleteServerBasicKMIPV1_3",
ProfileNameCompleteServerTLSV1_2KMIPV1_3: "CompleteServerTLSV1_2KMIPV1_3",
ProfileNameTapeLibraryClientKMIPV1_3: "TapeLibraryClientKMIPV1_3",
ProfileNameTapeLibraryServerKMIPV1_3: "TapeLibraryServerKMIPV1_3",
ProfileNameSymmetricKeyLifecycleClientKMIPV1_3: "SymmetricKeyLifecycleClientKMIPV1_3",
ProfileNameSymmetricKeyLifecycleServerKMIPV1_3: "SymmetricKeyLifecycleServerKMIPV1_3",
ProfileNameAsymmetricKeyLifecycleClientKMIPV1_3: "AsymmetricKeyLifecycleClientKMIPV1_3",
ProfileNameAsymmetricKeyLifecycleServerKMIPV1_3: "AsymmetricKeyLifecycleServerKMIPV1_3",
ProfileNameBasicCryptographicClientKMIPV1_3: "BasicCryptographicClientKMIPV1_3",
ProfileNameBasicCryptographicServerKMIPV1_3: "BasicCryptographicServerKMIPV1_3",
ProfileNameAdvancedCryptographicClientKMIPV1_3: "AdvancedCryptographicClientKMIPV1_3",
ProfileNameAdvancedCryptographicServerKMIPV1_3: "AdvancedCryptographicServerKMIPV1_3",
ProfileNameRNGCryptographicClientKMIPV1_3: "RNGCryptographicClientKMIPV1_3",
ProfileNameRNGCryptographicServerKMIPV1_3: "RNGCryptographicServerKMIPV1_3",
ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_3: "BasicSymmetricKeyFoundryClientKMIPV1_3",
ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_3: "IntermediateSymmetricKeyFoundryClientKMIPV1_3",
ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_3: "AdvancedSymmetricKeyFoundryClientKMIPV1_3",
ProfileNameSymmetricKeyFoundryServerKMIPV1_3: "SymmetricKeyFoundryServerKMIPV1_3",
ProfileNameOpaqueManagedObjectStoreClientKMIPV1_3: "OpaqueManagedObjectStoreClientKMIPV1_3",
ProfileNameOpaqueManagedObjectStoreServerKMIPV1_3: "OpaqueManagedObjectStoreServerKMIPV1_3",
ProfileNameSuiteBMinLOS_128ClientKMIPV1_3: "SuiteBMinLOS_128ClientKMIPV1_3",
ProfileNameSuiteBMinLOS_128ServerKMIPV1_3: "SuiteBMinLOS_128ServerKMIPV1_3",
ProfileNameSuiteBMinLOS_192ClientKMIPV1_3: "SuiteBMinLOS_192ClientKMIPV1_3",
ProfileNameSuiteBMinLOS_192ServerKMIPV1_3: "SuiteBMinLOS_192ServerKMIPV1_3",
ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_3: "StorageArrayWithSelfEncryptingDriveClientKMIPV1_3",
ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_3: "StorageArrayWithSelfEncryptingDriveServerKMIPV1_3",
ProfileNameHTTPSClientKMIPV1_3: "HTTPSClientKMIPV1_3",
ProfileNameHTTPSServerKMIPV1_3: "HTTPSServerKMIPV1_3",
ProfileNameJSONClientKMIPV1_3: "JSONClientKMIPV1_3",
ProfileNameJSONServerKMIPV1_3: "JSONServerKMIPV1_3",
ProfileNameXMLClientKMIPV1_3: "XMLClientKMIPV1_3",
ProfileNameXMLServerKMIPV1_3: "XMLServerKMIPV1_3",
// KMIP 1.4.
ProfileNameBaselineServerBasicKMIPV1_4: "BaselineServerBasicKMIPV1_4",
ProfileNameBaselineServerTLSV1_2KMIPV1_4: "BaselineServerTLSV1_2KMIPV1_4",
ProfileNameBaselineClientBasicKMIPV1_4: "BaselineClientBasicKMIPV1_4",
ProfileNameBaselineClientTLSV1_2KMIPV1_4: "BaselineClientTLSV1_2KMIPV1_4",
ProfileNameCompleteServerBasicKMIPV1_4: "CompleteServerBasicKMIPV1_4",
ProfileNameCompleteServerTLSV1_2KMIPV1_4: "CompleteServerTLSV1_2KMIPV1_4",
ProfileNameTapeLibraryClientKMIPV1_4: "TapeLibraryClientKMIPV1_4",
ProfileNameTapeLibraryServerKMIPV1_4: "TapeLibraryServerKMIPV1_4",
ProfileNameSymmetricKeyLifecycleClientKMIPV1_4: "SymmetricKeyLifecycleClientKMIPV1_4",
ProfileNameSymmetricKeyLifecycleServerKMIPV1_4: "SymmetricKeyLifecycleServerKMIPV1_4",
ProfileNameAsymmetricKeyLifecycleClientKMIPV1_4: "AsymmetricKeyLifecycleClientKMIPV1_4",
ProfileNameAsymmetricKeyLifecycleServerKMIPV1_4: "AsymmetricKeyLifecycleServerKMIPV1_4",
ProfileNameBasicCryptographicClientKMIPV1_4: "BasicCryptographicClientKMIPV1_4",
ProfileNameBasicCryptographicServerKMIPV1_4: "BasicCryptographicServerKMIPV1_4",
ProfileNameAdvancedCryptographicClientKMIPV1_4: "AdvancedCryptographicClientKMIPV1_4",
ProfileNameAdvancedCryptographicServerKMIPV1_4: "AdvancedCryptographicServerKMIPV1_4",
ProfileNameRNGCryptographicClientKMIPV1_4: "RNGCryptographicClientKMIPV1_4",
ProfileNameRNGCryptographicServerKMIPV1_4: "RNGCryptographicServerKMIPV1_4",
ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_4: "BasicSymmetricKeyFoundryClientKMIPV1_4",
ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_4: "IntermediateSymmetricKeyFoundryClientKMIPV1_4",
ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_4: "AdvancedSymmetricKeyFoundryClientKMIPV1_4",
ProfileNameSymmetricKeyFoundryServerKMIPV1_4: "SymmetricKeyFoundryServerKMIPV1_4",
ProfileNameOpaqueManagedObjectStoreClientKMIPV1_4: "OpaqueManagedObjectStoreClientKMIPV1_4",
ProfileNameOpaqueManagedObjectStoreServerKMIPV1_4: "OpaqueManagedObjectStoreServerKMIPV1_4",
ProfileNameSuiteBMinLOS_128ClientKMIPV1_4: "SuiteBMinLOS_128ClientKMIPV1_4",
ProfileNameSuiteBMinLOS_128ServerKMIPV1_4: "SuiteBMinLOS_128ServerKMIPV1_4",
ProfileNameSuiteBMinLOS_192ClientKMIPV1_4: "SuiteBMinLOS_192ClientKMIPV1_4",
ProfileNameSuiteBMinLOS_192ServerKMIPV1_4: "SuiteBMinLOS_192ServerKMIPV1_4",
ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_4: "StorageArrayWithSelfEncryptingDriveClientKMIPV1_4",
ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_4: "StorageArrayWithSelfEncryptingDriveServerKMIPV1_4",
ProfileNameHTTPSClientKMIPV1_4: "HTTPSClientKMIPV1_4",
ProfileNameHTTPSServerKMIPV1_4: "HTTPSServerKMIPV1_4",
ProfileNameJSONClientKMIPV1_4: "JSONClientKMIPV1_4",
ProfileNameJSONServerKMIPV1_4: "JSONServerKMIPV1_4",
ProfileNameXMLClientKMIPV1_4: "XMLClientKMIPV1_4",
ProfileNameXMLServerKMIPV1_4: "XMLServerKMIPV1_4",
})
ttlv.RegisterEnum(TagValidationAuthorityType, map[ValidationAuthorityType]string{
ValidationAuthorityTypeUnspecified: "Unspecified",
ValidationAuthorityTypeNISTCMVP: "NISTCMVP",
ValidationAuthorityTypeCommonCriteria: "CommonCriteria",
})
ttlv.RegisterEnum(TagValidationType, map[ValidationType]string{
ValidationTypeUnspecified: "Unspecified",
ValidationTypeHardware: "Hardware",
ValidationTypeSoftware: "Software",
ValidationTypeFirmware: "Firmware",
ValidationTypeHybrid: "Hybrid",
})
ttlv.RegisterEnum(TagUnwrapMode, map[UnwrapMode]string{
UnwrapModeUnspecified: "Unspecified",
UnwrapModeProcessed: "Processed",
UnwrapModeNotProcessed: "NotProcessed",
})
ttlv.RegisterEnum(TagDestroyAction, map[DestroyAction]string{
DestroyActionUnspecified: "Unspecified",
DestroyActionKeyMaterialDeleted: "KeyMaterialDeleted",
DestroyActionKeyMaterialShredded: "KeyMaterialShredded",
DestroyActionMetaDataDeleted: "MetaDataDeleted",
DestroyActionMetaDataShredded: "MetaDataShredded",
DestroyActionDeleted: "Deleted",
DestroyActionShredded: "Shredded",
})
ttlv.RegisterEnum(TagShreddingAlgorithm, map[ShreddingAlgorithm]string{
ShreddingAlgorithmUnspecified: "Unspecified",
ShreddingAlgorithmCryptographic: "Cryptographic",
ShreddingAlgorithmUnsupported: "Unsupported",
})
ttlv.RegisterEnum(TagRNGMode, map[RNGMode]string{
RNGModeUnspecified: "Unspecified",
RNGModeSharedInstantiation: "SharedInstantiation",
RNGModeNonSharedInstantiation: "NonSharedInstantiation",
})
ttlv.RegisterEnum(TagClientRegistrationMethod, map[ClientRegistrationMethod]string{
ClientRegistrationMethodUnspecified: "Unspecified",
ClientRegistrationMethodServerPreGenerated: "ServerPreGenerated",
ClientRegistrationMethodServerOnDemand: "ServerOnDemand",
ClientRegistrationMethodClientGenerated: "ClientGenerated",
ClientRegistrationMethodClientRegistered: "ClientRegistered",
})
ttlv.RegisterEnum(TagMaskGenerator, map[MaskGenerator]string{
MaskGeneratorMGF1: "MGF1",
})
}
type ResultStatus uint32
const (
ResultStatusSuccess ResultStatus = 0x00000000
ResultStatusOperationFailed ResultStatus = 0x00000001
ResultStatusOperationPending ResultStatus = 0x00000002
ResultStatusOperationUndone ResultStatus = 0x00000003
)
type ResultReason uint32
// See https://docs.oasis-open.org/kmip/spec/v1.4/errata01/os/kmip-spec-v1.4-errata01-os-redlined.html#_Toc490660949
const (
ResultReasonItemNotFound ResultReason = 0x00000001
ResultReasonResponseTooLarge ResultReason = 0x00000002
ResultReasonAuthenticationNotSuccessful ResultReason = 0x00000003
ResultReasonInvalidMessage ResultReason = 0x00000004
ResultReasonOperationNotSupported ResultReason = 0x00000005
ResultReasonMissingData ResultReason = 0x00000006
ResultReasonInvalidField ResultReason = 0x00000007
ResultReasonFeatureNotSupported ResultReason = 0x00000008
ResultReasonOperationCanceledByRequester ResultReason = 0x00000009
ResultReasonCryptographicFailure ResultReason = 0x0000000A
ResultReasonIllegalOperation ResultReason = 0x0000000B
ResultReasonPermissionDenied ResultReason = 0x0000000C
ResultReasonObjectarchived ResultReason = 0x0000000D
ResultReasonIndexOutofBounds ResultReason = 0x0000000E
ResultReasonApplicationNamespaceNotSupported ResultReason = 0x0000000F
ResultReasonKeyFormatTypeNotSupported ResultReason = 0x00000010
ResultReasonKeyCompressionTypeNotSupported ResultReason = 0x00000011
// KMIP 1.1.
ResultReasonEncodingOptionError ResultReason = 0x00000012
// KMIP 1.2.
ResultReasonKeyValueNotPresent ResultReason = 0x00000013
ResultReasonAttestationRequired ResultReason = 0x00000014
ResultReasonAttestationFailed ResultReason = 0x00000015
// KMIP 1.4.
ResultReasonSensitive ResultReason = 0x00000016
ResultReasonNotExtractable ResultReason = 0x00000017
ResultReasonObjectAlreadyExists ResultReason = 0x00000018
ResultReasonGeneralFailure ResultReason = 0x00000100
)
type CredentialType uint32
const (
CredentialTypeUsernameAndPassword CredentialType = 0x00000001
// KMIP 1.1.
CredentialTypeDevice CredentialType = 0x00000002
// KMIP 1.2.
CredentialTypeAttestation CredentialType = 0x00000003
)
type RevocationReasonCode uint32
const (
RevocationReasonCodeUnspecified RevocationReasonCode = 0x00000001
RevocationReasonCodeKeyCompromise RevocationReasonCode = 0x00000002
RevocationReasonCodeCACompromise RevocationReasonCode = 0x00000003
RevocationReasonCodeAffiliationChanged RevocationReasonCode = 0x00000004
RevocationReasonCodeSuperseded RevocationReasonCode = 0x00000005
RevocationReasonCodeCessationOfOperation RevocationReasonCode = 0x00000006
RevocationReasonCodePrivilegeWithdrawn RevocationReasonCode = 0x00000007
)
type BatchErrorContinuationOption uint32
const (
BatchErrorContinuationOptionContinue BatchErrorContinuationOption = 1
BatchErrorContinuationOptionStop BatchErrorContinuationOption = 2
BatchErrorContinuationOptionUndo BatchErrorContinuationOption = 3
)
type NameType uint32
const (
NameTypeUninterpretedTextString NameType = 1
NameTypeUri NameType = 2
)
type ObjectType uint32
const (
ObjectTypeCertificate ObjectType = 0x00000001
ObjectTypeSymmetricKey ObjectType = 0x00000002
ObjectTypePublicKey ObjectType = 0x00000003
ObjectTypePrivateKey ObjectType = 0x00000004
ObjectTypeSplitKey ObjectType = 0x00000005
// Deprecated: deprecated as of kmip 1.3.
ObjectTypeTemplate ObjectType = 0x00000006
ObjectTypeSecretData ObjectType = 0x00000007
ObjectTypeOpaqueObject ObjectType = 0x00000008
// KMIP 1.2.
ObjectTypePGPKey ObjectType = 0x00000009
)
type OpaqueDataType uint32
type State uint32
const (
StatePreActive State = 0x00000001
StateActive State = 0x00000002
StateDeactivated State = 0x00000003
StateCompromised State = 0x00000004
StateDestroyed State = 0x00000005
StateDestroyedCompromised State = 0x00000006
)
type CryptographicAlgorithm uint32
const (
CryptographicAlgorithmDES CryptographicAlgorithm = 0x00000001
CryptographicAlgorithmTDES CryptographicAlgorithm = 0x00000002
CryptographicAlgorithmAES CryptographicAlgorithm = 0x00000003
CryptographicAlgorithmRSA CryptographicAlgorithm = 0x00000004
CryptographicAlgorithmDSA CryptographicAlgorithm = 0x00000005
CryptographicAlgorithmECDSA CryptographicAlgorithm = 0x00000006
CryptographicAlgorithmHMACSHA1 CryptographicAlgorithm = 0x00000007
CryptographicAlgorithmHMACSHA224 CryptographicAlgorithm = 0x00000008
CryptographicAlgorithmHMACSHA256 CryptographicAlgorithm = 0x00000009
CryptographicAlgorithmHMACSHA384 CryptographicAlgorithm = 0x0000000A
CryptographicAlgorithmHMACSHA512 CryptographicAlgorithm = 0x0000000B
CryptographicAlgorithmHMACMD5 CryptographicAlgorithm = 0x0000000C
CryptographicAlgorithmDH CryptographicAlgorithm = 0x0000000D
CryptographicAlgorithmECDH CryptographicAlgorithm = 0x0000000E
CryptographicAlgorithmECMQV CryptographicAlgorithm = 0x0000000F
CryptographicAlgorithmBlowfish CryptographicAlgorithm = 0x00000010
CryptographicAlgorithmCamellia CryptographicAlgorithm = 0x00000011
CryptographicAlgorithmCAST5 CryptographicAlgorithm = 0x00000012
CryptographicAlgorithmIDEA CryptographicAlgorithm = 0x00000013
CryptographicAlgorithmMARS CryptographicAlgorithm = 0x00000014
CryptographicAlgorithmRC2 CryptographicAlgorithm = 0x00000015
CryptographicAlgorithmRC4 CryptographicAlgorithm = 0x00000016
CryptographicAlgorithmRC5 CryptographicAlgorithm = 0x00000017
CryptographicAlgorithmSKIPJACK CryptographicAlgorithm = 0x00000018
CryptographicAlgorithmTwofish CryptographicAlgorithm = 0x00000019
// KMIP 1.2.
CryptographicAlgorithmEC CryptographicAlgorithm = 0x0000001A
// KMIP 1.3.
CryptographicAlgorithmOneTimePad CryptographicAlgorithm = 0x0000001B
// KMIP 1.4.
CryptographicAlgorithmChaCha20 CryptographicAlgorithm = 0x0000001C
CryptographicAlgorithmPoly1305 CryptographicAlgorithm = 0x0000001D
CryptographicAlgorithmChaCha20Poly1305 CryptographicAlgorithm = 0x0000001E
CryptographicAlgorithmSHA3_224 CryptographicAlgorithm = 0x0000001F
CryptographicAlgorithmSHA3_256 CryptographicAlgorithm = 0x00000020
CryptographicAlgorithmSHA3_384 CryptographicAlgorithm = 0x00000021
CryptographicAlgorithmSHA3_512 CryptographicAlgorithm = 0x00000022
CryptographicAlgorithmHMAC_SHA3_224 CryptographicAlgorithm = 0x00000023
CryptographicAlgorithmHMAC_SHA3_256 CryptographicAlgorithm = 0x00000024
CryptographicAlgorithmHMAC_SHA3_384 CryptographicAlgorithm = 0x00000025
CryptographicAlgorithmHMAC_SHA3_512 CryptographicAlgorithm = 0x00000026
CryptographicAlgorithmSHAKE_128 CryptographicAlgorithm = 0x00000027
CryptographicAlgorithmSHAKE_256 CryptographicAlgorithm = 0x00000028
)
type BlockCipherMode uint32
const (
BlockCipherModeCBC BlockCipherMode = 0x00000001
BlockCipherModeECB BlockCipherMode = 0x00000002
BlockCipherModePCBC BlockCipherMode = 0x00000003
BlockCipherModeCFB BlockCipherMode = 0x00000004
BlockCipherModeOFB BlockCipherMode = 0x00000005
BlockCipherModeCTR BlockCipherMode = 0x00000006
BlockCipherModeCMAC BlockCipherMode = 0x00000007
BlockCipherModeCCM BlockCipherMode = 0x00000008
BlockCipherModeGCM BlockCipherMode = 0x00000009
BlockCipherModeCBCMAC BlockCipherMode = 0x0000000A
BlockCipherModeXTS BlockCipherMode = 0x0000000B
BlockCipherModeAESKeyWrapPadding BlockCipherMode = 0x0000000C
BlockCipherModeNISTKeyWrap BlockCipherMode = 0x0000000D
BlockCipherModeX9_102AESKW BlockCipherMode = 0x0000000E
BlockCipherModeX9_102TDKW BlockCipherMode = 0x0000000F
BlockCipherModeX9_102AKW1 BlockCipherMode = 0x00000010
BlockCipherModeX9_102AKW2 BlockCipherMode = 0x00000011
// KMIP 1.4.
BlockCipherModeAEAD BlockCipherMode = 0x00000012
)
type PaddingMethod uint32
const (
PaddingMethodNone PaddingMethod = 0x00000001
PaddingMethodOAEP PaddingMethod = 0x00000002
PaddingMethodPKCS5 PaddingMethod = 0x00000003
PaddingMethodSSL3 PaddingMethod = 0x00000004
PaddingMethodZeros PaddingMethod = 0x00000005
PaddingMethodANSIX9_23 PaddingMethod = 0x00000006
PaddingMethodISO10126 PaddingMethod = 0x00000007
PaddingMethodPKCS1V1_5 PaddingMethod = 0x00000008
PaddingMethodX9_31 PaddingMethod = 0x00000009
PaddingMethodPSS PaddingMethod = 0x0000000A
)
type HashingAlgorithm uint32
const (
HashingAlgorithmMD2 HashingAlgorithm = 0x00000001
HashingAlgorithmMD4 HashingAlgorithm = 0x00000002
HashingAlgorithmMD5 HashingAlgorithm = 0x00000003
HashingAlgorithmSHA_1 HashingAlgorithm = 0x00000004
HashingAlgorithmSHA_224 HashingAlgorithm = 0x00000005
HashingAlgorithmSHA_256 HashingAlgorithm = 0x00000006
HashingAlgorithmSHA_384 HashingAlgorithm = 0x00000007
HashingAlgorithmSHA_512 HashingAlgorithm = 0x00000008
HashingAlgorithmRIPEMD_160 HashingAlgorithm = 0x00000009
HashingAlgorithmTiger HashingAlgorithm = 0x0000000A
HashingAlgorithmWhirlpool HashingAlgorithm = 0x0000000B
// KMIP 1.2.
HashingAlgorithmSHA_512_224 HashingAlgorithm = 0x0000000C
HashingAlgorithmSHA_512_256 HashingAlgorithm = 0x0000000D
// KMIP 1.4.
HashingAlgorithmSHA_3_224 HashingAlgorithm = 0x0000000E
HashingAlgorithmSHA_3_256 HashingAlgorithm = 0x0000000F
HashingAlgorithmSHA_3_384 HashingAlgorithm = 0x00000010
HashingAlgorithmSHA_3_512 HashingAlgorithm = 0x00000011
)
type KeyRoleType uint32
const (
KeyRoleTypeBDK KeyRoleType = 0x00000001
KeyRoleTypeCVK KeyRoleType = 0x00000002
KeyRoleTypeDEK KeyRoleType = 0x00000003
KeyRoleTypeMKAC KeyRoleType = 0x00000004
KeyRoleTypeMKSMC KeyRoleType = 0x00000005
KeyRoleTypeMKSMI KeyRoleType = 0x00000006
KeyRoleTypeMKDAC KeyRoleType = 0x00000007
KeyRoleTypeMKDN KeyRoleType = 0x00000008
KeyRoleTypeMKCP KeyRoleType = 0x00000009
KeyRoleTypeMKOTH KeyRoleType = 0x0000000A
KeyRoleTypeKEK KeyRoleType = 0x0000000B
KeyRoleTypeMAC16609 KeyRoleType = 0x0000000C
KeyRoleTypeMAC97971 KeyRoleType = 0x0000000D
KeyRoleTypeMAC97972 KeyRoleType = 0x0000000E
KeyRoleTypeMAC97973 KeyRoleType = 0x0000000F
KeyRoleTypeMAC97974 KeyRoleType = 0x00000010
KeyRoleTypeMAC97975 KeyRoleType = 0x00000011
KeyRoleTypeZPK KeyRoleType = 0x00000012
KeyRoleTypePVKIBM KeyRoleType = 0x00000013
KeyRoleTypePVKPVV KeyRoleType = 0x00000014
KeyRoleTypePVKOTH KeyRoleType = 0x00000015
// KMIP 1.4.
KeyRoleTypeDUKPT KeyRoleType = 0x00000016
KeyRoleTypeIV KeyRoleType = 0x00000017
KeyRoleTypeTRKBK KeyRoleType = 0x00000018
)
type RecommendedCurve uint32
const (
RecommendedCurveP_192 RecommendedCurve = 0x00000001
RecommendedCurveK_163 RecommendedCurve = 0x00000002
RecommendedCurveB_163 RecommendedCurve = 0x00000003
RecommendedCurveP_224 RecommendedCurve = 0x00000004
RecommendedCurveK_233 RecommendedCurve = 0x00000005
RecommendedCurveB_233 RecommendedCurve = 0x00000006
RecommendedCurveP_256 RecommendedCurve = 0x00000007
RecommendedCurveK_283 RecommendedCurve = 0x00000008
RecommendedCurveB_283 RecommendedCurve = 0x00000009
RecommendedCurveP_384 RecommendedCurve = 0x0000000A
RecommendedCurveK_409 RecommendedCurve = 0x0000000B
RecommendedCurveB_409 RecommendedCurve = 0x0000000C
RecommendedCurveP_521 RecommendedCurve = 0x0000000D
RecommendedCurveK_571 RecommendedCurve = 0x0000000E
RecommendedCurveB_571 RecommendedCurve = 0x0000000F
// KMIP 1.2.
RecommendedCurveSECP112R1 RecommendedCurve = 0x00000010
RecommendedCurveSECP112R2 RecommendedCurve = 0x00000011
RecommendedCurveSECP128R1 RecommendedCurve = 0x00000012
RecommendedCurveSECP128R2 RecommendedCurve = 0x00000013
RecommendedCurveSECP160K1 RecommendedCurve = 0x00000014
RecommendedCurveSECP160R1 RecommendedCurve = 0x00000015
RecommendedCurveSECP160R2 RecommendedCurve = 0x00000016
RecommendedCurveSECP192K1 RecommendedCurve = 0x00000017
RecommendedCurveSECP224K1 RecommendedCurve = 0x00000018
RecommendedCurveSECP256K1 RecommendedCurve = 0x00000019
RecommendedCurveSECT113R1 RecommendedCurve = 0x0000001A
RecommendedCurveSECT113R2 RecommendedCurve = 0x0000001B
RecommendedCurveSECT131R1 RecommendedCurve = 0x0000001C
RecommendedCurveSECT131R2 RecommendedCurve = 0x0000001D
RecommendedCurveSECT163R1 RecommendedCurve = 0x0000001E
RecommendedCurveSECT193R1 RecommendedCurve = 0x0000001F
RecommendedCurveSECT193R2 RecommendedCurve = 0x00000020
RecommendedCurveSECT239K1 RecommendedCurve = 0x00000021
RecommendedCurveANSIX9P192V2 RecommendedCurve = 0x00000022
RecommendedCurveANSIX9P192V3 RecommendedCurve = 0x00000023
RecommendedCurveANSIX9P239V1 RecommendedCurve = 0x00000024
RecommendedCurveANSIX9P239V2 RecommendedCurve = 0x00000025
RecommendedCurveANSIX9P239V3 RecommendedCurve = 0x00000026
RecommendedCurveANSIX9C2PNB163V1 RecommendedCurve = 0x00000027
RecommendedCurveANSIX9C2PNB163V2 RecommendedCurve = 0x00000028
RecommendedCurveANSIX9C2PNB163V3 RecommendedCurve = 0x00000029
RecommendedCurveANSIX9C2PNB176V1 RecommendedCurve = 0x0000002A