aws-sdk-paymentcryptographydata 1.25.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs CHANGED
@@ -112,7 +112,15 @@ module Aws
112
112
  },
113
113
  ?wrapped_key: {
114
114
  wrapped_key_material: {
115
- tr_31_key_block: ::String?
115
+ tr_31_key_block: ::String?,
116
+ diffie_hellman_symmetric_key: {
117
+ certificate_authority_public_key_identifier: ::String,
118
+ public_key_certificate: ::String,
119
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
120
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
121
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
122
+ shared_information: ::String
123
+ }?
116
124
  },
117
125
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
118
126
  }
@@ -156,7 +164,15 @@ module Aws
156
164
  },
157
165
  ?wrapped_key: {
158
166
  wrapped_key_material: {
159
- tr_31_key_block: ::String?
167
+ tr_31_key_block: ::String?,
168
+ diffie_hellman_symmetric_key: {
169
+ certificate_authority_public_key_identifier: ::String,
170
+ public_key_certificate: ::String,
171
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
172
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
173
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
174
+ shared_information: ::String
175
+ }?
160
176
  },
161
177
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
162
178
  }
@@ -252,6 +268,74 @@ module Aws
252
268
  ) -> _GenerateMacResponseSuccess
253
269
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacResponseSuccess
254
270
 
271
+ interface _GenerateMacEmvPinChangeResponseSuccess
272
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateMacEmvPinChangeOutput]
273
+ def new_pin_pek_arn: () -> ::String
274
+ def secure_messaging_integrity_key_arn: () -> ::String
275
+ def secure_messaging_confidentiality_key_arn: () -> ::String
276
+ def mac: () -> ::String
277
+ def encrypted_pin_block: () -> ::String
278
+ def new_pin_pek_key_check_value: () -> ::String
279
+ def secure_messaging_integrity_key_check_value: () -> ::String
280
+ def secure_messaging_confidentiality_key_check_value: () -> ::String
281
+ def visa_amex_derivation_outputs: () -> Types::VisaAmexDerivationOutputs
282
+ end
283
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PaymentCryptographyData/Client.html#generate_mac_emv_pin_change-instance_method
284
+ def generate_mac_emv_pin_change: (
285
+ new_pin_pek_identifier: ::String,
286
+ new_encrypted_pin_block: ::String,
287
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_1" | "ISO_FORMAT_3"),
288
+ secure_messaging_integrity_key_identifier: ::String,
289
+ secure_messaging_confidentiality_key_identifier: ::String,
290
+ message_data: ::String,
291
+ derivation_method_attributes: {
292
+ emv_common: {
293
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
294
+ primary_account_number: ::String,
295
+ pan_sequence_number: ::String,
296
+ application_cryptogram: ::String,
297
+ mode: ("ECB" | "CBC"),
298
+ pin_block_padding_type: ("NO_PADDING" | "ISO_IEC_7816_4"),
299
+ pin_block_length_position: ("NONE" | "FRONT_OF_PIN_BLOCK")
300
+ }?,
301
+ amex: {
302
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
303
+ primary_account_number: ::String,
304
+ pan_sequence_number: ::String,
305
+ application_transaction_counter: ::String,
306
+ authorization_request_key_identifier: ::String,
307
+ current_pin_attributes: {
308
+ current_pin_pek_identifier: ::String,
309
+ current_encrypted_pin_block: ::String
310
+ }?
311
+ }?,
312
+ visa: {
313
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
314
+ primary_account_number: ::String,
315
+ pan_sequence_number: ::String,
316
+ application_transaction_counter: ::String,
317
+ authorization_request_key_identifier: ::String,
318
+ current_pin_attributes: {
319
+ current_pin_pek_identifier: ::String,
320
+ current_encrypted_pin_block: ::String
321
+ }?
322
+ }?,
323
+ emv_2000: {
324
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
325
+ primary_account_number: ::String,
326
+ pan_sequence_number: ::String,
327
+ application_transaction_counter: ::String
328
+ }?,
329
+ mastercard: {
330
+ major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B"),
331
+ primary_account_number: ::String,
332
+ pan_sequence_number: ::String,
333
+ application_cryptogram: ::String
334
+ }?
335
+ }
336
+ ) -> _GenerateMacEmvPinChangeResponseSuccess
337
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateMacEmvPinChangeResponseSuccess
338
+
255
339
  interface _GeneratePinDataResponseSuccess
256
340
  include ::Seahorse::Client::_ResponseSuccess[Types::GeneratePinDataOutput]
257
341
  def generation_key_arn: () -> ::String
@@ -298,7 +382,21 @@ module Aws
298
382
  },
299
383
  ?pin_data_length: ::Integer,
300
384
  primary_account_number: ::String,
301
- pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3")
385
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3" | "ISO_FORMAT_4"),
386
+ ?encryption_wrapped_key: {
387
+ wrapped_key_material: {
388
+ tr_31_key_block: ::String?,
389
+ diffie_hellman_symmetric_key: {
390
+ certificate_authority_public_key_identifier: ::String,
391
+ public_key_certificate: ::String,
392
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
393
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
394
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
395
+ shared_information: ::String
396
+ }?
397
+ },
398
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
399
+ }
302
400
  ) -> _GeneratePinDataResponseSuccess
303
401
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GeneratePinDataResponseSuccess
304
402
 
@@ -343,13 +441,29 @@ module Aws
343
441
  },
344
442
  ?incoming_wrapped_key: {
345
443
  wrapped_key_material: {
346
- tr_31_key_block: ::String?
444
+ tr_31_key_block: ::String?,
445
+ diffie_hellman_symmetric_key: {
446
+ certificate_authority_public_key_identifier: ::String,
447
+ public_key_certificate: ::String,
448
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
449
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
450
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
451
+ shared_information: ::String
452
+ }?
347
453
  },
348
454
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
349
455
  },
350
456
  ?outgoing_wrapped_key: {
351
457
  wrapped_key_material: {
352
- tr_31_key_block: ::String?
458
+ tr_31_key_block: ::String?,
459
+ diffie_hellman_symmetric_key: {
460
+ certificate_authority_public_key_identifier: ::String,
461
+ public_key_certificate: ::String,
462
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
463
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
464
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
465
+ shared_information: ::String
466
+ }?
353
467
  },
354
468
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
355
469
  }
@@ -405,13 +519,29 @@ module Aws
405
519
  },
406
520
  ?incoming_wrapped_key: {
407
521
  wrapped_key_material: {
408
- tr_31_key_block: ::String?
522
+ tr_31_key_block: ::String?,
523
+ diffie_hellman_symmetric_key: {
524
+ certificate_authority_public_key_identifier: ::String,
525
+ public_key_certificate: ::String,
526
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
527
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
528
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
529
+ shared_information: ::String
530
+ }?
409
531
  },
410
532
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
411
533
  },
412
534
  ?outgoing_wrapped_key: {
413
535
  wrapped_key_material: {
414
- tr_31_key_block: ::String?
536
+ tr_31_key_block: ::String?,
537
+ diffie_hellman_symmetric_key: {
538
+ certificate_authority_public_key_identifier: ::String,
539
+ public_key_certificate: ::String,
540
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
541
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
542
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
543
+ shared_information: ::String
544
+ }?
415
545
  },
416
546
  key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
417
547
  }
@@ -586,11 +716,25 @@ module Aws
586
716
  },
587
717
  encrypted_pin_block: ::String,
588
718
  primary_account_number: ::String,
589
- pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3"),
719
+ pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3" | "ISO_FORMAT_4"),
590
720
  ?pin_data_length: ::Integer,
591
721
  ?dukpt_attributes: {
592
722
  key_serial_number: ::String,
593
723
  dukpt_derivation_type: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")
724
+ },
725
+ ?encryption_wrapped_key: {
726
+ wrapped_key_material: {
727
+ tr_31_key_block: ::String?,
728
+ diffie_hellman_symmetric_key: {
729
+ certificate_authority_public_key_identifier: ::String,
730
+ public_key_certificate: ::String,
731
+ key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256"),
732
+ key_derivation_function: ("NIST_SP800" | "ANSI_X963"),
733
+ key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512"),
734
+ shared_information: ::String
735
+ }?
736
+ },
737
+ key_check_value_algorithm: ("CMAC" | "ANSI_X9_24")?
594
738
  }
595
739
  ) -> _VerifyPinDataResponseSuccess
596
740
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _VerifyPinDataResponseSuccess
data/sig/types.rbs CHANGED
@@ -13,6 +13,16 @@ module Aws::PaymentCryptographyData
13
13
  SENSITIVE: []
14
14
  end
15
15
 
16
+ class AmexAttributes
17
+ attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
18
+ attr_accessor primary_account_number: ::String
19
+ attr_accessor pan_sequence_number: ::String
20
+ attr_accessor application_transaction_counter: ::String
21
+ attr_accessor authorization_request_key_identifier: ::String
22
+ attr_accessor current_pin_attributes: Types::CurrentPinAttributes
23
+ SENSITIVE: [:primary_account_number]
24
+ end
25
+
16
26
  class AmexCardSecurityCodeVersion1
17
27
  attr_accessor card_expiry_date: ::String
18
28
  SENSITIVE: [:card_expiry_date]
@@ -133,6 +143,12 @@ module Aws::PaymentCryptographyData
133
143
  SENSITIVE: [:proprietary_authentication_data]
134
144
  end
135
145
 
146
+ class CurrentPinAttributes
147
+ attr_accessor current_pin_pek_identifier: ::String
148
+ attr_accessor current_encrypted_pin_block: ::String
149
+ SENSITIVE: [:current_encrypted_pin_block]
150
+ end
151
+
136
152
  class DecryptDataInput
137
153
  attr_accessor key_identifier: ::String
138
154
  attr_accessor cipher_text: ::String
@@ -148,6 +164,29 @@ module Aws::PaymentCryptographyData
148
164
  SENSITIVE: [:plain_text]
149
165
  end
150
166
 
167
+ class DerivationMethodAttributes
168
+ attr_accessor emv_common: Types::EmvCommonAttributes
169
+ attr_accessor amex: Types::AmexAttributes
170
+ attr_accessor visa: Types::VisaAttributes
171
+ attr_accessor emv_2000: Types::Emv2000Attributes
172
+ attr_accessor mastercard: Types::MasterCardAttributes
173
+ attr_accessor unknown: untyped
174
+ SENSITIVE: []
175
+
176
+ class EmvCommon < DerivationMethodAttributes
177
+ end
178
+ class Amex < DerivationMethodAttributes
179
+ end
180
+ class Visa < DerivationMethodAttributes
181
+ end
182
+ class Emv2000 < DerivationMethodAttributes
183
+ end
184
+ class Mastercard < DerivationMethodAttributes
185
+ end
186
+ class Unknown < DerivationMethodAttributes
187
+ end
188
+ end
189
+
151
190
  class DiscoverDynamicCardVerificationCode
152
191
  attr_accessor card_expiry_date: ::String
153
192
  attr_accessor unpredictable_number: ::String
@@ -193,6 +232,35 @@ module Aws::PaymentCryptographyData
193
232
  SENSITIVE: [:card_expiry_date, :service_code]
194
233
  end
195
234
 
235
+ class EcdhDerivationAttributes
236
+ attr_accessor certificate_authority_public_key_identifier: ::String
237
+ attr_accessor public_key_certificate: ::String
238
+ attr_accessor key_algorithm: ("TDES_2KEY" | "TDES_3KEY" | "AES_128" | "AES_192" | "AES_256")
239
+ attr_accessor key_derivation_function: ("NIST_SP800" | "ANSI_X963")
240
+ attr_accessor key_derivation_hash_algorithm: ("SHA_256" | "SHA_384" | "SHA_512")
241
+ attr_accessor shared_information: ::String
242
+ SENSITIVE: [:public_key_certificate]
243
+ end
244
+
245
+ class Emv2000Attributes
246
+ attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
247
+ attr_accessor primary_account_number: ::String
248
+ attr_accessor pan_sequence_number: ::String
249
+ attr_accessor application_transaction_counter: ::String
250
+ SENSITIVE: [:primary_account_number]
251
+ end
252
+
253
+ class EmvCommonAttributes
254
+ attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
255
+ attr_accessor primary_account_number: ::String
256
+ attr_accessor pan_sequence_number: ::String
257
+ attr_accessor application_cryptogram: ::String
258
+ attr_accessor mode: ("ECB" | "CBC")
259
+ attr_accessor pin_block_padding_type: ("NO_PADDING" | "ISO_IEC_7816_4")
260
+ attr_accessor pin_block_length_position: ("NONE" | "FRONT_OF_PIN_BLOCK")
261
+ SENSITIVE: [:primary_account_number, :application_cryptogram]
262
+ end
263
+
196
264
  class EmvEncryptionAttributes
197
265
  attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
198
266
  attr_accessor primary_account_number: ::String
@@ -253,6 +321,30 @@ module Aws::PaymentCryptographyData
253
321
  SENSITIVE: [:validation_data]
254
322
  end
255
323
 
324
+ class GenerateMacEmvPinChangeInput
325
+ attr_accessor new_pin_pek_identifier: ::String
326
+ attr_accessor new_encrypted_pin_block: ::String
327
+ attr_accessor pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_1" | "ISO_FORMAT_3")
328
+ attr_accessor secure_messaging_integrity_key_identifier: ::String
329
+ attr_accessor secure_messaging_confidentiality_key_identifier: ::String
330
+ attr_accessor message_data: ::String
331
+ attr_accessor derivation_method_attributes: Types::DerivationMethodAttributes
332
+ SENSITIVE: [:new_encrypted_pin_block, :message_data]
333
+ end
334
+
335
+ class GenerateMacEmvPinChangeOutput
336
+ attr_accessor new_pin_pek_arn: ::String
337
+ attr_accessor secure_messaging_integrity_key_arn: ::String
338
+ attr_accessor secure_messaging_confidentiality_key_arn: ::String
339
+ attr_accessor mac: ::String
340
+ attr_accessor encrypted_pin_block: ::String
341
+ attr_accessor new_pin_pek_key_check_value: ::String
342
+ attr_accessor secure_messaging_integrity_key_check_value: ::String
343
+ attr_accessor secure_messaging_confidentiality_key_check_value: ::String
344
+ attr_accessor visa_amex_derivation_outputs: Types::VisaAmexDerivationOutputs
345
+ SENSITIVE: [:mac, :encrypted_pin_block]
346
+ end
347
+
256
348
  class GenerateMacInput
257
349
  attr_accessor key_identifier: ::String
258
350
  attr_accessor message_data: ::String
@@ -274,7 +366,8 @@ module Aws::PaymentCryptographyData
274
366
  attr_accessor generation_attributes: Types::PinGenerationAttributes
275
367
  attr_accessor pin_data_length: ::Integer
276
368
  attr_accessor primary_account_number: ::String
277
- attr_accessor pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3")
369
+ attr_accessor pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3" | "ISO_FORMAT_4")
370
+ attr_accessor encryption_wrapped_key: Types::WrappedKey
278
371
  SENSITIVE: [:primary_account_number]
279
372
  end
280
373
 
@@ -370,6 +463,14 @@ module Aws::PaymentCryptographyData
370
463
  end
371
464
  end
372
465
 
466
+ class MasterCardAttributes
467
+ attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
468
+ attr_accessor primary_account_number: ::String
469
+ attr_accessor pan_sequence_number: ::String
470
+ attr_accessor application_cryptogram: ::String
471
+ SENSITIVE: [:primary_account_number, :application_cryptogram]
472
+ end
473
+
373
474
  class PinData
374
475
  attr_accessor pin_offset: ::String
375
476
  attr_accessor verification_value: ::String
@@ -662,9 +763,10 @@ module Aws::PaymentCryptographyData
662
763
  attr_accessor verification_attributes: Types::PinVerificationAttributes
663
764
  attr_accessor encrypted_pin_block: ::String
664
765
  attr_accessor primary_account_number: ::String
665
- attr_accessor pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3")
766
+ attr_accessor pin_block_format: ("ISO_FORMAT_0" | "ISO_FORMAT_3" | "ISO_FORMAT_4")
666
767
  attr_accessor pin_data_length: ::Integer
667
768
  attr_accessor dukpt_attributes: Types::DukptAttributes
769
+ attr_accessor encryption_wrapped_key: Types::WrappedKey
668
770
  SENSITIVE: [:encrypted_pin_block, :primary_account_number]
669
771
  end
670
772
 
@@ -676,6 +778,24 @@ module Aws::PaymentCryptographyData
676
778
  SENSITIVE: []
677
779
  end
678
780
 
781
+ class VisaAmexDerivationOutputs
782
+ attr_accessor authorization_request_key_arn: ::String
783
+ attr_accessor authorization_request_key_check_value: ::String
784
+ attr_accessor current_pin_pek_arn: ::String
785
+ attr_accessor current_pin_pek_key_check_value: ::String
786
+ SENSITIVE: []
787
+ end
788
+
789
+ class VisaAttributes
790
+ attr_accessor major_key_derivation_mode: ("EMV_OPTION_A" | "EMV_OPTION_B")
791
+ attr_accessor primary_account_number: ::String
792
+ attr_accessor pan_sequence_number: ::String
793
+ attr_accessor application_transaction_counter: ::String
794
+ attr_accessor authorization_request_key_identifier: ::String
795
+ attr_accessor current_pin_attributes: Types::CurrentPinAttributes
796
+ SENSITIVE: [:primary_account_number]
797
+ end
798
+
679
799
  class VisaPin
680
800
  attr_accessor pin_verification_key_index: ::Integer
681
801
  SENSITIVE: []
@@ -701,11 +821,14 @@ module Aws::PaymentCryptographyData
701
821
 
702
822
  class WrappedKeyMaterial
703
823
  attr_accessor tr_31_key_block: ::String
824
+ attr_accessor diffie_hellman_symmetric_key: Types::EcdhDerivationAttributes
704
825
  attr_accessor unknown: untyped
705
826
  SENSITIVE: [:tr_31_key_block]
706
827
 
707
828
  class Tr31KeyBlock < WrappedKeyMaterial
708
829
  end
830
+ class DiffieHellmanSymmetricKey < WrappedKeyMaterial
831
+ end
709
832
  class Unknown < WrappedKeyMaterial
710
833
  end
711
834
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-paymentcryptographydata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-18 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core