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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Contains information about an alias.
type Alias struct {
// A friendly name that you can use to refer to a key. The value must begin with
// alias/ . Do not include confidential or sensitive information in this field.
// This field may be displayed in plaintext in CloudTrail logs and other output.
//
// This member is required.
AliasName *string
// The KeyARN of the key associated with the alias.
KeyArn *string
noSmithyDocumentSerde
}
// The attributes for IPEK generation during export.
type ExportAttributes struct {
// Parameter information for IPEK export.
ExportDukptInitialKey *ExportDukptInitialKey
// The algorithm that Amazon Web Services Payment Cryptography uses to calculate
// the key check value (KCV). It is used to validate the key integrity. Specify KCV
// for IPEK export only. For TDES keys, the KCV is computed by encrypting 8 bytes,
// each with value of zero, with the key to be checked and retaining the 3 highest
// order bytes of the encrypted result. For AES keys, the KCV is computed using a
// CMAC algorithm where the input data is 16 bytes of zero and retaining the 3
// highest order bytes of the encrypted result.
KeyCheckValueAlgorithm KeyCheckValueAlgorithm
noSmithyDocumentSerde
}
// Parameter information for IPEK generation during export.
type ExportDukptInitialKey struct {
// The KSN for IPEK generation using DUKPT. KSN must be padded before sending to
// Amazon Web Services Payment Cryptography. KSN hex length should be 20 for a
// TDES_2KEY key or 24 for an AES key.
//
// This member is required.
KeySerialNumber *string
noSmithyDocumentSerde
}
// Parameter information for key material export from Amazon Web Services Payment
// Cryptography using TR-31 or TR-34 key exchange method.
//
// The following types satisfy this interface:
//
// ExportKeyMaterialMemberTr31KeyBlock
// ExportKeyMaterialMemberTr34KeyBlock
type ExportKeyMaterial interface {
isExportKeyMaterial()
}
// Parameter information for key material export using symmetric TR-31 key
// exchange method.
type ExportKeyMaterialMemberTr31KeyBlock struct {
Value ExportTr31KeyBlock
noSmithyDocumentSerde
}
func (*ExportKeyMaterialMemberTr31KeyBlock) isExportKeyMaterial() {}
// Parameter information for key material export using the asymmetric TR-34 key
// exchange method.
type ExportKeyMaterialMemberTr34KeyBlock struct {
Value ExportTr34KeyBlock
noSmithyDocumentSerde
}
func (*ExportKeyMaterialMemberTr34KeyBlock) isExportKeyMaterial() {}
// Parameter information for key material export using symmetric TR-31 key
// exchange method.
type ExportTr31KeyBlock struct {
// The KeyARN of the the wrapping key. This key encrypts or wraps the key under
// export for TR-31 key block generation.
//
// This member is required.
WrappingKeyIdentifier *string
noSmithyDocumentSerde
}
// Parameter information for key material export using the asymmetric TR-34 key
// exchange method.
type ExportTr34KeyBlock struct {
// The KeyARN of the certificate chain that signs the wrapping key certificate
// during TR-34 key export.
//
// This member is required.
CertificateAuthorityPublicKeyIdentifier *string
// The export token to initiate key export from Amazon Web Services Payment
// Cryptography. It also contains the signing key certificate that will sign the
// wrapped key during TR-34 key block generation. Call GetParametersForExport to
// receive an export token. It expires after 7 days. You can use the same export
// token to export multiple keys from the same service account.
//
// This member is required.
ExportToken *string
// The format of key block that Amazon Web Services Payment Cryptography will use
// during key export.
//
// This member is required.
KeyBlockFormat Tr34KeyBlockFormat
// The KeyARN of the wrapping key certificate. Amazon Web Services Payment
// Cryptography uses this certificate to wrap the key under export.
//
// This member is required.
WrappingKeyCertificate *string
// A random number value that is unique to the TR-34 key block generated using 2
// pass. The operation will fail, if a random nonce value is not provided for a
// TR-34 key block generated using 2 pass.
RandomNonce *string
noSmithyDocumentSerde
}
// Parameter information for key material import into Amazon Web Services Payment
// Cryptography using TR-31 or TR-34 key exchange method.
//
// The following types satisfy this interface:
//
// ImportKeyMaterialMemberRootCertificatePublicKey
// ImportKeyMaterialMemberTr31KeyBlock
// ImportKeyMaterialMemberTr34KeyBlock
// ImportKeyMaterialMemberTrustedCertificatePublicKey
type ImportKeyMaterial interface {
isImportKeyMaterial()
}
// Parameter information for root public key certificate import.
type ImportKeyMaterialMemberRootCertificatePublicKey struct {
Value RootCertificatePublicKey
noSmithyDocumentSerde
}
func (*ImportKeyMaterialMemberRootCertificatePublicKey) isImportKeyMaterial() {}
// Parameter information for key material import using symmetric TR-31 key
// exchange method.
type ImportKeyMaterialMemberTr31KeyBlock struct {
Value ImportTr31KeyBlock
noSmithyDocumentSerde
}
func (*ImportKeyMaterialMemberTr31KeyBlock) isImportKeyMaterial() {}
// Parameter information for key material import using the asymmetric TR-34 key
// exchange method.
type ImportKeyMaterialMemberTr34KeyBlock struct {
Value ImportTr34KeyBlock
noSmithyDocumentSerde
}
func (*ImportKeyMaterialMemberTr34KeyBlock) isImportKeyMaterial() {}
// Parameter information for trusted public key certificate import.
type ImportKeyMaterialMemberTrustedCertificatePublicKey struct {
Value TrustedCertificatePublicKey
noSmithyDocumentSerde
}
func (*ImportKeyMaterialMemberTrustedCertificatePublicKey) isImportKeyMaterial() {}
// Parameter information for key material import using symmetric TR-31 key
// exchange method.
type ImportTr31KeyBlock struct {
// The TR-31 wrapped key block to import.
//
// This member is required.
WrappedKeyBlock *string
// The KeyARN of the key that will decrypt or unwrap a TR-31 key block during
// import.
//
// This member is required.
WrappingKeyIdentifier *string
noSmithyDocumentSerde
}
// Parameter information for key material import using the asymmetric TR-34 key
// exchange method.
type ImportTr34KeyBlock struct {
// The KeyARN of the certificate chain that signs the signing key certificate
// during TR-34 key import.
//
// This member is required.
CertificateAuthorityPublicKeyIdentifier *string
// The import token that initiates key import using the asymmetric TR-34 key
// exchange method into Amazon Web Services Payment Cryptography. It expires after
// 7 days. You can use the same import token to import multiple keys to the same
// service account.
//
// This member is required.
ImportToken *string
// The key block format to use during key import. The only value allowed is
// X9_TR34_2012 .
//
// This member is required.
KeyBlockFormat Tr34KeyBlockFormat
// The public key component in PEM certificate format of the private key that
// signs the KDH TR-34 WrappedKeyBlock.
//
// This member is required.
SigningKeyCertificate *string
// The TR-34 wrapped key block to import.
//
// This member is required.
WrappedKeyBlock *string
// A random number value that is unique to the TR-34 key block generated using 2
// pass. The operation will fail, if a random nonce value is not provided for a
// TR-34 key block generated using 2 pass.
RandomNonce *string
noSmithyDocumentSerde
}
// Metadata about an Amazon Web Services Payment Cryptography key.
type Key struct {
// The date and time when the key was created.
//
// This member is required.
CreateTimestamp *time.Time
// Specifies whether the key is enabled.
//
// This member is required.
Enabled *bool
// Specifies whether the key is exportable. This data is immutable after the key
// is created.
//
// This member is required.
Exportable *bool
// The Amazon Resource Name (ARN) of the key.
//
// This member is required.
KeyArn *string
// The role of the key, the algorithm it supports, and the cryptographic
// operations allowed with the key. This data is immutable after the key is
// created.
//
// This member is required.
KeyAttributes *KeyAttributes
// The key check value (KCV) is used to check if all parties holding a given key
// have the same key or to detect that a key has changed.
//
// This member is required.
KeyCheckValue *string
// The algorithm that Amazon Web Services Payment Cryptography uses to calculate
// the key check value (KCV). It is used to validate the key integrity. For TDES
// keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with
// the key to be checked and retaining the 3 highest order bytes of the encrypted
// result. For AES keys, the KCV is computed using a CMAC algorithm where the input
// data is 16 bytes of zero and retaining the 3 highest order bytes of the
// encrypted result.
//
// This member is required.
KeyCheckValueAlgorithm KeyCheckValueAlgorithm
// The source of the key material. For keys created within Amazon Web Services
// Payment Cryptography, the value is AWS_PAYMENT_CRYPTOGRAPHY . For keys imported
// into Amazon Web Services Payment Cryptography, the value is EXTERNAL .
//
// This member is required.
KeyOrigin KeyOrigin
// The state of key that is being created or deleted.
//
// This member is required.
KeyState KeyState
// The date and time after which Amazon Web Services Payment Cryptography will
// delete the key. This value is present only when KeyState is DELETE_PENDING and
// the key is scheduled for deletion.
DeletePendingTimestamp *time.Time
// The date and time after which Amazon Web Services Payment Cryptography will
// delete the key. This value is present only when when the KeyState is
// DELETE_COMPLETE and the Amazon Web Services Payment Cryptography key is deleted.
DeleteTimestamp *time.Time
// The date and time after which Amazon Web Services Payment Cryptography will
// start using the key material for cryptographic operations.
UsageStartTimestamp *time.Time
// The date and time after which Amazon Web Services Payment Cryptography will
// stop using the key material for cryptographic operations.
UsageStopTimestamp *time.Time
noSmithyDocumentSerde
}
// The role of the key, the algorithm it supports, and the cryptographic
// operations allowed with the key. This data is immutable after the key is
// created.
type KeyAttributes struct {
// The key algorithm to be use during creation of an Amazon Web Services Payment
// Cryptography key. For symmetric keys, Amazon Web Services Payment Cryptography
// supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services
// Payment Cryptography supports RSA and ECC_NIST algorithms.
//
// This member is required.
KeyAlgorithm KeyAlgorithm
// The type of Amazon Web Services Payment Cryptography key to create, which
// determines the classification of the cryptographic method and whether Amazon Web
// Services Payment Cryptography key contains a symmetric key or an asymmetric key
// pair.
//
// This member is required.
KeyClass KeyClass
// The list of cryptographic operations that you can perform using the key.
//
// This member is required.
KeyModesOfUse *KeyModesOfUse
// The cryptographic usage of an Amazon Web Services Payment Cryptography key as
// defined in section A.5.2 of the TR-31 spec.
//
// This member is required.
KeyUsage KeyUsage
noSmithyDocumentSerde
}
// The list of cryptographic operations that you can perform using the key. The
// modes of use are defined in section A.5.3 of the TR-31 spec.
type KeyModesOfUse struct {
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// decrypt data.
Decrypt bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// derive new keys.
DeriveKey bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// encrypt data.
Encrypt bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// generate and verify other card and PIN verification keys.
Generate bool
// Specifies whether an Amazon Web Services Payment Cryptography key has no special
// restrictions other than the restrictions implied by KeyUsage .
NoRestrictions bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used
// for signing.
Sign bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// unwrap other keys.
Unwrap bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// verify signatures.
Verify bool
// Specifies whether an Amazon Web Services Payment Cryptography key can be used to
// wrap other keys.
Wrap bool
noSmithyDocumentSerde
}
// Metadata about an Amazon Web Services Payment Cryptography key.
type KeySummary struct {
// Specifies whether the key is enabled.
//
// This member is required.
Enabled *bool
// Specifies whether the key is exportable. This data is immutable after the key
// is created.
//
// This member is required.
Exportable *bool
// The Amazon Resource Name (ARN) of the key.
//
// This member is required.
KeyArn *string
// The role of the key, the algorithm it supports, and the cryptographic
// operations allowed with the key. This data is immutable after the key is
// created.
//
// This member is required.
KeyAttributes *KeyAttributes
// The key check value (KCV) is used to check if all parties holding a given key
// have the same key or to detect that a key has changed.
//
// This member is required.
KeyCheckValue *string
// The state of an Amazon Web Services Payment Cryptography that is being created
// or deleted.
//
// This member is required.
KeyState KeyState
noSmithyDocumentSerde
}
// Parameter information for root public key certificate import.
type RootCertificatePublicKey struct {
// The role of the key, the algorithm it supports, and the cryptographic
// operations allowed with the key. This data is immutable after the root public
// key is imported.
//
// This member is required.
KeyAttributes *KeyAttributes
// Parameter information for root public key certificate import.
//
// This member is required.
PublicKeyCertificate *string
noSmithyDocumentSerde
}
// A structure that contains information about a tag.
type Tag struct {
// The key of the tag.
//
// This member is required.
Key *string
// The value of the tag.
Value *string
noSmithyDocumentSerde
}
// Parameter information for trusted public key certificate import.
type TrustedCertificatePublicKey struct {
// The KeyARN of the root public key certificate or certificate chain that signs
// the trusted public key certificate import.
//
// This member is required.
CertificateAuthorityPublicKeyIdentifier *string
// The role of the key, the algorithm it supports, and the cryptographic
// operations allowed with the key. This data is immutable after a trusted public
// key is imported.
//
// This member is required.
KeyAttributes *KeyAttributes
// Parameter information for trusted public key certificate import.
//
// This member is required.
PublicKeyCertificate *string
noSmithyDocumentSerde
}
// Parameter information for generating a WrappedKeyBlock for key exchange.
type WrappedKey struct {
// Parameter information for generating a wrapped key using TR-31 or TR-34 skey
// exchange method.
//
// This member is required.
KeyMaterial *string
// The key block format of a wrapped key.
//
// This member is required.
WrappedKeyMaterialFormat WrappedKeyMaterialFormat
// The KeyARN of the wrapped key.
//
// This member is required.
WrappingKeyArn *string
// The key check value (KCV) is used to check if all parties holding a given key
// have the same key or to detect that a key has changed.
KeyCheckValue *string
// The algorithm that Amazon Web Services Payment Cryptography uses to calculate
// the key check value (KCV). It is used to validate the key integrity. For TDES
// keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with
// the key to be checked and retaining the 3 highest order bytes of the encrypted
// result. For AES keys, the KCV is computed using a CMAC algorithm where the input
// data is 16 bytes of zero and retaining the 3 highest order bytes of the
// encrypted result.
KeyCheckValueAlgorithm KeyCheckValueAlgorithm
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
Tag string
Value []byte
noSmithyDocumentSerde
}
func (*UnknownUnionMember) isExportKeyMaterial() {}
func (*UnknownUnionMember) isImportKeyMaterial() {}
|