-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconsts.go
1258 lines (1235 loc) · 65.1 KB
/
consts.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
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// KMIP Tags
const (
// Internal
ANY_TAG Tag = 0xffffff
// KMIP 1.0
ACTIVATION_DATE Tag = 0x420001
APPLICATION_DATA Tag = 0x420002
APPLICATION_NAMESPACE Tag = 0x420003
APPLICATION_SPECIFIC_INFORMATION Tag = 0x420004
ARCHIVE_DATE Tag = 0x420005
ASYNCHRONOUS_CORRELATION_VALUE Tag = 0x420006
ASYNCHRONOUS_INDICATOR Tag = 0x420007
ATTRIBUTE Tag = 0x420008
ATTRIBUTE_INDEX Tag = 0x420009 // Designated '(Reserved)' in KMIP 2.0
ATTRIBUTE_NAME Tag = 0x42000A
ATTRIBUTE_VALUE Tag = 0x42000B
AUTHENTICATION Tag = 0x42000C
BATCH_COUNT Tag = 0x42000D
BATCH_ERROR_CONTINUATION_OPTION Tag = 0x42000E
BATCH_ITEM Tag = 0x42000F
BATCH_ORDER_OPTION Tag = 0x420010
BLOCK_CIPHER_MODE Tag = 0x420011
CANCELLATION_RESULT Tag = 0x420012
CERTIFICATE Tag = 0x420013
CERTIFICATE_IDENTIFIER Tag = 0x420014 // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_ISSUER Tag = 0x420015 // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_ISSUER_ALTERNATIVE_NAME Tag = 0x420016 // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_ISSUER_DISTINGUISHED_NAME Tag = 0x420017 // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_REQUEST Tag = 0x420018
CERTIFICATE_REQUEST_TYPE Tag = 0x420019
CERTIFICATE_SUBJECT Tag = 0x42001A // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_SUBJECT_ALTERNATIVE_NAME Tag = 0x42001B // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_SUBJECT_DISTINGUISHED_NAME Tag = 0x42001C // Deprecated, designated '(Reserved)' in KMIP 2.0
CERTIFICATE_TYPE Tag = 0x42001D
CERTIFICATE_VALUE Tag = 0x42001E
COMMON_TEMPLATE_ATTRIBUTE Tag = 0x42001F // Designated '(Reserved)' in KMIP 2.0
COMPROMISE_DATE Tag = 0x420020
COMPROMISE_OCCURRENCE_DATE Tag = 0x420021
CONTACT_INFORMATION Tag = 0x420022
CREDENTIAL Tag = 0x420023
CREDENTIAL_TYPE Tag = 0x420024
CREDENTIAL_VALUE Tag = 0x420025
CRITICALITY_INDICATOR Tag = 0x420026
CRT_COEFFICIENT Tag = 0x420027
CRYPTOGRAPHIC_ALGORITHM Tag = 0x420028
CRYPTOGRAPHIC_DOMAIN_PARAMETERS Tag = 0x420029
CRYPTOGRAPHIC_LENGTH Tag = 0x42002A
CRYPTOGRAPHIC_PARAMETERS Tag = 0x42002B
CRYPTOGRAPHIC_USAGE_MASK Tag = 0x42002C
CUSTOM_ATTRIBUTE Tag = 0x42002D // Designated '(Reserved)' in KMIP 2.0
D Tag = 0x42002E
DEACTIVATION_DATE Tag = 0x42002F
DERIVATION_DATA Tag = 0x420030
DERIVATION_METHOD Tag = 0x420031
DERIVATION_PARAMETERS Tag = 0x420032
DESTROY_DATE Tag = 0x420033
DIGEST Tag = 0x420034
DIGEST_VALUE Tag = 0x420035
ENCRYPTION_KEY_INFORMATION Tag = 0x420036
G Tag = 0x420037
HASHING_ALGORITHM Tag = 0x420038
INITIAL_DATE Tag = 0x420039
INITIALIZATION_VECTOR Tag = 0x42003A
ISSUER Tag = 0x42003B // Deprecated, designated '(Reserved)' in KMIP 2.0
ITERATION_COUNT Tag = 0x42003C
IV_COUNTER_NONCE Tag = 0x42003D
J Tag = 0x42003E
KEY Tag = 0x42003F
KEY_BLOCK Tag = 0x420040
KEY_COMPRESSION_TYPE Tag = 0x420041
KEY_FORMAT_TYPE Tag = 0x420042
KEY_MATERIAL Tag = 0x420043
KEY_PART_IDENTIFIER Tag = 0x420044
KEY_VALUE Tag = 0x420045
KEY_WRAPPING_DATA Tag = 0x420046
KEY_WRAPPING_SPECIFICATION Tag = 0x420047
LAST_CHANGE_DATE Tag = 0x420048
LEASE_TIME Tag = 0x420049
LINK Tag = 0x42004A
LINK_TYPE Tag = 0x42004B
LINKED_OBJECT_IDENTIFIER Tag = 0x42004C
MAC_SIGNATURE Tag = 0x42004D
MAC_SIGNATURE_KEY_INFORMATION Tag = 0x42004E
MAXIMUM_ITEMS Tag = 0x42004F
MAXIMUM_RESPONSE_SIZE Tag = 0x420050
MESSAGE_EXTENSION Tag = 0x420051
MODULUS Tag = 0x420052
NAME Tag = 0x420053
NAME_TYPE Tag = 0x420054
NAME_VALUE Tag = 0x420055
OBJECT_GROUP Tag = 0x420056
OBJECT_TYPE Tag = 0x420057
OFFSET Tag = 0x420058
OPAQUE_DATA_TYPE Tag = 0x420059
OPAQUE_DATA_VALUE Tag = 0x42005A
OPAQUE_OBJECT Tag = 0x42005B
OPERATION Tag = 0x42005C
OPERATION_POLICY_NAME Tag = 0x42005D // Designated '(Reserved)' in KMIP 2.0
P Tag = 0x42005E
PADDING_METHOD Tag = 0x42005F
PRIME_EXPONENT_P Tag = 0x420060
PRIME_EXPONENT_Q Tag = 0x420061
PRIME_FIELD_SIZE Tag = 0x420062
PRIVATE_EXPONENT Tag = 0x420063
PRIVATE_KEY Tag = 0x420064
PRIVATE_KEY_TEMPLATE_ATTRIBUTE Tag = 0x420065 // Designated '(Reserved)' in KMIP 2.0
PRIVATE_KEY_UNIQUE_IDENTIFIER Tag = 0x420066
PROCESS_START_DATE Tag = 0x420067
PROTECT_STOP_DATE Tag = 0x420068
PROTOCOL_VERSION Tag = 0x420069
PROTOCOL_VERSION_MAJOR Tag = 0x42006A
PROTOCOL_VERSION_MINOR Tag = 0x42006B
PUBLIC_EXPONENT Tag = 0x42006C
PUBLIC_KEY Tag = 0x42006D
PUBLIC_KEY_TEMPLATE_ATTRIBUTE Tag = 0x42006E // Designated '(Reserved)' in KMIP 2.0
PUBLIC_KEY_UNIQUE_IDENTIFIER Tag = 0x42006F
PUT_FUNCTION Tag = 0x420070
Q Tag = 0x420071
Q_STRING Tag = 0x420072
QLENGTH Tag = 0x420073
QUERY_FUNCTION Tag = 0x420074
RECOMMENDED_CURVE Tag = 0x420075
REPLACED_UNIQUE_IDENTIFIER Tag = 0x420076
REQUEST_BATCH_ITEM Tag = 0x42000F
REQUEST_HEADER Tag = 0x420077
REQUEST_MESSAGE Tag = 0x420078
REQUEST_PAYLOAD Tag = 0x420079
RESPONSE_BATCH_ITEM Tag = 0x42000F
RESPONSE_HEADER Tag = 0x42007A
RESPONSE_MESSAGE Tag = 0x42007B
RESPONSE_PAYLOAD Tag = 0x42007C
RESULT_MESSAGE Tag = 0x42007D
RESULT_REASON Tag = 0x42007E
RESULT_STATUS Tag = 0x42007F
REVOCATION_MESSAGE Tag = 0x420080
REVOCATION_REASON Tag = 0x420081
REVOCATION_REASON_CODE Tag = 0x420082
KEY_ROLE_TYPE Tag = 0x420083
SALT Tag = 0x420084
SECRET_DATA Tag = 0x420085
SECRET_DATA_TYPE Tag = 0x420086
SERIAL_NUMBER Tag = 0x420087 // Deprecated, designated '(Reserved)' in KMIP 2.0
SERVER_INFORMATION Tag = 0x420088
SPLIT_KEY Tag = 0x420089
SPLIT_KEY_METHOD Tag = 0x42008A
SPLIT_KEY_PARTS Tag = 0x42008B
SPLIT_KEY_THRESHOLD Tag = 0x42008C
STATE Tag = 0x42008D
STORAGE_STATUS_MASK Tag = 0x42008E
SYMMETRIC_KEY Tag = 0x42008F
TEMPLATE Tag = 0x420090 // Designated '(Reserved)' in KMIP 2.0
TEMPLATE_ATTRIBUTE Tag = 0x420091 // Designated '(Reserved)' in KMIP 2.0
TIME_STAMP Tag = 0x420092
UNIQUE_BATCH_ITEM_ID Tag = 0x420093
UNIQUE_IDENTIFIER Tag = 0x420094
USAGE_LIMITS Tag = 0x420095
USAGE_LIMITS_COUNT Tag = 0x420096
USAGE_LIMITS_TOTAL Tag = 0x420097
USAGE_LIMITS_UNIT Tag = 0x420098
USERNAME Tag = 0x420099
VALIDITY_DATE Tag = 0x42009A
VALIDITY_INDICATOR Tag = 0x42009B
VENDOR_EXTENSION Tag = 0x42009C
VENDOR_IDENTIFICATION Tag = 0x42009D
WRAPPING_METHOD Tag = 0x42009E
X Tag = 0x42009F
Y Tag = 0x4200A0
PASSWORD Tag = 0x4200A1
// KMIP 1.1
DEVICE_IDENTIFIER Tag = 0x4200A2
ENCODING_OPTION Tag = 0x4200A3
EXTENSION_INFORMATION Tag = 0x4200A4
EXTENSION_NAME Tag = 0x4200A5
EXTENSION_TAG Tag = 0x4200A6
EXTENSION_TYPE Tag = 0x4200A7
FRESH Tag = 0x4200A8
MACHINE_IDENTIFIER Tag = 0x4200A9
MEDIA_IDENTIFIER Tag = 0x4200AA
NETWORK_IDENTIFIER Tag = 0x4200AB
OBJECT_GROUP_MEMBER Tag = 0x4200AC
CERTIFICATE_LENGTH Tag = 0x4200AD
DIGITAL_SIGNATURE_ALGORITHM Tag = 0x4200AE
CERTIFICATE_SERIAL_NUMBER Tag = 0x4200AF
DEVICE_SERIAL_NUMBER Tag = 0x4200B0
ISSUER_ALTERNATIVE_NAME Tag = 0x4200B1
ISSUER_DISTINGUISHED_NAME Tag = 0x4200B2
SUBJECT_ALTERNATIVE_NAME Tag = 0x4200B3
SUBJECT_DISTINGUISHED_NAME Tag = 0x4200B4
X_509_CERTIFICATE_IDENTIFIER Tag = 0x4200B5
X_509_CERTIFICATE_ISSUER Tag = 0x4200B6
X_509_CERTIFICATE_SUBJECT Tag = 0x4200B7
// KMIP 1.2
KEY_VALUE_LOCATION Tag = 0x4200B8
KEY_VALUE_LOCATION_VALUE Tag = 0x4200B9
KEY_VALUE_LOCATION_TYPE Tag = 0x4200BA
KEY_VALUE_PRESENT Tag = 0x4200BB
ORIGINAL_CREATION_DATE Tag = 0x4200BC
PGP_KEY Tag = 0x4200BD
PGP_KEY_VERSION Tag = 0x4200BE
ALTERNATIVE_NAME Tag = 0x4200BF
ALTERNATIVE_NAME_VALUE Tag = 0x4200C0
ALTERNATIVE_NAME_TYPE Tag = 0x4200C1
DATA Tag = 0x4200C2
SIGNATURE_DATA Tag = 0x4200C3
DATA_LENGTH Tag = 0x4200C4
RANDOM_IV Tag = 0x4200C5
MAC_DATA Tag = 0x4200C6
ATTESTATION_TYPE Tag = 0x4200C7
NONCE Tag = 0x4200C8
NONCE_ID Tag = 0x4200C9
NONCE_VALUE Tag = 0x4200CA
ATTESTATION_MEASUREMENT Tag = 0x4200CB
ATTESTATION_ASSERTION Tag = 0x4200CC
IV_LENGTH Tag = 0x4200CD
TAG_LENGTH Tag = 0x4200CE
FIXED_FIELD_LENGTH Tag = 0x4200CF
COUNTER_LENGTH Tag = 0x4200D0
INITIAL_COUNTER_VALUE Tag = 0x4200D1
INVOCATION_FIELD_LENGTH Tag = 0x4200D2
ATTESTATION_CAPABLE_INDICATOR Tag = 0x4200D3
// KMIP 1.3
OFFSET_ITEMS Tag = 0x4200D4
LOCATED_ITEMS Tag = 0x4200D5
CORRELATION_VALUE Tag = 0x4200D6
INIT_INDICATOR Tag = 0x4200D7
FINAL_INDICATOR Tag = 0x4200D8
RNG_PARAMETERS Tag = 0x4200D9
RNG_ALGORITHM Tag = 0x4200DA
DRBG_ALGORITHM Tag = 0x4200DB
FIPS186_VARIATION Tag = 0x4200DC
PREDICTION_RESISTANCE Tag = 0x4200DD
RANDOM_NUMBER_GENERATOR Tag = 0x4200DE
VALIDATION_INFORMATION Tag = 0x4200DF
VALIDATION_AUTHORITY_TYPE Tag = 0x4200E0
VALIDATION_AUTHORITY_COUNTRY Tag = 0x4200E1
VALIDATION_AUTHORITY_URI Tag = 0x4200E2
VALIDATION_VERSION_MAJOR Tag = 0x4200E3
VALIDATION_VERSION_MINOR Tag = 0x4200E4
VALIDATION_TYPE Tag = 0x4200E5
VALIDATION_LEVEL Tag = 0x4200E6
VALIDATION_CERTIFICATE_IDENTIFIER Tag = 0x4200E7
VALIDATION_CERTIFICATE_URI Tag = 0x4200E8
VALIDATION_VENDOR_URI Tag = 0x4200E9
VALIDATION_PROFILE Tag = 0x4200EA
PROFILE_INFORMATION Tag = 0x4200EB
PROFILE_NAME Tag = 0x4200EC
SERVER_URI Tag = 0x4200ED
SERVER_PORT Tag = 0x4200EE
STREAMING_CAPABILITY Tag = 0x4200EF
ASYNCHRONOUS_CAPABILITY Tag = 0x4200F0
ATTESTATION_CAPABILITY Tag = 0x4200F1
UNWRAP_MODE Tag = 0x4200F2
DESTROY_ACTION Tag = 0x4200F3
SHREDDING_ALGORITHM Tag = 0x4200F4
RNG_MODE Tag = 0x4200F5
CLIENT_REGISTRATION_METHOD Tag = 0x4200F6
CAPABILITY_INFORMATION Tag = 0x4200F7
// KMIP 1.4
KEY_WRAP_TYPE Tag = 0x4200F8
BATCH_UNDO_CAPABILITY Tag = 0x4200F9
BATCH_CONTINUE_CAPABILITY Tag = 0x4200FA
PKCS12_FRIENDLY_NAME Tag = 0x4200FB
DESCRIPTION Tag = 0x4200FC
COMMENT Tag = 0x4200FD
AUTHENTICATED_ENCRYPTION_ADDITIONAL_DATA Tag = 0x4200FE
AUTHENTICATED_ENCRYPTION_TAG Tag = 0x4200FF
SALT_LENGTH Tag = 0x420100
MASK_GENERATOR Tag = 0x420101
MASK_GENERATOR_HASHING_ALGORITHM Tag = 0x420102
P_SOURCE Tag = 0x420103
TRAILER_FIELD Tag = 0x420104
CLIENT_CORRELATION_VALUE Tag = 0x420105
SERVER_CORRELATION_VALUE Tag = 0x420106
DIGESTED_DATA Tag = 0x420107
CERTIFICATE_SUBJECT_CN Tag = 0x420108
CERTIFICATE_SUBJECT_O Tag = 0x420109
CERTIFICATE_SUBJECT_OU Tag = 0x42010A
CERTIFICATE_SUBJECT_EMAIL Tag = 0x42010B
CERTIFICATE_SUBJECT_C Tag = 0x42010C
CERTIFICATE_SUBJECT_ST Tag = 0x42010D
CERTIFICATE_SUBJECT_L Tag = 0x42010E
CERTIFICATE_SUBJECT_UID Tag = 0x42010F
CERTIFICATE_SUBJECT_SERIAL_NUMBER Tag = 0x420110
CERTIFICATE_SUBJECT_TITLE Tag = 0x420111
CERTIFICATE_SUBJECT_DC Tag = 0x420112
CERTIFICATE_SUBJECT_DN_QUALIFIER Tag = 0x420113
CERTIFICATE_ISSUER_CN Tag = 0x420114
CERTIFICATE_ISSUER_O Tag = 0x420115
CERTIFICATE_ISSUER_OU Tag = 0x420116
CERTIFICATE_ISSUER_EMAIL Tag = 0x420117
CERTIFICATE_ISSUER_C Tag = 0x420118
CERTIFICATE_ISSUER_ST Tag = 0x420119
CERTIFICATE_ISSUER_L Tag = 0x42011A
CERTIFICATE_ISSUER_UID Tag = 0x42011B
CERTIFICATE_ISSUER_SERIAL_NUMBER Tag = 0x42011C
CERTIFICATE_ISSUER_TITLE Tag = 0x42011D
CERTIFICATE_ISSUER_DC Tag = 0x42011E
CERTIFICATE_ISSUER_DN_QUALIFIER Tag = 0x42011F
SENSITIVE Tag = 0x420120
ALWAYS_SENSITIVE Tag = 0x420121
EXTRACTABLE Tag = 0x420122
NEVER_EXTRACTABLE Tag = 0x420123
REPLACE_EXISTING Tag = 0x420124
// KMIP 2.0
ATTRIBUTES Tag = 0x420125
COMMON_ATTRIBUTES Tag = 0x420126
PRIVATE_KEY_ATTRIBUTES Tag = 0x420127
PUBLIC_KEY_ATTRIBUTES Tag = 0x420128
EXTENSION_ENUMERATION Tag = 0x420129
EXTENSION_ATTRIBUTE Tag = 0x42012A
EXTENSION_PARENT_STRUCTURE_TAG Tag = 0x42012B
EXTENSION_DESCRIPTION Tag = 0x42012C
SERVER_NAME Tag = 0x42012D
SERVER_SERIAL_NUMBER Tag = 0x42012E
SERVER_VERSION Tag = 0x42012F
SERVER_LOAD Tag = 0x420130
PRODUCT_NAME Tag = 0x420131
BUILD_LEVEL Tag = 0x420132
BUILD_DATE Tag = 0x420133
CLUSTER_INFO Tag = 0x420134
ALTERNATE_FAILOVER_ENDPOINTS Tag = 0x420135
SHORT_UNIQUE_IDENTIFIER Tag = 0x420136
RESERVED Tag = 0x420137
TAG Tag = 0x420138
CERTIFICATE_REQUEST_UNIQUE_IDENTIFIER Tag = 0x420139
NIST_KEY_TYPE Tag = 0x42013A
ATTRIBUTE_REFERENCE Tag = 0x42013B
CURRENT_ATTRIBUTE Tag = 0x42013C
NEW_ATTRIBUTE Tag = 0x42013D
// 0x42013E is designated '(Reserved)' in KMIP 2.0
// 0x42013F is designated '(Reserved)' in KMIP 2.0
CERTIFICATE_REQUEST_VALUE Tag = 0x420140
LOG_MESSAGE Tag = 0x420141
PROFILE_VERSION Tag = 0x420142
PROFILE_VERSION_MAJOR Tag = 0x420143
PROFILE_VERSION_MINOR Tag = 0x420144
PROTECTION_LEVEL Tag = 0x420145
PROTECTION_PERIOD Tag = 0x420146
QUANTUM_SAFE Tag = 0x420147
QUANTUM_SAFE_CAPABILITY Tag = 0x420148
TICKET Tag = 0x420149
TICKET_TYPE Tag = 0x42014A
TICKET_VALUE Tag = 0x42014B
REQUEST_COUNT Tag = 0x42014C
RIGHTS Tag = 0x42014D
OBJECTS Tag = 0x42014E
OPERATIONS Tag = 0x42014F
RIGHT Tag = 0x420150
ENDPOINT_ROLE Tag = 0x420151
DEFAULTS_INFORMATION Tag = 0x420152
OBJECT_DEFAULTS Tag = 0x420153
EPHEMERAL Tag = 0x420154
SERVER_HASHED_PASSWORD Tag = 0x420155
ONE_TIME_PASSWORD Tag = 0x420156
HASHED_PASSWORD Tag = 0x420157
ADJUSTMENT_TYPE Tag = 0x420158
PKCS11_INTERFACE Tag = 0x420159
PKCS11_FUNCTION Tag = 0x42015A
PKCS11_INPUT_PARAMETERS Tag = 0x42015B
PKCS11_OUTPUT_PARAMETERS Tag = 0x42015C
PKCS11_RETURN_CODE Tag = 0x42015D
PROTECTION_STORAGE_MASK Tag = 0x42015E
PROTECTION_STORAGE_MASKS Tag = 0x42015F
INTEROP_FUNCTION Tag = 0x420160
INTEROP_IDENTIFIER Tag = 0x420161
ADJUSTMENT_VALUE Tag = 0x420162
)
// KMIP Types
const (
STRUCTURE Type = 0x01
INTEGER Type = 0x02
LONG_INTEGER Type = 0x03
BIG_INTEGER Type = 0x04
ENUMERATION Type = 0x05
BOOLEAN Type = 0x06
TEXT_STRING Type = 0x07
BYTE_STRING Type = 0x08
DATE_TIME Type = 0x09
INTERVAL Type = 0x0A
)
// KMIP Operations
const (
// KMIP 1.0
OPERATION_CREATE Enum = 0x00000001
OPERATION_CREATE_KEY_PAIR Enum = 0x00000002
OPERATION_REGISTER Enum = 0x00000003
OPERATION_REKEY Enum = 0x00000004
OPERATION_DERIVE_KEY Enum = 0x00000005
OPERATION_CERTIFY Enum = 0x00000006
OPERATION_RECERTIFY Enum = 0x00000007
OPERATION_LOCATE Enum = 0x00000008
OPERATION_CHECK Enum = 0x00000009
OPERATION_GET Enum = 0x0000000A
OPERATION_GET_ATTRIBUTES Enum = 0x0000000B
OPERATION_GET_ATTRIBUTE_LIST Enum = 0x0000000C
OPERATION_ADD_ATTRIBUTE Enum = 0x0000000D
OPERATION_MODIFY_ATTRIBUTE Enum = 0x0000000E
OPERATION_DELETE_ATTRIBUTE Enum = 0x0000000F
OPERATION_OBTAIN_LEASE Enum = 0x00000010
OPERATION_GET_USAGE_ALLOCATION Enum = 0x00000011
OPERATION_ACTIVATE Enum = 0x00000012
OPERATION_REVOKE Enum = 0x00000013
OPERATION_DESTROY Enum = 0x00000014
OPERATION_ARCHIVE Enum = 0x00000015
OPERATION_RECOVER Enum = 0x00000016
OPERATION_VALIDATE Enum = 0x00000017
OPERATION_QUERY Enum = 0x00000018
OPERATION_CANCEL Enum = 0x00000019
OPERATION_POLL Enum = 0x0000001A
OPERATION_NOTIFY Enum = 0x0000001B
OPERATION_PUT Enum = 0x0000001C
// KMIP 1.1
OPERATION_REKEY_KEY_PAIR Enum = 0x0000001D
OPERATION_DISCOVER_VERSIONS Enum = 0x0000001E
// KMIP 1.2
OPERATION_ENCRYPT Enum = 0x0000001F
OPERATION_DECRYPT Enum = 0x00000020
OPERATION_SIGN Enum = 0x00000021
OPERATION_SIGNATURE_VERIFY Enum = 0x00000022
OPERATION_MAC Enum = 0x00000023
OPERATION_MAC_VERIFY Enum = 0x00000024
OPERATION_RNG_RETRIEVE Enum = 0x00000025
OPERATION_RNG_SEED Enum = 0x00000026
OPERATION_HASH Enum = 0x00000027
OPERATION_CREATE_SPLIT_KEY Enum = 0x00000028
OPERATION_JOIN_SPLIT_KEY Enum = 0x00000029
// KMIP 1.4
OPERATION_IMPORT Enum = 0x0000002A
OPERATION_EXPORT Enum = 0x0000002B
// KMIP 2.0
OPERATION_LOG Enum = 0x0000002C
OPERATION_LOGIN Enum = 0x0000002D
OPERATION_LOGOUT Enum = 0x0000002E
OPERATION_DELEGATED_LOGIN Enum = 0x0000002F
OPERATION_ADJUST_ATTRIBUTE Enum = 0x00000030
OPERATION_SET_ATTRIBUTE Enum = 0x00000031
OPERATION_SET_ENDPOINT_ROLE Enum = 0x00000032
OPERATION_PKCS_11 Enum = 0x00000033
OPERATION_INTEROP Enum = 0x00000034
OPERATION_REPROVISION Enum = 0x00000035
)
// KMIP Object Types
const (
// KMIP 1.0
OBJECT_TYPE_CERTIFICATE Enum = 0x00000001
OBJECT_TYPE_SYMMETRIC_KEY Enum = 0x00000002
OBJECT_TYPE_PUBLIC_KEY Enum = 0x00000003
OBJECT_TYPE_PRIVATE_KEY Enum = 0x00000004
OBJECT_TYPE_SPLIT_KEY Enum = 0x00000005
OBJECT_TYPE_TEMPLATE Enum = 0x00000006 // Deprecated in KMIP 1.3, designated '(Reserved)' in KMIP 2.0
OBJECT_TYPE_SECRET_DATA Enum = 0x00000007
OBJECT_TYPE_OPAQUE_DATA Enum = 0x00000008
// KMIP 1.2
OBJECT_TYPE_PGP_KEY Enum = 0x00000009
// KMIP 2.0
OBJECT_TYPE_CERTIFICATE_REQUEST Enum = 0x0000000A
)
// KMIP States
const (
// KMIP 1.0
STATE_PRE_ACTIVE Enum = 0x00000001
STATE_ACTIVE Enum = 0x00000002
STATE_DEACTIVATED Enum = 0x00000003
STATE_COMPROMISED Enum = 0x00000004
STATE_DESTROYED Enum = 0x00000005
STATE_DESTROYED_COMPROMISED Enum = 0x00000006
)
// KMIP Key Formats
const (
// KMIP 1.0
KEY_FORMAT_RAW Enum = 0x00000001
KEY_FORMAT_OPAQUE Enum = 0x00000002
KEY_FORMAT_PKCS_1 Enum = 0x00000003
KEY_FORMAT_PKCS_8 Enum = 0x00000004
KEY_FORMAT_X_509 Enum = 0x00000005
KEY_FORMAT_EC_PRIVATE_KEY Enum = 0x00000006
KEY_FORMAT_TRANSPARENT_SYMMETRIC_KEY Enum = 0x00000007
KEY_FORMAT_TRANSPARENT_DSA_PRIVATE_KEY Enum = 0x00000008
KEY_FORMAT_TRANSPARENT_DSA_PUBLIC_KEY Enum = 0x00000009
KEY_FORMAT_TRANSPARENT_RSA_PRIVATE_KEY Enum = 0x0000000A
KEY_FORMAT_TRANSPARENT_RSA_PUBLIC_KEY Enum = 0x0000000B
KEY_FORMAT_TRANSPARENT_DH_PRIVATE_KEY Enum = 0x0000000C
KEY_FORMAT_TRANSPARENT_DH_PUBLIC_KEY Enum = 0x0000000D
KEY_FORMAT_TRANSPARENT_ECDSA_PRIVATE_KEY Enum = 0x0000000E // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
KEY_FORMAT_TRANSPARENT_ECDSA_PUBLIC_KEY Enum = 0x0000000F // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
KEY_FORMAT_TRANSPARENT_ECDH_PRIVATE_KEY Enum = 0x00000010 // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
KEY_FORMAT_TRANSPARENT_ECDH_PUBLIC_KEY Enum = 0x00000011 // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
KEY_FORMAT_TRANSPARENT_ECMQV_PRIVATE_KEY Enum = 0x00000012 // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
KEY_FORMAT_TRANSPARENT_ECMQV_PUBLIC_KEY Enum = 0x00000013 // Deprecated in KMIP 1.4, designated '(Reserved)' in KMIP 2.0
// KMIP 1.3
KEY_FORMAT_TRANSPARENT_EC_PRIVATE_KEY Enum = 0x00000014
KEY_FORMAT_TRANSPARENT_EC_PUBLIC_KEY Enum = 0x00000015
// KMIP 1.4
KEY_FORMAT_PKCS_12 Enum = 0x00000016
)
// KMIP Key Wrap Types
const (
KEY_WRAP_NOT_WRAPPED Enum = 0x00000001
KEY_WRAP_AS_REGISTERED Enum = 0x00000002
)
// KMIP Wrapping Methods
const (
// KMIP 1.0
WRAPPING_METHOD_ENCRYPT Enum = 0x00000001
WRAPPING_METHOD_MAC_SIGN Enum = 0x00000002
WRAPPING_METHOD_ENCRYPT_THEN_MAC_SIGN Enum = 0x00000003
WRAPPING_METHOD_MAC_SIGN_THEN_ENCRYPT Enum = 0x00000004
WRAPPING_METHOD_TR_31 Enum = 0x00000005
)
// KMIP Key Compression Types
const (
// KMIP 1.0
KEY_COMPRESSION_EC_PUBLIC_KEY_TYPE_UNCOMPRESSED Enum = 0x00000001
KEY_COMPRESSION_EC_PUBLIC_KEY_TYPE_X9_62_COMPRESSED_PRIME Enum = 0x00000002
KEY_COMPRESSION_EC_PUBLIC_KEY_TYPE_X9_62_COMPRESSED_CHAR2 Enum = 0x00000003
KEY_COMPRESSION_EC_PUBLIC_KEY_TYPE_X9_62_HYBRID Enum = 0x00000004
)
// KMIP Name Types
const (
NAME_TYPE_UNINTERPRETED_TEXT_STRING Enum = 0x00000001
NAME_TYPE_URI Enum = 0x00000002
)
// KMIP Crypto Algorithms
const (
// KMIP 1.0
CRYPTO_DES Enum = 0x00000001
CRYPTO_TRIPLE_DES Enum = 0x00000002 // '3DES' is invalid syntax
CRYPTO_AES Enum = 0x00000003
CRYPTO_RSA Enum = 0x00000004
CRYPTO_DSA Enum = 0x00000005
CRYPTO_ECDSA Enum = 0x00000006
CRYPTO_HMAC_SHA1 Enum = 0x00000007
CRYPTO_HMAC_SHA224 Enum = 0x00000008
CRYPTO_HMAC_SHA256 Enum = 0x00000009
CRYPTO_HMAC_SHA384 Enum = 0x0000000A
CRYPTO_HMAC_SHA512 Enum = 0x0000000B
CRYPTO_HMAC_MD5 Enum = 0x0000000C
CRYPTO_DH Enum = 0x0000000D
CRYPTO_ECDH Enum = 0x0000000E
CRYPTO_ECMQV Enum = 0x0000000F
CRYPTO_BLOWFISH Enum = 0x00000010
CRYPTO_CAMELLIA Enum = 0x00000011
CRYPTO_CAST5 Enum = 0x00000012
CRYPTO_IDEA Enum = 0x00000013
CRYPTO_MARS Enum = 0x00000014
CRYPTO_RC2 Enum = 0x00000015
CRYPTO_RC4 Enum = 0x00000016
CRYPTO_RC5 Enum = 0x00000017
CRYPTO_SKIPJACK Enum = 0x00000018
CRYPTO_TWOFISH Enum = 0x00000019
// KMIP 1.2
CRYPTO_EC Enum = 0x0000001A
// KMIP 1.3
CRYPTO_ONE_TIME_PAD Enum = 0x0000001B
// KMIP 1.4
CRYPTO_CHACHA20 Enum = 0x0000001C
CRYPTO_POLY1305 Enum = 0x0000001D
CRYPTO_CHACHA20_POLY1305 Enum = 0x0000001E
CRYPTO_SHA3_224 Enum = 0x0000001F
CRYPTO_SHA3_256 Enum = 0x00000020
CRYPTO_SHA3_384 Enum = 0x00000021
CRYPTO_SHA3_512 Enum = 0x00000022
CRYPTO_HMAC_SHA3_224 Enum = 0x00000023
CRYPTO_HMAC_SHA3_256 Enum = 0x00000024
CRYPTO_HMAC_SHA3_384 Enum = 0x00000025
CRYPTO_HMAC_SHA3_512 Enum = 0x00000026
CRYPTO_SHAKE_128 Enum = 0x00000027
CRYPTO_SHAKE_256 Enum = 0x00000028
// KMIP 2.0
CRYPTO_ARIA Enum = 0x00000029
CRYPTO_SEED Enum = 0x0000002A
CRYPTO_SM2 Enum = 0x0000002B
CRYPTO_SM3 Enum = 0x0000002C
CRYPTO_SM4 Enum = 0x0000002D
CRYPTO_GOST_R_34_10_2012 Enum = 0x0000002E
CRYPTO_GOST_R_34_11_2012 Enum = 0x0000002F
CRYPTO_GOST_R_34_13_2015 Enum = 0x00000030
CRYPTO_GOST_28147_89 Enum = 0x00000031
CRYPTO_XMSS Enum = 0x00000032
CRYPTO_SPHINCS_256 Enum = 0x00000033
CRYPTO_MCELIECE Enum = 0x00000034
CRYPTO_MCELIECE_6960119 Enum = 0x00000035
CRYPTO_MCELIECE_8192128 Enum = 0x00000036
CRYPTO_ED25519 Enum = 0x00000037
CRYPTO_ED448 Enum = 0x00000038
)
// KMIP Padding Method Enumeration
const (
// KMIP 1.0
PADDING_METHOD_NONE Enum = 0x00000001
PADDING_METHOD_OAEP Enum = 0x00000002
PADDING_METHOD_PKCS_5 Enum = 0x00000003
PADDING_METHOD_SSL_3 Enum = 0x00000004
PADDING_METHOD_ZEROS Enum = 0x00000005
PADDING_METHOD_ANSI_X9_23 Enum = 0x00000006
PADDING_METHOD_ISO_10126 Enum = 0x00000007
PADDING_METHOD_PKCS_1_V1_5 Enum = 0x00000008
PADDING_METHOD_X9_31 Enum = 0x00000009
PADDING_METHOD_PSS Enum = 0x0000000A
)
// KMIP Hash Algorithms
const (
// KMIP 1.0
HASH_MD2 Enum = 0x00000001
HASH_MD4 Enum = 0x00000002
HASH_MD5 Enum = 0x00000003
HASH_SHA1 Enum = 0x00000004
HASH_SHA224 Enum = 0x00000005
HASH_SHA256 Enum = 0x00000006
HASH_SHA384 Enum = 0x00000007
HASH_SHA512 Enum = 0x00000008
HASH_RIPEMD_160 Enum = 0x00000009
HASH_TIGER Enum = 0x0000000A
HASH_WHIRLPOOL Enum = 0x0000000B
// KMIP 1.2
HASH_SHA512_224 Enum = 0x0000000C
HASH_SHA512_256 Enum = 0x0000000D
// KMIP 1.4
HASH_SHA3_224 Enum = 0x0000000E
HASH_SHA3_256 Enum = 0x0000000F
HASH_SHA3_384 Enum = 0x00000010
HASH_SHA3_512 Enum = 0x00000011
)
// KMIP Credential Type
const (
// KMIP 1.0
CREDENTIAL_TYPE_USERNAME_AND_PASSWORD Enum = 0x00000001
// KMIP 1.1
CREDENTIAL_TYPE_DEVICE Enum = 0x00000002
// KMIP 1.2
CREDENTIAL_TYPE_ATTESTATION Enum = 0x00000003
// KMIP 2.0
CREDENTIAL_TYPE_ONE_TIME_PASSWORD Enum = 0x00000004
CREDENTIAL_TYPE_HASHED_PASSWORD Enum = 0x00000005
CREDENTIAL_TYPE_TICKET Enum = 0x00000006
)
// KMIP Result Status
const (
RESULT_STATUS_SUCCESS Enum = 0x00000000
RESULT_STATUS_OPERATION_FAILED Enum = 0x00000001
RESULT_STATUS_OPERATION_PENDING Enum = 0x00000002
RESULT_STATUS_OPERATION_UNDONE Enum = 0x00000003
)
// KMIP Result Reason
const (
// KMIP 1.0
RESULT_REASON_ITEM_NOT_FOUND Enum = 0x00000001
RESULT_REASON_RESPONSE_TOO_LARGE Enum = 0x00000002
RESULT_REASON_AUTHENTICATION_NOT_SUCCESSFUL Enum = 0x00000003
RESULT_REASON_INVALID_MESSAGE Enum = 0x00000004
RESULT_REASON_OPERATION_NOT_SUPPORTED Enum = 0x00000005
RESULT_REASON_MISSING_DATA Enum = 0x00000006
RESULT_REASON_INVALID_FIELD Enum = 0x00000007
RESULT_REASON_FEATURE_NOT_SUPPORTED Enum = 0x00000008
RESULT_REASON_OPERATION_CANCELED_BY_REQUESTER Enum = 0x00000009
RESULT_REASON_CRYPTOGRAPHIC_FAILURE Enum = 0x0000000A
RESULT_REASON_ILLEGAL_OPERATION Enum = 0x0000000B
RESULT_REASON_PERMISSION_DENIED Enum = 0x0000000C
RESULT_REASON_OBJECT_ARCHIVED Enum = 0x0000000D
RESULT_REASON_INDEX_OUT_OF_BOUNDS Enum = 0x0000000E
RESULT_REASON_APPLICATION_NAMESPACE_NOT_SUPPORTED Enum = 0x0000000F
RESULT_REASON_KEY_FORMAT_TYPE_NOT_SUPPORTED Enum = 0x00000010
RESULT_REASON_KEY_COMPRESSION_TYPE_NOT_SUPPORTED Enum = 0x00000011
RESULT_REASON_ENCODING_OPTION_ERROR Enum = 0x00000012
RESULT_REASON_KEY_VALUE_NOT_PRESENT Enum = 0x00000013
RESULT_REASON_ATTESTATION_REQUIRED Enum = 0x00000014
RESULT_REASON_ATTESTATION_FAILED Enum = 0x00000015
RESULT_REASON_SENSITIVE Enum = 0x00000016
RESULT_REASON_NOT_EXTRACTABLE Enum = 0x00000017
RESULT_REASON_OBJECT_ALREADY_EXISTS Enum = 0x00000018
RESULT_REASON_GENERAL_FAILURE Enum = 0x00000100
// KMIP 2.0
RESULT_REASON_INVALID_TICKET Enum = 0x00000019
RESULT_REASON_USAGE_LIMIT_EXCEEDED Enum = 0x0000001A
RESULT_REASON_NUMERIC_RANGE Enum = 0x0000001B
RESULT_REASON_INVALID_DATA_TYPE Enum = 0x0000001C
RESULT_REASON_READ_ONLY_ATTRIBUTE Enum = 0x0000001D
RESULT_REASON_MULTI_VALUED_ATTRIBUTE Enum = 0x0000001E
RESULT_REASON_UNSUPPORTED_ATTRIBUTE Enum = 0x0000001F
RESULT_REASON_ATTRIBUTE_INSTANCE_NOT_FOUND Enum = 0x00000020
RESULT_REASON_ATTRIBUTE_NOT_FOUND Enum = 0x00000021
RESULT_REASON_ATTRIBUTE_READ_ONLY Enum = 0x00000022
RESULT_REASON_ATTRIBUTE_SINGLE_VALUED Enum = 0x00000023
RESULT_REASON_BAD_CRYPTOGRAPHIC_PARAMETERS Enum = 0x00000024
RESULT_REASON_BAD_PASSWORD Enum = 0x00000025
RESULT_REASON_CODEC_ERROR Enum = 0x00000026
// 0x00000027 is designated '(Reserved)' in KMIP 2.0
RESULT_REASON_ILLEGAL_OBJECT_TYPE Enum = 0x00000028
RESULT_REASON_INCOMPATIBLE_CRYPTOGRAPHIC_USAGE_MASK Enum = 0x00000029
RESULT_REASON_INTERNAL_SERVER_ERROR Enum = 0x0000002A
RESULT_REASON_INVALID_ASYNCHRONOUS_CORRELATION_VALUE Enum = 0x0000002B
RESULT_REASON_INVALID_ATTRIBUTE Enum = 0x0000002C
RESULT_REASON_INVALID_ATTRIBUTE_VALUE Enum = 0x0000002D
RESULT_REASON_INVALID_CORRELATION_VALUE Enum = 0x0000002E
RESULT_REASON_INVALID_CSR Enum = 0x0000002F
RESULT_REASON_INVALID_OBJECT_TYPE Enum = 0x00000030
// 0x00000031 is designated '(Reserved)' in KMIP 2.0
RESULT_REASON_KEY_WRAP_TYPE_NOT_SUPPORTED Enum = 0x00000032
// 0x00000033 is designated '(Reserved)' in KMIP 2.0
RESULT_REASON_MISSING_INITIALIZATION_VECTOR Enum = 0x00000034
RESULT_REASON_NON_UNIQUE_NAME_ATTRIBUTE Enum = 0x00000035
RESULT_REASON_OBJECT_DESTROYED Enum = 0x00000036
RESULT_REASON_OBJECT_NOT_FOUND Enum = 0x00000037
// 0x00000038 is unassigned
RESULT_REASON_NOT_AUTHORISED Enum = 0x00000039
RESULT_REASON_SERVER_LIMIT_EXCEEDED Enum = 0x0000003A
RESULT_REASON_UNKNOWN_ENUMERATION Enum = 0x0000003B
RESULT_REASON_UNKNOWN_MESSAGE_EXTENSION Enum = 0x0000003C
RESULT_REASON_UNKNOWN_TAG Enum = 0x0000003D
RESULT_REASON_UNSUPPORTED_CRYPTOGRAPHIC_PARAMETERS Enum = 0x0000003E
RESULT_REASON_UNSUPPORTED_PROTOCOL_VERSION Enum = 0x0000003F
RESULT_REASON_WRAPPING_OBJECT_ARCHIVED Enum = 0x00000040
RESULT_REASON_WRAPPING_OBJECT_DESTROYED Enum = 0x00000041
RESULT_REASON_WRAPPING_OBJECT_NOT_FOUND Enum = 0x00000042
RESULT_REASON_WRONG_KEY_LIFECYCLE_STATE Enum = 0x00000043
RESULT_REASON_PROTECTION_STORAGE_UNAVAILABLE Enum = 0x00000044
RESULT_REASON_PKCS11_CODEC_ERROR Enum = 0x00000045
RESULT_REASON_PKCS11_INVALID_FUNCTION Enum = 0x00000046
RESULT_REASON_PKCS11_INVALID_INTERFACE Enum = 0x00000047
)
const (
REVOCATION_REASON_UNSPECIFIED Enum = 0x0000001
REVOCATION_REASON_KEY_COMPROMISE Enum = 0x0000002
REVOCATION_REASON_CA_COMPROMISE Enum = 0x0000003
REVOCATION_REASON_AFFILIATION_CHANGED Enum = 0x0000004
REVOCATION_REASON_SUPERSEDED Enum = 0x0000005
REVOCATION_REASON_CESSATION_OF_OPERATION Enum = 0x0000006
REVOCATION_REASON_PRIVILEGE_WITHDRAWN Enum = 0x0000007
)
const (
CRYPTO_USAGE_MASK_SIGN Enum = 0x00000001
CRYPTO_USAGE_MASK_VERIFY Enum = 0x00000002
CRYPTO_USAGE_MASK_ENCRYPT Enum = 0x00000004
CRYPTO_USAGE_MASK_DECRYPT Enum = 0x00000008
CRYPTO_USAGE_MASK_WRAP_KEY Enum = 0x00000010
CRYPTO_USAGE_MASK_UNWRAP_KEY Enum = 0x00000020
CRYPTO_USAGE_MASK_EXPORT Enum = 0x00000040
CRYPTO_USAGE_MASK_MAC_GENERATE Enum = 0x00000080
CRYPTO_USAGE_MASK_MAC_VERIFY Enum = 0x00000100
CRYPTO_USAGE_MASK_DERIVE_KEY Enum = 0x00000200
CRYPTO_USAGE_MASK_CONTENT_COMMITMENT Enum = 0x00000400
CRYPTO_USAGE_MASK_KEY_AGREEMENT Enum = 0x00000800
CRYPTO_USAGE_MASK_CERTIFICATE_SIGN Enum = 0x00001000
CRYPTO_USAGE_MASK_CRL_SIGN Enum = 0x00002000
CRYPTO_USAGE_MASK_GENERATE_CRYPTOGRAM Enum = 0x00004000
CRYPTO_USAGE_MASK_VALIDATE_CRYPTOGRAM Enum = 0x00008000
CRYPTO_USAGE_MASK_TRANSLATE_ENCRYPT Enum = 0x00010000
CRYPTO_USAGE_MASK_TRANSLATE_DECRYPT Enum = 0x00020000
CRYPTO_USAGE_MASK_TRANSLATE_WRAP Enum = 0x00040000
CRYPTO_USAGE_MASK_TRANSLATE_UNWRAP Enum = 0x00080000
)
// KMIP Block Cipher Mode Enumeration.
const (
BLOCK_MODE_CBC Enum = 0x00000001
BLOCK_MODE_ECB Enum = 0x00000002
BLOCK_MODE_PCBC Enum = 0x00000003
BLOCK_MODE_CFB Enum = 0x00000004
BLOCK_MODE_OFB Enum = 0x00000005
BLOCK_MODE_CTR Enum = 0x00000006
BLOCK_MODE_CMAC Enum = 0x00000007
BLOCK_MODE_CCM Enum = 0x00000008
BLOCK_MODE_GCM Enum = 0x00000009
BLOCK_MODE_CBC_MAC Enum = 0x0000000A
BLOCK_MODE_XTS Enum = 0x0000000B
BLOCK_MODE_AESKeyWrapPadding Enum = 0x0000000C
BLOCK_MODE_NISTKeyWrap Enum = 0x0000000D
BLOCK_MODE_X9_102_AESKW Enum = 0x0000000E
BLOCK_MODE_X9_102_TDKW Enum = 0x0000000F
BLOCK_MODE_X9_102_AKW1 Enum = 0x00000010
BLOCK_MODE_X9_102_AKW2 Enum = 0x00000011
BLOCK_MODE_AEAD Enum = 0x00000012
)
// KMIP Attribute Names.
const (
ATTRIBUTE_NAME_UNIQUE_IDENTIFIER = "Unique Identifier"
ATTRIBUTE_NAME_NAME = "Name"
ATTRIBUTE_NAME_OBJECT_TYPE = "Object Type"
ATTRIBUTE_NAME_CRYPTOGRAPHIC_ALGORITHM = "Cryptographic Algorithm"
ATTRIBUTE_NAME_CRYPTOGRAPHIC_LENGTH = "Cryptographic Length"
ATTRIBUTE_NAME_CRYPTOGRAPHIC_PARAMETERS = "Cryptographic Parameters"
ATTRIBUTE_NAME_CRYPTOGRAPHIC_DOMAIN_PARAMETERS = "Cryptographic Domain Parameters"
ATTRIBUTE_NAME_CERTIFICATE_TYPE = "Certificate Type"
ATTRIBUTE_NAME_CERTIFICATE_LENGTH = "Certificate Length"
ATTRIBUTE_NAME_X_509_CERTIFICATE_IDENTIFIER = "X.509 Certificate Identifier"
ATTRIBUTE_NAME_X_509_CERTIFICATE_SUBJECT = "X.509 Certificate Subject"
ATTRIBUTE_NAME_X_509_CERTIFICATE_ISSUER = "X.509 Certificate Issuer"
ATTRIBUTE_NAME_CERTIFICATE_IDENTIFIER = "Certificate Identifier"
ATTRIBUTE_NAME_CERTIFICATE_SUBJECT = "Certificate Subject"
ATTRIBUTE_NAME_CERTIFICATE_ISSUER = "Certificate Issuer"
ATTRIBUTE_NAME_DIGITAL_SIGNATURE_ALGORITHM = "Digital Signature Algorithm"
ATTRIBUTE_NAME_DIGEST = "Digest"
ATTRIBUTE_NAME_OPERATION_POLICY_NAME = "Operation Policy Name"
ATTRIBUTE_NAME_CRYPTOGRAPHIC_USAGE_MASK = "Cryptographic Usage Mask"
ATTRIBUTE_NAME_LEASE_TIME = "Lease Time"
ATTRIBUTE_NAME_USAGE_LIMITS = "Usage Limits"
ATTRIBUTE_NAME_STATE = "State"
ATTRIBUTE_NAME_INITIAL_DATE = "Initial Date"
ATTRIBUTE_NAME_ACTIVATION_DATE = "Activation Date"
ATTRIBUTE_NAME_PROCESS_START_DATE = "Process Start Date"
ATTRIBUTE_NAME_PROTECT_STOP_DATE = "Protect Stop Date"
ATTRIBUTE_NAME_DEACTIVATION_DATE = "Deactivation Date"
ATTRIBUTE_NAME_DESTROY_DATE = "Destroy Date"
ATTRIBUTE_NAME_COMPROMISE_OCCURRENCE_DATE = "Compromise Occurrence Date"
ATTRIBUTE_NAME_COMPROMISE_DATE = "Compromise Date"
ATTRIBUTE_NAME_REVOCATION_REASON = "Revocation Reason"
ATTRIBUTE_NAME_ARCHIVE_DATE = "Archive Date"
ATTRIBUTE_NAME_OBJECT_GROUP = "Object Group"
ATTRIBUTE_NAME_FRESH = "Fresh"
ATTRIBUTE_NAME_LINK = "Link"
ATTRIBUTE_NAME_APPLICATION_SPECIFIC_INFORMATION = "Application Specific Information"
ATTRIBUTE_NAME_CONTACT_INFORMATION = "Contact Information"
ATTRIBUTE_NAME_LAST_CHANGE_DATE = "Last Change Date"
ATTRIBUTE_NAME_CUSTOM_ATTRIBUTE = "Custom Attribute"
ATTRIBUTE_NAME_ALTERNATIVE_NAME = "Alternative Name"
ATTRIBUTE_NAME_KEY_VALUE_PRESENT = "Key Value Present"
ATTRIBUTE_NAME_KEY_VALUE_LOCATION = "Key Value Location"
ATTRIBUTE_NAME_ORIGINAL_CREATION_DATE = "Original Creation Date"
)
var tagMap = map[string]Tag{
"-": ANY_TAG,
"ANY_TAG": ANY_TAG,
"ACTIVATION_DATE": ACTIVATION_DATE,
"APPLICATION_DATA": APPLICATION_DATA,
"APPLICATION_NAMESPACE": APPLICATION_NAMESPACE,
"APPLICATION_SPECIFIC_INFORMATION": APPLICATION_SPECIFIC_INFORMATION,
"ARCHIVE_DATE": ARCHIVE_DATE,
"ASYNCHRONOUS_CORRELATION_VALUE": ASYNCHRONOUS_CORRELATION_VALUE,
"ASYNCHRONOUS_INDICATOR": ASYNCHRONOUS_INDICATOR,
"ATTRIBUTE": ATTRIBUTE,
"ATTRIBUTE_INDEX": ATTRIBUTE_INDEX,
"ATTRIBUTE_NAME": ATTRIBUTE_NAME,
"ATTRIBUTE_VALUE": ATTRIBUTE_VALUE,
"AUTHENTICATION": AUTHENTICATION,
"BATCH_COUNT": BATCH_COUNT,
"BATCH_ERROR_CONTINUATION_OPTION": BATCH_ERROR_CONTINUATION_OPTION,
"BATCH_ITEM": BATCH_ITEM,
"BATCH_ORDER_OPTION": BATCH_ORDER_OPTION,
"BLOCK_CIPHER_MODE": BLOCK_CIPHER_MODE,
"CANCELLATION_RESULT": CANCELLATION_RESULT,
"CERTIFICATE": CERTIFICATE,
"CERTIFICATE_IDENTIFIER": CERTIFICATE_IDENTIFIER,
"CERTIFICATE_ISSUER": CERTIFICATE_ISSUER,
"CERTIFICATE_ISSUER_ALTERNATIVE_NAME": CERTIFICATE_ISSUER_ALTERNATIVE_NAME,
"CERTIFICATE_ISSUER_DISTINGUISHED_NAME": CERTIFICATE_ISSUER_DISTINGUISHED_NAME,
"CERTIFICATE_REQUEST": CERTIFICATE_REQUEST,
"CERTIFICATE_REQUEST_TYPE": CERTIFICATE_REQUEST_TYPE,
"CERTIFICATE_SUBJECT": CERTIFICATE_SUBJECT,
"CERTIFICATE_SUBJECT_ALTERNATIVE_NAME": CERTIFICATE_SUBJECT_ALTERNATIVE_NAME,
"CERTIFICATE_SUBJECT_DISTINGUISHED_NAME": CERTIFICATE_SUBJECT_DISTINGUISHED_NAME,
"CERTIFICATE_TYPE": CERTIFICATE_TYPE,
"CERTIFICATE_VALUE": CERTIFICATE_VALUE,
"COMMON_TEMPLATE_ATTRIBUTE": COMMON_TEMPLATE_ATTRIBUTE,
"COMPROMISE_DATE": COMPROMISE_DATE,
"COMPROMISE_OCCURRENCE_DATE": COMPROMISE_OCCURRENCE_DATE,
"CONTACT_INFORMATION": CONTACT_INFORMATION,
"CREDENTIAL": CREDENTIAL,
"CREDENTIAL_TYPE": CREDENTIAL_TYPE,
"CREDENTIAL_VALUE": CREDENTIAL_VALUE,
"CRITICALITY_INDICATOR": CRITICALITY_INDICATOR,
"CRT_COEFFICIENT": CRT_COEFFICIENT,
"CRYPTOGRAPHIC_ALGORITHM": CRYPTOGRAPHIC_ALGORITHM,
"CRYPTOGRAPHIC_DOMAIN_PARAMETERS": CRYPTOGRAPHIC_DOMAIN_PARAMETERS,
"CRYPTOGRAPHIC_LENGTH": CRYPTOGRAPHIC_LENGTH,
"CRYPTOGRAPHIC_PARAMETERS": CRYPTOGRAPHIC_PARAMETERS,
"CRYPTOGRAPHIC_USAGE_MASK": CRYPTOGRAPHIC_USAGE_MASK,
"CUSTOM_ATTRIBUTE": CUSTOM_ATTRIBUTE,
"D": D,
"DEACTIVATION_DATE": DEACTIVATION_DATE,
"DERIVATION_DATA": DERIVATION_DATA,
"DERIVATION_METHOD": DERIVATION_METHOD,
"DERIVATION_PARAMETERS": DERIVATION_PARAMETERS,
"DESTROY_DATE": DESTROY_DATE,
"DIGEST": DIGEST,
"DIGEST_VALUE": DIGEST_VALUE,
"ENCRYPTION_KEY_INFORMATION": ENCRYPTION_KEY_INFORMATION,
"G": G,
"HASHING_ALGORITHM": HASHING_ALGORITHM,
"INITIAL_DATE": INITIAL_DATE,
"INITIALIZATION_VECTOR": INITIALIZATION_VECTOR,
"ISSUER": ISSUER,
"ITERATION_COUNT": ITERATION_COUNT,
"IV_COUNTER_NONCE": IV_COUNTER_NONCE,
"J": J,
"KEY": KEY,
"KEY_BLOCK": KEY_BLOCK,
"KEY_COMPRESSION_TYPE": KEY_COMPRESSION_TYPE,
"KEY_FORMAT_TYPE": KEY_FORMAT_TYPE,
"KEY_MATERIAL": KEY_MATERIAL,
"KEY_PART_IDENTIFIER": KEY_PART_IDENTIFIER,
"KEY_VALUE": KEY_VALUE,
"KEY_WRAPPING_DATA": KEY_WRAPPING_DATA,
"KEY_WRAPPING_SPECIFICATION": KEY_WRAPPING_SPECIFICATION,
"LAST_CHANGE_DATE": LAST_CHANGE_DATE,
"LEASE_TIME": LEASE_TIME,
"LINK": LINK,
"LINK_TYPE": LINK_TYPE,
"LINKED_OBJECT_IDENTIFIER": LINKED_OBJECT_IDENTIFIER,
"MAC_SIGNATURE": MAC_SIGNATURE,
"MAC_SIGNATURE_KEY_INFORMATION": MAC_SIGNATURE_KEY_INFORMATION,
"MAXIMUM_ITEMS": MAXIMUM_ITEMS,
"MAXIMUM_RESPONSE_SIZE": MAXIMUM_RESPONSE_SIZE,
"MESSAGE_EXTENSION": MESSAGE_EXTENSION,
"MODULUS": MODULUS,
"NAME": NAME,
"NAME_TYPE": NAME_TYPE,
"NAME_VALUE": NAME_VALUE,
"OBJECT_GROUP": OBJECT_GROUP,
"OBJECT_TYPE": OBJECT_TYPE,
"OFFSET": OFFSET,
"OPAQUE_DATA_TYPE": OPAQUE_DATA_TYPE,
"OPAQUE_DATA_VALUE": OPAQUE_DATA_VALUE,
"OPAQUE_OBJECT": OPAQUE_OBJECT,
"OPERATION": OPERATION,
"OPERATION_POLICY_NAME": OPERATION_POLICY_NAME,
"P": P,
"PADDING_METHOD": PADDING_METHOD,
"PRIME_EXPONENT_P": PRIME_EXPONENT_P,
"PRIME_EXPONENT_Q": PRIME_EXPONENT_Q,
"PRIME_FIELD_SIZE": PRIME_FIELD_SIZE,
"PRIVATE_EXPONENT": PRIVATE_EXPONENT,
"PRIVATE_KEY": PRIVATE_KEY,
"PRIVATE_KEY_TEMPLATE_ATTRIBUTE": PRIVATE_KEY_TEMPLATE_ATTRIBUTE,
"PRIVATE_KEY_UNIQUE_IDENTIFIER": PRIVATE_KEY_UNIQUE_IDENTIFIER,
"PROCESS_START_DATE": PROCESS_START_DATE,
"PROTECT_STOP_DATE": PROTECT_STOP_DATE,
"PROTOCOL_VERSION": PROTOCOL_VERSION,
"PROTOCOL_VERSION_MAJOR": PROTOCOL_VERSION_MAJOR,
"PROTOCOL_VERSION_MINOR": PROTOCOL_VERSION_MINOR,
"PUBLIC_EXPONENT": PUBLIC_EXPONENT,
"PUBLIC_KEY": PUBLIC_KEY,
"PUBLIC_KEY_TEMPLATE_ATTRIBUTE": PUBLIC_KEY_TEMPLATE_ATTRIBUTE,
"PUBLIC_KEY_UNIQUE_IDENTIFIER": PUBLIC_KEY_UNIQUE_IDENTIFIER,
"PUT_FUNCTION": PUT_FUNCTION,
"Q": Q,
"Q_STRING": Q_STRING,
"QLENGTH": QLENGTH,
"QUERY_FUNCTION": QUERY_FUNCTION,
"RECOMMENDED_CURVE": RECOMMENDED_CURVE,
"REPLACED_UNIQUE_IDENTIFIER": REPLACED_UNIQUE_IDENTIFIER,
"REQUEST_BATCH_ITEM": REQUEST_BATCH_ITEM,
"REQUEST_HEADER": REQUEST_HEADER,
"REQUEST_MESSAGE": REQUEST_MESSAGE,
"REQUEST_PAYLOAD": REQUEST_PAYLOAD,
"RESPONSE_BATCH_ITEM": RESPONSE_BATCH_ITEM,
"RESPONSE_HEADER": RESPONSE_HEADER,
"RESPONSE_MESSAGE": RESPONSE_MESSAGE,
"RESPONSE_PAYLOAD": RESPONSE_PAYLOAD,
"RESULT_MESSAGE": RESULT_MESSAGE,
"RESULT_REASON": RESULT_REASON,
"RESULT_STATUS": RESULT_STATUS,
"REVOCATION_MESSAGE": REVOCATION_MESSAGE,
"REVOCATION_REASON": REVOCATION_REASON,
"REVOCATION_REASON_CODE": REVOCATION_REASON_CODE,
"KEY_ROLE_TYPE": KEY_ROLE_TYPE,
"SALT": SALT,
"SECRET_DATA": SECRET_DATA,
"SECRET_DATA_TYPE": SECRET_DATA_TYPE,
"SERIAL_NUMBER": SERIAL_NUMBER,
"SERVER_INFORMATION": SERVER_INFORMATION,
"SPLIT_KEY": SPLIT_KEY,
"SPLIT_KEY_METHOD": SPLIT_KEY_METHOD,
"SPLIT_KEY_PARTS": SPLIT_KEY_PARTS,
"SPLIT_KEY_THRESHOLD": SPLIT_KEY_THRESHOLD,
"STATE": STATE,
"STORAGE_STATUS_MASK": STORAGE_STATUS_MASK,
"SYMMETRIC_KEY": SYMMETRIC_KEY,
"TEMPLATE": TEMPLATE,
"TEMPLATE_ATTRIBUTE": TEMPLATE_ATTRIBUTE,
"TIME_STAMP": TIME_STAMP,
"UNIQUE_BATCH_ITEM_ID": UNIQUE_BATCH_ITEM_ID,
"UNIQUE_IDENTIFIER": UNIQUE_IDENTIFIER,
"USAGE_LIMITS": USAGE_LIMITS,
"USAGE_LIMITS_COUNT": USAGE_LIMITS_COUNT,
"USAGE_LIMITS_TOTAL": USAGE_LIMITS_TOTAL,