Documentation ¶
Overview ¶
Package kmip20 contains definitions from the 2.0 specification. They should eventually be merged into the kmip_1_4.json (and that should be renamed to kmip_2_0_specs.json), but I didn't have time to merge them in yet. Just keeping them parked here until I have time to incorporate them. TODO: should the different versions of the spec be kept in separate declaration files? Or should the ttlv package add a spec version attribute to registration, so servers/clients can configure which spec version they want to use, and ttlv would automatically filter allowed values on that?
Code generated by kmipgen; DO NOT EDIT.
Index ¶
- Constants
- Variables
- func NewAdjustmentTypeEnum() ttlv.Enum
- func NewAsynchronousIndicatorEnum() ttlv.Enum
- func NewCredentialTypeEnum() ttlv.Enum
- func NewCryptographicAlgorithmEnum() ttlv.Enum
- func NewDataEnum() ttlv.Enum
- func NewDerivationMethodEnum() ttlv.Enum
- func NewEndpointRoleEnum() ttlv.Enum
- func NewInteropFunctionEnum() ttlv.Enum
- func NewLinkTypeEnum() ttlv.Enum
- func NewNISTKeyTypeEnum() ttlv.Enum
- func NewObjectTypeEnum() ttlv.Enum
- func NewOperationEnum() ttlv.Enum
- func NewPKCS_11FunctionEnum() ttlv.Enum
- func NewPKCS_11ReturnCodeEnum() ttlv.Enum
- func NewProfileNameEnum() ttlv.Enum
- func NewProtectionLevelEnum() ttlv.Enum
- func NewProtectionStorageMaskEnum() ttlv.Enum
- func NewQueryFunctionEnum() ttlv.Enum
- func NewRecommendedCurveEnum() ttlv.Enum
- func NewResultReasonEnum() ttlv.Enum
- func NewTicketTypeEnum() ttlv.Enum
- func NewUniqueIdentifierEnum() ttlv.Enum
- func Register(registry *ttlv.Registry)
- func RegisterGeneratedDefinitions(r *ttlv.Registry)
- type ActivateHandler
- type ActivateRequestPayload
- type ActivateResponsePayload
- type AdjustmentType
- type AsynchronousIndicator
- type Attributes
- type CapabilityInformation
- type CreateKeyPairRequestPayload
- type CreateKeyPairResponsePayload
- type CreateRequestPayload
- type CreateResponsePayload
- type CredentialType
- type CryptographicAlgorithm
- type Data
- type DefaultsInformation
- type DerivationMethod
- type DestroyHandler
- type DestroyRequestPayload
- type DestroyResponsePayload
- type EndpointRole
- type ExtensionInformation
- type GetHandler
- type GetRequestPayload
- type GetResponsePayload
- type InteropFunction
- type LinkType
- type LocateHandler
- type LocateRequestPayload
- type LocateResponsePayload
- type NISTKeyType
- type ObjectDefaults
- type ObjectType
- type Operation
- type PKCS_11Function
- type PKCS_11ReturnCode
- type ProfileName
- type ProtectionLevel
- type ProtectionStorageMask
- type QueryFunction
- type QueryHandler
- type QueryRequestPayload
- type QueryResponsePayload
- type RNGParameters
- type RecommendedCurve
- type ResultReason
- type RevocationReason
- type RevokeHandler
- type RevokeRequestPayload
- type RevokeResponsePayload
- type ServerInformation
- type SetAttributeHandler
- type SetAttributeRequestPayload
- type SetAttributeResponsePayload
- type TicketType
- type UniqueIdentifier
- type UniqueIdentifierValue
Constants ¶
const ( TagAttributes ttlv.Tag = 0x420125 TagCommonAttributes ttlv.Tag = 0x420126 TagPrivateKeyAttributes ttlv.Tag = 0x420127 TagPublicKeyAttributes ttlv.Tag = 0x420128 TagExtensionEnumeration ttlv.Tag = 0x420129 TagExtensionAttribute ttlv.Tag = 0x42012a TagExtensionParentStructureTag ttlv.Tag = 0x42012b TagExtensionDescription ttlv.Tag = 0x42012c TagServerName ttlv.Tag = 0x42012d TagServerSerialNumber ttlv.Tag = 0x42012e TagServerVersion ttlv.Tag = 0x42012f TagServerLoad ttlv.Tag = 0x420130 TagProductName ttlv.Tag = 0x420131 TagBuildLevel ttlv.Tag = 0x420132 TagBuildDate ttlv.Tag = 0x420133 TagClusterInfo ttlv.Tag = 0x420134 TagAlternateFailoverEndpoints ttlv.Tag = 0x420135 TagShortUniqueIdentifier ttlv.Tag = 0x420136 TagReserved ttlv.Tag = 0x420137 TagTag ttlv.Tag = 0x420138 TagCertificateRequestUniqueIdentifier ttlv.Tag = 0x420139 TagNISTKeyType ttlv.Tag = 0x42013a TagAttributeReference ttlv.Tag = 0x42013b TagCurrentAttribute ttlv.Tag = 0x42013c TagNewAttribute ttlv.Tag = 0x42013d TagCertificateRequestValue ttlv.Tag = 0x420140 TagLogMessage ttlv.Tag = 0x420141 TagProfileVersion ttlv.Tag = 0x420142 TagProfileVersionMajor ttlv.Tag = 0x420143 TagProfileVersionMinor ttlv.Tag = 0x420144 TagProtectionLevel ttlv.Tag = 0x420145 TagProtectionPeriod ttlv.Tag = 0x420146 TagQuantumSafe ttlv.Tag = 0x420147 TagQuantumSafeCapability ttlv.Tag = 0x420148 TagTicket ttlv.Tag = 0x420149 TagTicketType ttlv.Tag = 0x42014a TagTicketValue ttlv.Tag = 0x42014b TagRequestCount ttlv.Tag = 0x42014c TagRights ttlv.Tag = 0x42014d TagObjects ttlv.Tag = 0x42014e TagOperations ttlv.Tag = 0x42014f TagRight ttlv.Tag = 0x420150 TagEndpointRole ttlv.Tag = 0x420151 TagDefaultsInformation ttlv.Tag = 0x420152 TagObjectDefaults ttlv.Tag = 0x420153 TagEphemeral ttlv.Tag = 0x420154 TagServerHashedPassword ttlv.Tag = 0x420155 TagOneTimePassword ttlv.Tag = 0x420156 TagHashedPassword ttlv.Tag = 0x420157 TagAdjustmentType ttlv.Tag = 0x420158 TagPKCS_11Interface ttlv.Tag = 0x420159 TagPKCS_11Function ttlv.Tag = 0x42015a TagPKCS_11InputParameters ttlv.Tag = 0x42015b TagPKCS_11OutputParameters ttlv.Tag = 0x42015c TagPKCS_11ReturnCode ttlv.Tag = 0x42015d TagProtectionStorageMask ttlv.Tag = 0x42015e TagProtectionStorageMasks ttlv.Tag = 0x42015f TagInteropFunction ttlv.Tag = 0x420160 TagInteropIdentifier ttlv.Tag = 0x420161 TagAdjustmentValue ttlv.Tag = 0x420162 TagCommonProtectionStorageMasks ttlv.Tag = 0x420163 TagPrivateProtectionStorageMasks ttlv.Tag = 0x420164 TagPublicProtectionStorageMasks ttlv.Tag = 0x420165 )
Variables ¶
var AdjustmentTypeEnum = NewAdjustmentTypeEnum()
var AsynchronousIndicatorEnum = NewAsynchronousIndicatorEnum()
var CredentialTypeEnum = NewCredentialTypeEnum()
var CryptographicAlgorithmEnum = NewCryptographicAlgorithmEnum()
var DataEnum = NewDataEnum()
var DerivationMethodEnum = NewDerivationMethodEnum()
var EndpointRoleEnum = NewEndpointRoleEnum()
var InteropFunctionEnum = NewInteropFunctionEnum()
var LinkTypeEnum = NewLinkTypeEnum()
var NISTKeyTypeEnum = NewNISTKeyTypeEnum()
var ObjectTypeEnum = NewObjectTypeEnum()
var OperationEnum = NewOperationEnum()
var PKCS_11FunctionEnum = NewPKCS_11FunctionEnum()
var PKCS_11ReturnCodeEnum = NewPKCS_11ReturnCodeEnum()
var ProfileNameEnum = NewProfileNameEnum()
var ProtectionLevelEnum = NewProtectionLevelEnum()
var ProtectionStorageMaskEnum = NewProtectionStorageMaskEnum()
var QueryFunctionEnum = NewQueryFunctionEnum()
var RecommendedCurveEnum = NewRecommendedCurveEnum()
var ResultReasonEnum = NewResultReasonEnum()
var TicketTypeEnum = NewTicketTypeEnum()
var UniqueIdentifierEnum = NewUniqueIdentifierEnum()
Functions ¶
func NewAdjustmentTypeEnum ¶
func NewCredentialTypeEnum ¶
func NewDataEnum ¶
func NewDerivationMethodEnum ¶
func NewEndpointRoleEnum ¶
func NewInteropFunctionEnum ¶
func NewLinkTypeEnum ¶
func NewNISTKeyTypeEnum ¶
func NewObjectTypeEnum ¶
func NewOperationEnum ¶
func NewPKCS_11FunctionEnum ¶
func NewProfileNameEnum ¶
func NewProtectionLevelEnum ¶
func NewQueryFunctionEnum ¶
func NewRecommendedCurveEnum ¶
func NewResultReasonEnum ¶
func NewTicketTypeEnum ¶
func NewUniqueIdentifierEnum ¶
func Register ¶
Register registers all the additional definitions from the KMIP 2.0 spec. The registry should already contain the 1.4 definitions.
Types ¶
type ActivateHandler ¶ added in v0.0.8
type ActivateHandler struct {
Activate func(ctx context.Context, payload *ActivateRequestPayload) (*ActivateResponsePayload, error)
}
func (*ActivateHandler) HandleItem ¶ added in v0.0.8
func (h *ActivateHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type ActivateRequestPayload ¶ added in v0.0.8
type ActivateRequestPayload struct {
UniqueIdentifier *UniqueIdentifierValue
}
type ActivateResponsePayload ¶ added in v0.0.8
type ActivateResponsePayload struct {
UniqueIdentifier string
}
type AdjustmentType ¶
type AdjustmentType uint32
Adjustment Type Enumeration 11.1
const ( AdjustmentTypeIncrement AdjustmentType = 0x00000001 AdjustmentTypeDecrement AdjustmentType = 0x00000002 AdjustmentTypeNegate AdjustmentType = 0x00000003 )
func (AdjustmentType) MarshalTTLV ¶
func (AdjustmentType) MarshalText ¶
func (a AdjustmentType) MarshalText() (text []byte, err error)
func (AdjustmentType) String ¶
func (a AdjustmentType) String() string
type AsynchronousIndicator ¶
type AsynchronousIndicator uint32
Asynchronous Indicator Enumeration 11.3
const ( AsynchronousIndicatorMandatory AsynchronousIndicator = 0x00000001 AsynchronousIndicatorOptional AsynchronousIndicator = 0x00000002 AsynchronousIndicatorProhibited AsynchronousIndicator = 0x00000003 )
func (AsynchronousIndicator) MarshalTTLV ¶
func (AsynchronousIndicator) MarshalText ¶
func (a AsynchronousIndicator) MarshalText() (text []byte, err error)
func (AsynchronousIndicator) String ¶
func (a AsynchronousIndicator) String() string
type Attributes ¶ added in v0.0.6
type CapabilityInformation ¶ added in v0.0.8
type CapabilityInformation struct { StreamingCapability bool // Required: No AsynchronousCapability bool // Required: No AttestationCapability bool // Required: No BatchUndoCapability bool // Required: No BatchContinueCapability bool // Required: No UnwrapMode kmip14.UnwrapMode // Required: No DestroyAction kmip14.DestroyAction // Required: No ShreddingAlgorithm kmip14.ShreddingAlgorithm // Required: No RNGMode kmip14.RNGMode // Required: No QuantumSafeCapability bool // Required: No }
7.3 Capability Information The Capability Information base object is a structure that contains details of the supported capabilities.
type CreateKeyPairRequestPayload ¶ added in v0.0.6
type CreateKeyPairRequestPayload struct { CommonAttributes interface{} PrivateKeyAttributes interface{} PublicKeyAttributes interface{} CommonProtectionStorageMasks ProtectionStorageMask `ttlv:",omitempty"` PrivateProtectionStorageMasks ProtectionStorageMask `ttlv:",omitempty"` PublicProtectionStorageMasks ProtectionStorageMask `ttlv:",omitempty"` }
type CreateKeyPairResponsePayload ¶ added in v0.0.6
type CreateRequestPayload ¶ added in v0.0.6
type CreateRequestPayload struct { TTLVTag struct{} `ttlv:"RequestPayload"` ObjectType ObjectType Attributes interface{} ProtectionStorageMasks ProtectionStorageMask `ttlv:",omitempty"` }
type CreateResponsePayload ¶ added in v0.0.6
type CreateResponsePayload struct { ObjectType ObjectType UniqueIdentifier string }
type CredentialType ¶
type CredentialType uint32
Credential Type Enumeration 9.1.3.2.1 Table 289
const ( CredentialTypeUsernameAndPassword CredentialType = 0x00000001 CredentialTypeDevice CredentialType = 0x00000002 CredentialTypeAttestation CredentialType = 0x00000003 CredentialTypeOneTimePassword CredentialType = 0x00000004 CredentialTypeHashedPassword CredentialType = 0x00000005 CredentialTypeTicket CredentialType = 0x00000006 )
func (CredentialType) MarshalTTLV ¶
func (CredentialType) MarshalText ¶
func (c CredentialType) MarshalText() (text []byte, err error)
func (CredentialType) String ¶
func (c CredentialType) String() string
type CryptographicAlgorithm ¶
type CryptographicAlgorithm uint32
Cryptographic Algorithm Enumeration 9.1.3.2.13 Table 301
const ( CryptographicAlgorithmDES CryptographicAlgorithm = 0x00000001 CryptographicAlgorithmDES3 CryptographicAlgorithm = 0x00000002 CryptographicAlgorithmAES CryptographicAlgorithm = 0x00000003 CryptographicAlgorithmRSA CryptographicAlgorithm = 0x00000004 CryptographicAlgorithmDSA CryptographicAlgorithm = 0x00000005 CryptographicAlgorithmECDSA CryptographicAlgorithm = 0x00000006 CryptographicAlgorithmHMAC_SHA1 CryptographicAlgorithm = 0x00000007 CryptographicAlgorithmHMAC_SHA224 CryptographicAlgorithm = 0x00000008 CryptographicAlgorithmHMAC_SHA256 CryptographicAlgorithm = 0x00000009 CryptographicAlgorithmHMAC_SHA384 CryptographicAlgorithm = 0x0000000a CryptographicAlgorithmHMAC_SHA512 CryptographicAlgorithm = 0x0000000b CryptographicAlgorithmHMAC_MD5 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 CryptographicAlgorithmEC CryptographicAlgorithm = 0x0000001a CryptographicAlgorithmOneTimePad CryptographicAlgorithm = 0x0000001b 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 CryptographicAlgorithmARIA CryptographicAlgorithm = 0x00000029 CryptographicAlgorithmSEED CryptographicAlgorithm = 0x0000002a CryptographicAlgorithmSM2 CryptographicAlgorithm = 0x0000002b CryptographicAlgorithmSM3 CryptographicAlgorithm = 0x0000002c CryptographicAlgorithmSM4 CryptographicAlgorithm = 0x0000002d CryptographicAlgorithmGOSTR34_10_2012 CryptographicAlgorithm = 0x0000002e CryptographicAlgorithmGOSTR34_11_2012 CryptographicAlgorithm = 0x0000002f CryptographicAlgorithmGOSTR34_13_2015 CryptographicAlgorithm = 0x00000030 CryptographicAlgorithmGOST28147_89 CryptographicAlgorithm = 0x00000031 CryptographicAlgorithmXMSS CryptographicAlgorithm = 0x00000032 CryptographicAlgorithmSPHINCS_256 CryptographicAlgorithm = 0x00000033 CryptographicAlgorithmMcEliece CryptographicAlgorithm = 0x00000034 CryptographicAlgorithmMcEliece_6960119 CryptographicAlgorithm = 0x00000035 CryptographicAlgorithmMcEliece_8192128 CryptographicAlgorithm = 0x00000036 CryptographicAlgorithmEd25519 CryptographicAlgorithm = 0x00000037 CryptographicAlgorithmEd448 CryptographicAlgorithm = 0x00000038 )
func (CryptographicAlgorithm) MarshalTTLV ¶
func (CryptographicAlgorithm) MarshalText ¶
func (c CryptographicAlgorithm) MarshalText() (text []byte, err error)
func (CryptographicAlgorithm) String ¶
func (c CryptographicAlgorithm) String() string
type DefaultsInformation ¶ added in v0.0.8
type DefaultsInformation struct {
ObjectDefaults ObjectDefaults // Required: Yes
}
7.7 Defaults Information The Defaults Information is a structure used in Query responses for values that servers will use if clients omit them from factory operations requests.
type DerivationMethod ¶
type DerivationMethod uint32
Derivation Method Enumeration 9.1.3.2.21 Table 309
const ( DerivationMethodPBKDF2 DerivationMethod = 0x00000001 DerivationMethodHASH DerivationMethod = 0x00000002 DerivationMethodHMAC DerivationMethod = 0x00000003 DerivationMethodENCRYPT DerivationMethod = 0x00000004 DerivationMethodNIST800_108_C DerivationMethod = 0x00000005 DerivationMethodNIST800_108_F DerivationMethod = 0x00000006 DerivationMethodNIST800_108_DPI DerivationMethod = 0x00000007 DerivationMethodAsymmetricKey DerivationMethod = 0x00000008 DerivationMethodAWSSignatureVersion4 DerivationMethod = 0x00000009 DerivationMethodHKDF DerivationMethod = 0x0000000a )
func (DerivationMethod) MarshalTTLV ¶
func (DerivationMethod) MarshalText ¶
func (d DerivationMethod) MarshalText() (text []byte, err error)
func (DerivationMethod) String ¶
func (d DerivationMethod) String() string
type DestroyHandler ¶ added in v0.0.8
type DestroyHandler struct {
Destroy func(ctx context.Context, payload *DestroyRequestPayload) (*DestroyResponsePayload, error)
}
func (*DestroyHandler) HandleItem ¶ added in v0.0.8
func (h *DestroyHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type DestroyRequestPayload ¶ added in v0.0.8
type DestroyRequestPayload struct {
UniqueIdentifier *UniqueIdentifierValue
}
type DestroyResponsePayload ¶ added in v0.0.8
type DestroyResponsePayload struct {
UniqueIdentifier string
}
type EndpointRole ¶
type EndpointRole uint32
Endpoint Role Enumeration 11.19
const ( EndpointRoleClient EndpointRole = 0x00000001 EndpointRoleServer EndpointRole = 0x00000002 )
func (EndpointRole) MarshalTTLV ¶
func (EndpointRole) MarshalText ¶
func (e EndpointRole) MarshalText() (text []byte, err error)
func (EndpointRole) String ¶
func (e EndpointRole) String() string
type ExtensionInformation ¶ added in v0.0.8
type ExtensionInformation struct { ExtensionName string // Required: Yes ExtensionTag int // Required: No ExtensionType int // Required: No ExtensionEnumeration int // Required: No ExtensionAttribute bool // Required: No ExtensionParentStructureTag int // Required: No ExtensionDescription string // Required: No }
7.9 Extension Information An Extension Information object is a structure describing Objects with Item Tag values in the Extensions range. The Extension Name is a Text String that is used to name the Object. The Extension Tag is the Item Tag Value of the Object. The Extension Type is the Item Type Value of the Object.
type GetHandler ¶ added in v0.0.8
type GetHandler struct {
Get func(ctx context.Context, payload *GetRequestPayload) (*GetResponsePayload, error)
}
func (*GetHandler) HandleItem ¶ added in v0.0.8
func (h *GetHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type GetRequestPayload ¶ added in v0.0.8
type GetRequestPayload struct {
UniqueIdentifier *UniqueIdentifierValue
}
GetRequestPayload ////////////////////////////////////////
type GetResponsePayload ¶ added in v0.0.8
type GetResponsePayload struct { ObjectType kmip14.ObjectType UniqueIdentifier string Key kmip.SymmetricKey }
GetResponsePayload
type InteropFunction ¶
type InteropFunction uint32
Interop Function Enumeration 11.22
const ( InteropFunctionBegin InteropFunction = 0x00000001 InteropFunctionEnd InteropFunction = 0x00000002 InteropFunctionReset InteropFunction = 0x00000003 )
func (InteropFunction) MarshalTTLV ¶
func (InteropFunction) MarshalText ¶
func (i InteropFunction) MarshalText() (text []byte, err error)
func (InteropFunction) String ¶
func (i InteropFunction) String() string
type LinkType ¶
type LinkType uint32
Link Type Enumeration 9.1.3.2.20 Table 308
const ( LinkTypeCertificateLink LinkType = 0x00000101 LinkTypePublicKeyLink LinkType = 0x00000102 LinkTypePrivateKeyLink LinkType = 0x00000103 LinkTypeDerivationBaseObjectLink LinkType = 0x00000104 LinkTypeDerivedKeyLink LinkType = 0x00000105 LinkTypeReplacementObjectLink LinkType = 0x00000106 LinkTypeReplacedObjectLink LinkType = 0x00000107 LinkTypeParentLink LinkType = 0x00000108 LinkTypeChildLink LinkType = 0x00000109 LinkTypePreviousLink LinkType = 0x0000010a LinkTypeNextLink LinkType = 0x0000010b LinkTypePKCS_12CertificateLink LinkType = 0x0000010c LinkTypePKCS_12PasswordLink LinkType = 0x0000010d LinkTypeWrappingKeyLink LinkType = 0x0000010e )
func (LinkType) MarshalText ¶
type LocateHandler ¶ added in v0.0.8
type LocateHandler struct {
Locate func(ctx context.Context, payload *LocateRequestPayload) (*LocateResponsePayload, error)
}
func (*LocateHandler) HandleItem ¶ added in v0.0.8
func (h *LocateHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type LocateRequestPayload ¶ added in v0.0.8
type LocateRequestPayload struct {
Attributes interface{}
}
type LocateResponsePayload ¶ added in v0.0.8
type LocateResponsePayload struct {
UniqueIdentifier string
}
type NISTKeyType ¶
type NISTKeyType uint32
NIST Key Type Enumeration
const ( NISTKeyTypePrivateSignatureKey NISTKeyType = 0x00000001 NISTKeyTypePublicSignatureVerificationKey NISTKeyType = 0x00000002 NISTKeyTypeSymmetricAuthenticationKey NISTKeyType = 0x00000003 NISTKeyTypePrivateAuthenticationKey NISTKeyType = 0x00000004 NISTKeyTypePublicAuthenticationKey NISTKeyType = 0x00000005 NISTKeyTypeSymmetricDataEncryptionKey NISTKeyType = 0x00000006 NISTKeyTypeSymmetricKeyWrappingKey NISTKeyType = 0x00000007 NISTKeyTypeSymmetricRandomNumberGenerationKey NISTKeyType = 0x00000008 NISTKeyTypeSymmetricMasterKey NISTKeyType = 0x00000009 NISTKeyTypePrivateKeyTransportKey NISTKeyType = 0x0000000a NISTKeyTypePublicKeyTransportKey NISTKeyType = 0x0000000b NISTKeyTypeSymmetricKeyAgreementKey NISTKeyType = 0x0000000c NISTKeyTypePrivateStaticKeyAgreementKey NISTKeyType = 0x0000000d NISTKeyTypePublicStaticKeyAgreementKey NISTKeyType = 0x0000000e NISTKeyTypePrivateEphemeralKeyAgreementKey NISTKeyType = 0x0000000f NISTKeyTypePublicEphemeralKeyAgreementKey NISTKeyType = 0x00000010 NISTKeyTypeSymmetricAuthorizationKey NISTKeyType = 0x00000011 NISTKeyTypePrivateAuthorizationKey NISTKeyType = 0x00000012 NISTKeyTypePublicAuthorizationKey NISTKeyType = 0x00000013 )
func (NISTKeyType) MarshalTTLV ¶
func (NISTKeyType) MarshalText ¶
func (n NISTKeyType) MarshalText() (text []byte, err error)
func (NISTKeyType) String ¶
func (n NISTKeyType) String() string
type ObjectDefaults ¶ added in v0.0.8
type ObjectDefaults struct { ObjectType kmip14.ObjectType // Required: Yes Attributes kmip.Attributes // Required: Yes }
7.18 Object Defaults The Object Defaults is a structure that details the values that the server will use if the client omits them on factory methods for objects. The structure list the Attributes and their values by Object Type enumeration.
type ObjectType ¶
type ObjectType uint32
Object Type Enumeration 9.1.3.2.12 Table 300
const ( ObjectTypeCertificate ObjectType = 0x00000001 ObjectTypeSymmetricKey ObjectType = 0x00000002 ObjectTypePublicKey ObjectType = 0x00000003 ObjectTypePrivateKey ObjectType = 0x00000004 ObjectTypeSplitKey ObjectType = 0x00000005 ObjectTypeTemplate ObjectType = 0x00000006 ObjectTypeSecretData ObjectType = 0x00000007 ObjectTypeOpaqueObject ObjectType = 0x00000008 ObjectTypePGPKey ObjectType = 0x00000009 ObjectTypeCertificateRequest ObjectType = 0x0000000a )
func (ObjectType) MarshalTTLV ¶
func (ObjectType) MarshalText ¶
func (o ObjectType) MarshalText() (text []byte, err error)
func (ObjectType) String ¶
func (o ObjectType) String() string
type Operation ¶
type Operation uint32
Operation Enumeration 9.1.3.2.27 Table 315
const ( OperationCreate Operation = 0x00000001 OperationCreateKeyPair Operation = 0x00000002 OperationRegister Operation = 0x00000003 OperationReKey Operation = 0x00000004 OperationDeriveKey Operation = 0x00000005 OperationCertify Operation = 0x00000006 OperationReCertify Operation = 0x00000007 OperationLocate Operation = 0x00000008 OperationCheck Operation = 0x00000009 OperationGet Operation = 0x0000000a OperationGetAttributes Operation = 0x0000000b OperationGetAttributeList Operation = 0x0000000c OperationAddAttribute Operation = 0x0000000d OperationModifyAttribute Operation = 0x0000000e OperationDeleteAttribute Operation = 0x0000000f OperationObtainLease Operation = 0x00000010 OperationGetUsageAllocation Operation = 0x00000011 OperationActivate Operation = 0x00000012 OperationRevoke Operation = 0x00000013 OperationDestroy Operation = 0x00000014 OperationArchive Operation = 0x00000015 OperationRecover Operation = 0x00000016 OperationValidate Operation = 0x00000017 OperationQuery Operation = 0x00000018 OperationCancel Operation = 0x00000019 OperationPoll Operation = 0x0000001a OperationNotify Operation = 0x0000001b OperationPut Operation = 0x0000001c OperationReKeyKeyPair Operation = 0x0000001d OperationDiscoverVersions Operation = 0x0000001e OperationEncrypt Operation = 0x0000001f OperationDecrypt Operation = 0x00000020 OperationSign Operation = 0x00000021 OperationSignatureVerify Operation = 0x00000022 OperationMAC Operation = 0x00000023 OperationMACVerify Operation = 0x00000024 OperationRNGRetrieve Operation = 0x00000025 OperationRNGSeed Operation = 0x00000026 OperationHash Operation = 0x00000027 OperationCreateSplitKey Operation = 0x00000028 OperationJoinSplitKey Operation = 0x00000029 OperationImport Operation = 0x0000002a OperationExport Operation = 0x0000002b OperationLog Operation = 0x0000002c OperationLogin Operation = 0x0000002d OperationLogout Operation = 0x0000002e OperationDelegatedLogin Operation = 0x0000002f OperationAdjustAttribute Operation = 0x00000030 OperationSetAttribute Operation = 0x00000031 OperationSetEndpointRole Operation = 0x00000032 OperationPKCS_11 Operation = 0x00000033 OperationInterop Operation = 0x00000034 OperationReProvision Operation = 0x00000035 )
func (Operation) MarshalTTLV ¶
func (Operation) MarshalText ¶
type PKCS_11Function ¶
type PKCS_11Function uint32
PKCS#11 Function Enumeration
func (PKCS_11Function) MarshalTTLV ¶
func (PKCS_11Function) MarshalText ¶
func (p PKCS_11Function) MarshalText() (text []byte, err error)
func (PKCS_11Function) String ¶
func (p PKCS_11Function) String() string
type PKCS_11ReturnCode ¶
type PKCS_11ReturnCode uint32
PKCS#11 Return Code Enumeration
func (PKCS_11ReturnCode) MarshalTTLV ¶
func (PKCS_11ReturnCode) MarshalText ¶
func (p PKCS_11ReturnCode) MarshalText() (text []byte, err error)
func (PKCS_11ReturnCode) String ¶
func (p PKCS_11ReturnCode) String() string
type ProfileName ¶
type ProfileName uint32
Profile Name Enumeration 9.1.3.2.42
const ( ProfileNameBaselineServerBasicKMIPV1_2 ProfileName = 0x00000001 ProfileNameBaselineServerTLSV1_2KMIPV1_2 ProfileName = 0x00000002 ProfileNameBaselineClientBasicKMIPV1_2 ProfileName = 0x00000003 ProfileNameBaselineClientTLSV1_2KMIPV1_2 ProfileName = 0x00000004 ProfileNameCompleteServerBasicKMIPV1_2 ProfileName = 0x00000005 ProfileNameCompleteServerTLSV1_2KMIPV1_2 ProfileName = 0x00000006 ProfileNameTapeLibraryClientKMIPV1_0 ProfileName = 0x00000007 ProfileNameTapeLibraryClientKMIPV1_1 ProfileName = 0x00000008 ProfileNameTapeLibraryClientKMIPV1_2 ProfileName = 0x00000009 ProfileNameTapeLibraryServerKMIPV1_0 ProfileName = 0x0000000a ProfileNameTapeLibraryServerKMIPV1_1 ProfileName = 0x0000000b ProfileNameTapeLibraryServerKMIPV1_2 ProfileName = 0x0000000c ProfileNameSymmetricKeyLifecycleClientKMIPV1_0 ProfileName = 0x0000000d ProfileNameSymmetricKeyLifecycleClientKMIPV1_1 ProfileName = 0x0000000e ProfileNameSymmetricKeyLifecycleClientKMIPV1_2 ProfileName = 0x0000000f ProfileNameSymmetricKeyLifecycleServerKMIPV1_0 ProfileName = 0x00000010 ProfileNameSymmetricKeyLifecycleServerKMIPV1_1 ProfileName = 0x00000011 ProfileNameSymmetricKeyLifecycleServerKMIPV1_2 ProfileName = 0x00000012 ProfileNameAsymmetricKeyLifecycleClientKMIPV1_0 ProfileName = 0x00000013 ProfileNameAsymmetricKeyLifecycleClientKMIPV1_1 ProfileName = 0x00000014 ProfileNameAsymmetricKeyLifecycleClientKMIPV1_2 ProfileName = 0x00000015 ProfileNameAsymmetricKeyLifecycleServerKMIPV1_0 ProfileName = 0x00000016 ProfileNameAsymmetricKeyLifecycleServerKMIPV1_1 ProfileName = 0x00000017 ProfileNameAsymmetricKeyLifecycleServerKMIPV1_2 ProfileName = 0x00000018 ProfileNameBasicCryptographicClientKMIPV1_2 ProfileName = 0x00000019 ProfileNameBasicCryptographicServerKMIPV1_2 ProfileName = 0x0000001a ProfileNameAdvancedCryptographicClientKMIPV1_2 ProfileName = 0x0000001b ProfileNameAdvancedCryptographicServerKMIPV1_2 ProfileName = 0x0000001c ProfileNameRNGCryptographicClientKMIPV1_2 ProfileName = 0x0000001d ProfileNameRNGCryptographicServerKMIPV1_2 ProfileName = 0x0000001e ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_0 ProfileName = 0x0000001f ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_0 ProfileName = 0x00000020 ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_0 ProfileName = 0x00000021 ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_1 ProfileName = 0x00000022 ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_1 ProfileName = 0x00000023 ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_1 ProfileName = 0x00000024 ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_2 ProfileName = 0x00000025 ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_2 ProfileName = 0x00000026 ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_2 ProfileName = 0x00000027 ProfileNameSymmetricKeyFoundryServerKMIPV1_0 ProfileName = 0x00000028 ProfileNameSymmetricKeyFoundryServerKMIPV1_1 ProfileName = 0x00000029 ProfileNameSymmetricKeyFoundryServerKMIPV1_2 ProfileName = 0x0000002a ProfileNameOpaqueManagedObjectStoreClientKMIPV1_0 ProfileName = 0x0000002b ProfileNameOpaqueManagedObjectStoreClientKMIPV1_1 ProfileName = 0x0000002c ProfileNameOpaqueManagedObjectStoreClientKMIPV1_2 ProfileName = 0x0000002d ProfileNameOpaqueManagedObjectStoreServerKMIPV1_0 ProfileName = 0x0000002e ProfileNameOpaqueManagedObjectStoreServerKMIPV1_1 ProfileName = 0x0000002f ProfileNameOpaqueManagedObjectStoreServerKMIPV1_2 ProfileName = 0x00000030 ProfileNameSuiteBMinLOS_128ClientKMIPV1_0 ProfileName = 0x00000031 ProfileNameSuiteBMinLOS_128ClientKMIPV1_1 ProfileName = 0x00000032 ProfileNameSuiteBMinLOS_128ClientKMIPV1_2 ProfileName = 0x00000033 ProfileNameSuiteBMinLOS_128ServerKMIPV1_0 ProfileName = 0x00000034 ProfileNameSuiteBMinLOS_128ServerKMIPV1_1 ProfileName = 0x00000035 ProfileNameSuiteBMinLOS_128ServerKMIPV1_2 ProfileName = 0x00000036 ProfileNameSuiteBMinLOS_192ClientKMIPV1_0 ProfileName = 0x00000037 ProfileNameSuiteBMinLOS_192ClientKMIPV1_1 ProfileName = 0x00000038 ProfileNameSuiteBMinLOS_192ClientKMIPV1_2 ProfileName = 0x00000039 ProfileNameSuiteBMinLOS_192ServerKMIPV1_0 ProfileName = 0x0000003a ProfileNameSuiteBMinLOS_192ServerKMIPV1_1 ProfileName = 0x0000003b ProfileNameSuiteBMinLOS_192ServerKMIPV1_2 ProfileName = 0x0000003c ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_0 ProfileName = 0x0000003d ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_1 ProfileName = 0x0000003e ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_2 ProfileName = 0x0000003f ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_0 ProfileName = 0x00000040 ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_1 ProfileName = 0x00000041 ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_2 ProfileName = 0x00000042 ProfileNameHTTPSClientKMIPV1_0 ProfileName = 0x00000043 ProfileNameHTTPSClientKMIPV1_1 ProfileName = 0x00000044 ProfileNameHTTPSClientKMIPV1_2 ProfileName = 0x00000045 ProfileNameHTTPSServerKMIPV1_0 ProfileName = 0x00000046 ProfileNameHTTPSServerKMIPV1_1 ProfileName = 0x00000047 ProfileNameHTTPSServerKMIPV1_2 ProfileName = 0x00000048 ProfileNameJSONClientKMIPV1_0 ProfileName = 0x00000049 ProfileNameJSONClientKMIPV1_1 ProfileName = 0x0000004a ProfileNameJSONClientKMIPV1_2 ProfileName = 0x0000004b ProfileNameJSONServerKMIPV1_0 ProfileName = 0x0000004c ProfileNameJSONServerKMIPV1_1 ProfileName = 0x0000004d ProfileNameJSONServerKMIPV1_2 ProfileName = 0x0000004e ProfileNameXMLClientKMIPV1_0 ProfileName = 0x0000004f ProfileNameXMLClientKMIPV1_1 ProfileName = 0x00000050 ProfileNameXMLClientKMIPV1_2 ProfileName = 0x00000051 ProfileNameXMLServerKMIPV1_0 ProfileName = 0x00000052 ProfileNameXMLServerKMIPV1_1 ProfileName = 0x00000053 ProfileNameXMLServerKMIPV1_2 ProfileName = 0x00000054 ProfileNameBaselineServerBasicKMIPV1_3 ProfileName = 0x00000055 ProfileNameBaselineServerTLSV1_2KMIPV1_3 ProfileName = 0x00000056 ProfileNameBaselineClientBasicKMIPV1_3 ProfileName = 0x00000057 ProfileNameBaselineClientTLSV1_2KMIPV1_3 ProfileName = 0x00000058 ProfileNameCompleteServerBasicKMIPV1_3 ProfileName = 0x00000059 ProfileNameCompleteServerTLSV1_2KMIPV1_3 ProfileName = 0x0000005a ProfileNameTapeLibraryClientKMIPV1_3 ProfileName = 0x0000005b ProfileNameTapeLibraryServerKMIPV1_3 ProfileName = 0x0000005c ProfileNameSymmetricKeyLifecycleClientKMIPV1_3 ProfileName = 0x0000005d ProfileNameSymmetricKeyLifecycleServerKMIPV1_3 ProfileName = 0x0000005e ProfileNameAsymmetricKeyLifecycleClientKMIPV1_3 ProfileName = 0x0000005f ProfileNameAsymmetricKeyLifecycleServerKMIPV1_3 ProfileName = 0x00000060 ProfileNameBasicCryptographicClientKMIPV1_3 ProfileName = 0x00000061 ProfileNameBasicCryptographicServerKMIPV1_3 ProfileName = 0x00000062 ProfileNameAdvancedCryptographicClientKMIPV1_3 ProfileName = 0x00000063 ProfileNameAdvancedCryptographicServerKMIPV1_3 ProfileName = 0x00000064 ProfileNameRNGCryptographicClientKMIPV1_3 ProfileName = 0x00000065 ProfileNameRNGCryptographicServerKMIPV1_3 ProfileName = 0x00000066 ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_3 ProfileName = 0x00000067 ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_3 ProfileName = 0x00000068 ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_3 ProfileName = 0x00000069 ProfileNameSymmetricKeyFoundryServerKMIPV1_3 ProfileName = 0x0000006a ProfileNameOpaqueManagedObjectStoreClientKMIPV1_3 ProfileName = 0x0000006b ProfileNameOpaqueManagedObjectStoreServerKMIPV1_3 ProfileName = 0x0000006c ProfileNameSuiteBMinLOS_128ClientKMIPV1_3 ProfileName = 0x0000006d ProfileNameSuiteBMinLOS_128ServerKMIPV1_3 ProfileName = 0x0000006e ProfileNameSuiteBMinLOS_192ClientKMIPV1_3 ProfileName = 0x0000006f ProfileNameSuiteBMinLOS_192ServerKMIPV1_3 ProfileName = 0x00000070 ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_3 ProfileName = 0x00000071 ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_3 ProfileName = 0x00000072 ProfileNameHTTPSClientKMIPV1_3 ProfileName = 0x00000073 ProfileNameHTTPSServerKMIPV1_3 ProfileName = 0x00000074 ProfileNameJSONClientKMIPV1_3 ProfileName = 0x00000075 ProfileNameJSONServerKMIPV1_3 ProfileName = 0x00000076 ProfileNameXMLClientKMIPV1_3 ProfileName = 0x00000077 ProfileNameXMLServerKMIPV1_3 ProfileName = 0x00000078 ProfileNameBaselineServerBasicKMIPV1_4 ProfileName = 0x00000079 ProfileNameBaselineServerTLSV1_2KMIPV1_4 ProfileName = 0x0000007a ProfileNameBaselineClientBasicKMIPV1_4 ProfileName = 0x0000007b ProfileNameBaselineClientTLSV1_2KMIPV1_4 ProfileName = 0x0000007c ProfileNameCompleteServerBasicKMIPV1_4 ProfileName = 0x0000007d ProfileNameCompleteServerTLSV1_2KMIPV1_4 ProfileName = 0x0000007e ProfileNameTapeLibraryClientKMIPV1_4 ProfileName = 0x0000007f ProfileNameTapeLibraryServerKMIPV1_4 ProfileName = 0x00000080 ProfileNameSymmetricKeyLifecycleClientKMIPV1_4 ProfileName = 0x00000081 ProfileNameSymmetricKeyLifecycleServerKMIPV1_4 ProfileName = 0x00000082 ProfileNameAsymmetricKeyLifecycleClientKMIPV1_4 ProfileName = 0x00000083 ProfileNameAsymmetricKeyLifecycleServerKMIPV1_4 ProfileName = 0x00000084 ProfileNameBasicCryptographicClientKMIPV1_4 ProfileName = 0x00000085 ProfileNameBasicCryptographicServerKMIPV1_4 ProfileName = 0x00000086 ProfileNameAdvancedCryptographicClientKMIPV1_4 ProfileName = 0x00000087 ProfileNameAdvancedCryptographicServerKMIPV1_4 ProfileName = 0x00000088 ProfileNameRNGCryptographicClientKMIPV1_4 ProfileName = 0x00000089 ProfileNameRNGCryptographicServerKMIPV1_4 ProfileName = 0x0000008a ProfileNameBasicSymmetricKeyFoundryClientKMIPV1_4 ProfileName = 0x0000008b ProfileNameIntermediateSymmetricKeyFoundryClientKMIPV1_4 ProfileName = 0x0000008c ProfileNameAdvancedSymmetricKeyFoundryClientKMIPV1_4 ProfileName = 0x0000008d ProfileNameSymmetricKeyFoundryServerKMIPV1_4 ProfileName = 0x0000008e ProfileNameOpaqueManagedObjectStoreClientKMIPV1_4 ProfileName = 0x0000008f ProfileNameOpaqueManagedObjectStoreServerKMIPV1_4 ProfileName = 0x00000090 ProfileNameSuiteBMinLOS_128ClientKMIPV1_4 ProfileName = 0x00000091 ProfileNameSuiteBMinLOS_128ServerKMIPV1_4 ProfileName = 0x00000092 ProfileNameSuiteBMinLOS_192ClientKMIPV1_4 ProfileName = 0x00000093 ProfileNameSuiteBMinLOS_192ServerKMIPV1_4 ProfileName = 0x00000094 ProfileNameStorageArrayWithSelfEncryptingDriveClientKMIPV1_4 ProfileName = 0x00000095 ProfileNameStorageArrayWithSelfEncryptingDriveServerKMIPV1_4 ProfileName = 0x00000096 ProfileNameHTTPSClientKMIPV1_4 ProfileName = 0x00000097 ProfileNameHTTPSServerKMIPV1_4 ProfileName = 0x00000098 ProfileNameJSONClientKMIPV1_4 ProfileName = 0x00000099 ProfileNameJSONServerKMIPV1_4 ProfileName = 0x0000009a ProfileNameXMLClientKMIPV1_4 ProfileName = 0x0000009b ProfileNameXMLServerKMIPV1_4 ProfileName = 0x0000009c ProfileNameCompleteServerBasic ProfileName = 0x00000104 ProfileNameCompleteServerTLSV1_2 ProfileName = 0x00000105 ProfileNameTapeLibraryClient ProfileName = 0x00000106 ProfileNameTapeLibraryServer ProfileName = 0x00000107 ProfileNameSymmetricKeyLifecycleClient ProfileName = 0x00000108 ProfileNameSymmetricKeyLifecycleServer ProfileName = 0x00000109 ProfileNameAsymmetricKeyLifecycleClient ProfileName = 0x0000010a ProfileNameAsymmetricKeyLifecycleServer ProfileName = 0x0000010b ProfileNameBasicCryptographicClient ProfileName = 0x0000010c ProfileNameBasicCryptographicServer ProfileName = 0x0000010d ProfileNameAdvancedCryptographicClient ProfileName = 0x0000010e ProfileNameAdvancedCryptographicServer ProfileName = 0x0000010f ProfileNameRNGCryptographicClient ProfileName = 0x00000110 ProfileNameRNGCryptographicServer ProfileName = 0x00000111 ProfileNameBasicSymmetricKeyFoundryClient ProfileName = 0x00000112 ProfileNameIntermediateSymmetricKeyFoundryClient ProfileName = 0x00000113 ProfileNameAdvancedSymmetricKeyFoundryClient ProfileName = 0x00000114 ProfileNameSymmetricKeyFoundryServer ProfileName = 0x00000115 ProfileNameOpaqueManagedObjectStoreClient ProfileName = 0x00000116 ProfileNameOpaqueManagedObjectStoreServer ProfileName = 0x00000117 ProfileNameSuiteBMinLOS_128Client ProfileName = 0x00000118 ProfileNameSuiteBMinLOS_128Server ProfileName = 0x00000119 ProfileNameSuiteBMinLOS_192Client ProfileName = 0x0000011a ProfileNameSuiteBMinLOS_192Server ProfileName = 0x0000011b ProfileNameStorageArrayWithSelfEncryptingDriveClient ProfileName = 0x0000011c ProfileNameStorageArrayWithSelfEncryptingDriveServer ProfileName = 0x0000011d ProfileNameHTTPSClient ProfileName = 0x0000011e ProfileNameHTTPSServer ProfileName = 0x0000011f ProfileNameJSONClient ProfileName = 0x00000120 ProfileNameJSONServer ProfileName = 0x00000121 ProfileNameXMLClient ProfileName = 0x00000122 ProfileNameXMLServer ProfileName = 0x00000123 ProfileNameAESXTSClient ProfileName = 0x00000124 ProfileNameAESXTSServer ProfileName = 0x00000125 ProfileNameQuantumSafeClient ProfileName = 0x00000126 ProfileNameQuantumSafeServer ProfileName = 0x00000127 ProfileNamePKCS_11Client ProfileName = 0x00000128 ProfileNamePKCS_11Server ProfileName = 0x00000129 ProfileNameBaselineClient ProfileName = 0x0000012a ProfileNameBaselineServer ProfileName = 0x0000012b ProfileNameCompleteServer ProfileName = 0x0000012c )
func (ProfileName) MarshalTTLV ¶
func (ProfileName) MarshalText ¶
func (p ProfileName) MarshalText() (text []byte, err error)
func (ProfileName) String ¶
func (p ProfileName) String() string
type ProtectionLevel ¶
type ProtectionLevel uint32
Protection Level Enumeration
const ( ProtectionLevelHigh ProtectionLevel = 0x00000001 ProtectionLevelLow ProtectionLevel = 0x00000002 )
func (ProtectionLevel) MarshalTTLV ¶
func (ProtectionLevel) MarshalText ¶
func (p ProtectionLevel) MarshalText() (text []byte, err error)
func (ProtectionLevel) String ¶
func (p ProtectionLevel) String() string
type ProtectionStorageMask ¶
type ProtectionStorageMask uint32
Protection Storage Mask Bit Mask
const ( ProtectionStorageMaskSoftware ProtectionStorageMask = 0x00000001 ProtectionStorageMaskHardware ProtectionStorageMask = 0x00000002 ProtectionStorageMaskOnProcessor ProtectionStorageMask = 0x00000004 ProtectionStorageMaskOnSystem ProtectionStorageMask = 0x00000008 ProtectionStorageMaskOffSystem ProtectionStorageMask = 0x00000010 ProtectionStorageMaskHypervisor ProtectionStorageMask = 0x00000020 ProtectionStorageMaskOperatingSystem ProtectionStorageMask = 0x00000040 ProtectionStorageMaskContainer ProtectionStorageMask = 0x00000080 ProtectionStorageMaskOnPremises ProtectionStorageMask = 0x00000100 ProtectionStorageMaskOffPremises ProtectionStorageMask = 0x00000200 ProtectionStorageMaskSelfManaged ProtectionStorageMask = 0x00000400 ProtectionStorageMaskOutsourced ProtectionStorageMask = 0x00000800 ProtectionStorageMaskValidated ProtectionStorageMask = 0x00001000 ProtectionStorageMaskSameJurisdiction ProtectionStorageMask = 0x00002000 )
func (ProtectionStorageMask) MarshalTTLV ¶
func (ProtectionStorageMask) MarshalText ¶
func (p ProtectionStorageMask) MarshalText() (text []byte, err error)
func (ProtectionStorageMask) String ¶
func (p ProtectionStorageMask) String() string
type QueryFunction ¶
type QueryFunction uint32
Query Function Enumeration 9.1.3.2.24 Table 312
const ( QueryFunctionQueryOperations QueryFunction = 0x00000001 QueryFunctionQueryObjects QueryFunction = 0x00000002 QueryFunctionQueryServerInformation QueryFunction = 0x00000003 QueryFunctionQueryApplicationNamespaces QueryFunction = 0x00000004 QueryFunctionQueryExtensionList QueryFunction = 0x00000005 QueryFunctionQueryExtensionMap QueryFunction = 0x00000006 QueryFunctionQueryAttestationTypes QueryFunction = 0x00000007 QueryFunctionQueryRNGs QueryFunction = 0x00000008 QueryFunctionQueryValidations QueryFunction = 0x00000009 QueryFunctionQueryProfiles QueryFunction = 0x0000000a QueryFunctionQueryCapabilities QueryFunction = 0x0000000b QueryFunctionQueryClientRegistrationMethods QueryFunction = 0x0000000c QueryFunctionQueryDefaultsInformation QueryFunction = 0x0000000d QueryFunctionQueryStorageProtectionMasks QueryFunction = 0x0000000e )
func (QueryFunction) MarshalTTLV ¶
func (QueryFunction) MarshalText ¶
func (q QueryFunction) MarshalText() (text []byte, err error)
func (QueryFunction) String ¶
func (q QueryFunction) String() string
type QueryHandler ¶ added in v0.0.8
type QueryHandler struct {
Query func(ctx context.Context, payload *QueryRequestPayload) (*QueryResponsePayload, error)
}
func (*QueryHandler) HandleItem ¶ added in v0.0.8
func (h *QueryHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type QueryRequestPayload ¶ added in v0.0.8
type QueryRequestPayload struct {
QueryFunction QueryFunction
}
type QueryResponsePayload ¶ added in v0.0.8
type QueryResponsePayload struct { Operation []kmip14.Operation ObjectType []ObjectType VendorIdentification string ServerInformation []ServerInformation ApplicationNamespace []string ExtensionInformation []ExtensionInformation AttestationType kmip14.AttestationType RNGParameters []RNGParameters ProfileInformation []ProfileName ValidationInformation []kmip14.ValidationAuthorityType CapabilityInformation []CapabilityInformation ClientRegistrationMethod kmip14.ClientRegistrationMethod DefaultsInformation *DefaultsInformation ProtectionStorageMasks []ProtectionStorageMask }
type RNGParameters ¶ added in v0.0.8
type RNGParameters struct { RNGAlgorithm kmip14.RNGAlgorithm // Required: Yes CryptographicAlgorithm kmip14.CryptographicAlgorithm // Required: No CryptographicLength int // Required: No HashingAlgorithm kmip14.HashingAlgorithm // Required: No DRBGAlgorithm kmip14.DRBGAlgorithm // Required: No RecommendedCurve kmip14.RecommendedCurve // Required: No FIPS186Variation kmip14.FIPS186Variation // Required: No PredictionResistance bool // Required: No }
7.30 RNG Parameters The RNG Parameters base object is a structure that contains a mandatory RNG Algorithm and a set of OPTIONAL fields that describe a Random Number Generator. Specific fields pertain only to certain types of RNGs. The RNG Algorithm SHALL be specified and if the algorithm implemented is unknown or the implementation does not want to provide the specific details of the RNG Algorithm then the Unspecified enumeration SHALL be used. If the cryptographic building blocks used within the RNG are known they MAY be specified in combination of the remaining fields within the RNG Parameters structure.
type RecommendedCurve ¶
type RecommendedCurve uint32
Recommended Curve Enumeration 9.1.3.2.5 Table 293
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 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 RecommendedCurveANSIX9C2TNB191V1 RecommendedCurve = 0x0000002b RecommendedCurveANSIX9C2TNB191V2 RecommendedCurve = 0x0000002c RecommendedCurveANSIX9C2TNB191V3 RecommendedCurve = 0x0000002d RecommendedCurveANSIX9C2PNB208W1 RecommendedCurve = 0x0000002e RecommendedCurveANSIX9C2TNB239V1 RecommendedCurve = 0x0000002f RecommendedCurveANSIX9C2TNB239V2 RecommendedCurve = 0x00000030 RecommendedCurveANSIX9C2TNB239V3 RecommendedCurve = 0x00000031 RecommendedCurveANSIX9C2PNB272W1 RecommendedCurve = 0x00000032 RecommendedCurveANSIX9C2PNB304W1 RecommendedCurve = 0x00000033 RecommendedCurveANSIX9C2TNB359V1 RecommendedCurve = 0x00000034 RecommendedCurveANSIX9C2PNB368W1 RecommendedCurve = 0x00000035 RecommendedCurveANSIX9C2TNB431R1 RecommendedCurve = 0x00000036 RecommendedCurveBRAINPOOLP160R1 RecommendedCurve = 0x00000037 RecommendedCurveBRAINPOOLP160T1 RecommendedCurve = 0x00000038 RecommendedCurveBRAINPOOLP192R1 RecommendedCurve = 0x00000039 RecommendedCurveBRAINPOOLP192T1 RecommendedCurve = 0x0000003a RecommendedCurveBRAINPOOLP224R1 RecommendedCurve = 0x0000003b RecommendedCurveBRAINPOOLP224T1 RecommendedCurve = 0x0000003c RecommendedCurveBRAINPOOLP256R1 RecommendedCurve = 0x0000003d RecommendedCurveBRAINPOOLP256T1 RecommendedCurve = 0x0000003e RecommendedCurveBRAINPOOLP320R1 RecommendedCurve = 0x0000003f RecommendedCurveBRAINPOOLP320T1 RecommendedCurve = 0x00000040 RecommendedCurveBRAINPOOLP384R1 RecommendedCurve = 0x00000041 RecommendedCurveBRAINPOOLP384T1 RecommendedCurve = 0x00000042 RecommendedCurveBRAINPOOLP512R1 RecommendedCurve = 0x00000043 RecommendedCurveBRAINPOOLP512T1 RecommendedCurve = 0x00000044 RecommendedCurveCURVE25519 RecommendedCurve = 0x00000045 RecommendedCurveCURVE448 RecommendedCurve = 0x00000046 )
func (RecommendedCurve) MarshalTTLV ¶
func (RecommendedCurve) MarshalText ¶
func (r RecommendedCurve) MarshalText() (text []byte, err error)
func (RecommendedCurve) String ¶
func (r RecommendedCurve) String() string
type ResultReason ¶
type ResultReason uint32
Result Reason Enumeration 9.1.3.2.29 Table 317
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 ResultReasonEncodingOptionError ResultReason = 0x00000012 ResultReasonKeyValueNotPresent ResultReason = 0x00000013 ResultReasonAttestationRequired ResultReason = 0x00000014 ResultReasonAttestationFailed ResultReason = 0x00000015 ResultReasonSensitive ResultReason = 0x00000016 ResultReasonNotExtractable ResultReason = 0x00000017 ResultReasonObjectAlreadyExists ResultReason = 0x00000018 ResultReasonInvalidTicket ResultReason = 0x00000019 ResultReasonUsageLimitExceeded ResultReason = 0x0000001a ResultReasonNumericRange ResultReason = 0x0000001b ResultReasonInvalidDataType ResultReason = 0x0000001c ResultReasonReadOnlyAttribute ResultReason = 0x0000001d ResultReasonMultiValuedAttribute ResultReason = 0x0000001e ResultReasonUnsupportedAttribute ResultReason = 0x0000001f ResultReasonAttributeInstanceNotFound ResultReason = 0x00000020 ResultReasonAttributeNotFound ResultReason = 0x00000021 ResultReasonAttributeReadOnly ResultReason = 0x00000022 ResultReasonAttributeSingleValued ResultReason = 0x00000023 ResultReasonBadCryptographicParameters ResultReason = 0x00000024 ResultReasonBadPassword ResultReason = 0x00000025 ResultReasonCodecError ResultReason = 0x00000026 ResultReasonIllegalObjectType ResultReason = 0x00000028 ResultReasonIncompatibleCryptographicUsageMask ResultReason = 0x00000029 ResultReasonInternalServerError ResultReason = 0x0000002a ResultReasonInvalidAsynchronousCorrelationValue ResultReason = 0x0000002b ResultReasonInvalidAttribute ResultReason = 0x0000002c ResultReasonInvalidAttributeValue ResultReason = 0x0000002d ResultReasonInvalidCorrelationValue ResultReason = 0x0000002e ResultReasonInvalidCSR ResultReason = 0x0000002f ResultReasonInvalidObjectType ResultReason = 0x00000030 ResultReasonKeyWrapTypeNotSupported ResultReason = 0x00000032 ResultReasonMissingInitializationVector ResultReason = 0x00000034 ResultReasonNonUniqueNameAttribute ResultReason = 0x00000035 ResultReasonObjectDestroyed ResultReason = 0x00000036 ResultReasonObjectNotFound ResultReason = 0x00000037 ResultReasonNotAuthorized ResultReason = 0x00000039 ResultReasonServerLimitExceeded ResultReason = 0x0000003a ResultReasonUnknownEnumeration ResultReason = 0x0000003b ResultReasonUnknownMessageExtension ResultReason = 0x0000003c ResultReasonUnknownTag ResultReason = 0x0000003d ResultReasonUnsupportedCryptographicParameters ResultReason = 0x0000003e ResultReasonUnsupportedProtocolVersion ResultReason = 0x0000003f ResultReasonWrappingObjectArchived ResultReason = 0x00000040 ResultReasonWrappingObjectDestroyed ResultReason = 0x00000041 ResultReasonWrappingObjectNotFound ResultReason = 0x00000042 ResultReasonWrongKeyLifecycleState ResultReason = 0x00000043 ResultReasonPKCS_11CodecError ResultReason = 0x00000045 ResultReasonPKCS_11InvalidFunction ResultReason = 0x00000046 ResultReasonPKCS_11InvalidInterface ResultReason = 0x00000047 ResultReasonGeneralFailure ResultReason = 0x00000100 )
func (ResultReason) MarshalTTLV ¶
func (ResultReason) MarshalText ¶
func (r ResultReason) MarshalText() (text []byte, err error)
func (ResultReason) String ¶
func (r ResultReason) String() string
type RevocationReason ¶ added in v0.0.8
type RevocationReason struct {
RevocationReasonCode kmip14.RevocationReasonCode
}
type RevokeHandler ¶ added in v0.0.8
type RevokeHandler struct {
Revoke func(ctx context.Context, payload *RevokeRequestPayload) (*RevokeResponsePayload, error)
}
func (*RevokeHandler) HandleItem ¶ added in v0.0.8
func (h *RevokeHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type RevokeRequestPayload ¶ added in v0.0.8
type RevokeRequestPayload struct { UniqueIdentifier *UniqueIdentifierValue RevocationReason RevocationReason CompromiseOccurrenceDate *time.Time }
type RevokeResponsePayload ¶ added in v0.0.8
type RevokeResponsePayload struct {
UniqueIdentifier string
}
type ServerInformation ¶ added in v0.0.8
type ServerInformation struct { ServerName string // Required: No ServerSerialNumber string // Required: No ServerVersion string // Required: No ServerLoad string // Required: No ProductName string // Required: No BuildLevel string // Required: No BuildDate string // Required: No ClusterInfo string // Required: No AlternativeFailoverEndpoints []string // Required: No VendorSpecific []string // Required: No }
7.31 Server Information The Server Information base object is a structure that contains a set of OPTIONAL fields that describe server information. Where a server supports returning information in a vendor-specific field for which there is an equivalent field within the structure, the server SHALL provide the standardized version of the field.
type SetAttributeHandler ¶ added in v0.0.8
type SetAttributeHandler struct {
SetAttribute func(ctx context.Context, payload *SetAttributeRequestPayload) (*SetAttributeResponsePayload, error)
}
func (*SetAttributeHandler) HandleItem ¶ added in v0.0.8
func (h *SetAttributeHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error)
type SetAttributeRequestPayload ¶ added in v0.0.8
type SetAttributeRequestPayload struct { UniqueIdentifier *UniqueIdentifierValue NewAttribute Attributes `ttlv:"DerivationData"` }
type SetAttributeResponsePayload ¶ added in v0.0.8
type SetAttributeResponsePayload struct {
UniqueIdentifier string
}
type TicketType ¶
type TicketType uint32
Ticket Type Enumeration
const (
TicketTypeLogin TicketType = 0x00000001
)
func (TicketType) MarshalTTLV ¶
func (TicketType) MarshalText ¶
func (t TicketType) MarshalText() (text []byte, err error)
func (TicketType) String ¶
func (t TicketType) String() string
type UniqueIdentifier ¶
type UniqueIdentifier uint32
Unique Identifier Enumeration
const ( UniqueIdentifierIDPlaceholder UniqueIdentifier = 0x00000001 UniqueIdentifierCertify UniqueIdentifier = 0x00000002 UniqueIdentifierCreate UniqueIdentifier = 0x00000003 UniqueIdentifierCreateKeyPair UniqueIdentifier = 0x00000004 UniqueIdentifierCreateKeyPairPrivateKey UniqueIdentifier = 0x00000005 UniqueIdentifierCreateKeyPairPublicKey UniqueIdentifier = 0x00000006 UniqueIdentifierCreateSplitKey UniqueIdentifier = 0x00000007 UniqueIdentifierDeriveKey UniqueIdentifier = 0x00000008 UniqueIdentifierImport UniqueIdentifier = 0x00000009 UniqueIdentifierJoinSplitKey UniqueIdentifier = 0x0000000a UniqueIdentifierLocate UniqueIdentifier = 0x0000000b UniqueIdentifierRegister UniqueIdentifier = 0x0000000c UniqueIdentifierReKey UniqueIdentifier = 0x0000000d UniqueIdentifierReCertify UniqueIdentifier = 0x0000000e UniqueIdentifierReKeyKeyPair UniqueIdentifier = 0x0000000f UniqueIdentifierReKeyKeyPairPrivateKey UniqueIdentifier = 0x00000010 UniqueIdentifierReKeyKeyPairPublicKey UniqueIdentifier = 0x00000011 )
func (UniqueIdentifier) MarshalTTLV ¶
func (UniqueIdentifier) MarshalText ¶
func (u UniqueIdentifier) MarshalText() (text []byte, err error)
func (UniqueIdentifier) String ¶
func (u UniqueIdentifier) String() string
type UniqueIdentifierValue ¶ added in v0.0.6
type UniqueIdentifierValue struct { Text string Enum UniqueIdentifier Index int32 }