mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-04 20:20:19 +00:00
73 lines
922 B
Go
73 lines
922 B
Go
|
package kmip
|
||
|
|
||
|
import (
|
||
|
"math/big"
|
||
|
|
||
|
"github.com/gemalto/kmip-go/kmip14"
|
||
|
)
|
||
|
|
||
|
// 2.2
|
||
|
|
||
|
// 2.2.1
|
||
|
|
||
|
type Certificate struct {
|
||
|
CertificateType kmip14.CertificateType
|
||
|
CertificateValue []byte
|
||
|
}
|
||
|
|
||
|
// 2.2.2
|
||
|
|
||
|
type SymmetricKey struct {
|
||
|
KeyBlock KeyBlock
|
||
|
}
|
||
|
|
||
|
// 2.2.3
|
||
|
|
||
|
type PublicKey struct {
|
||
|
KeyBlock KeyBlock
|
||
|
}
|
||
|
|
||
|
// 2.2.4
|
||
|
|
||
|
type PrivateKey struct {
|
||
|
KeyBlock KeyBlock
|
||
|
}
|
||
|
|
||
|
// 2.2.5
|
||
|
|
||
|
type SplitKey struct {
|
||
|
SplitKeyParts int
|
||
|
KeyPartIdentifier int
|
||
|
SplitKeyThreshold int
|
||
|
SplitKeyMethod kmip14.SplitKeyMethod
|
||
|
PrimeFieldSize *big.Int `ttlv:",omitempty"`
|
||
|
KeyBlock KeyBlock
|
||
|
}
|
||
|
|
||
|
// 2.2.6
|
||
|
|
||
|
type Template struct {
|
||
|
Attribute []Attribute
|
||
|
}
|
||
|
|
||
|
// 2.2.7
|
||
|
|
||
|
type SecretData struct {
|
||
|
SecretDataType kmip14.SecretDataType
|
||
|
KeyBlock KeyBlock
|
||
|
}
|
||
|
|
||
|
// 2.2.8
|
||
|
|
||
|
type OpaqueObject struct {
|
||
|
OpaqueDataType kmip14.OpaqueDataType
|
||
|
OpaqueDataValue []byte
|
||
|
}
|
||
|
|
||
|
// 2.2.9
|
||
|
|
||
|
type PGPKey struct {
|
||
|
PGPKeyVersion int
|
||
|
KeyBlock KeyBlock
|
||
|
}
|