Skip to content

Commit 68d59d8

Browse files
author
AWS
committed
Payment Cryptography Data Plane Update: Additional support for managing HMAC keys that adheres to changes documented in X9.143-2021 and provides better interoperability for key import/export
1 parent 94afc2a commit 68d59d8

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Payment Cryptography Data Plane",
4+
"contributor": "",
5+
"description": "Additional support for managing HMAC keys that adheres to changes documented in X9.143-2021 and provides better interoperability for key import/export"
6+
}

services/paymentcryptographydata/src/main/resources/codegen-resources/service-2.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480
},
481481
"CipherTextType":{
482482
"type":"string",
483-
"max":4096,
483+
"max":4224,
484484
"min":2,
485485
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
486486
"sensitive":true
@@ -666,7 +666,7 @@
666666
],
667667
"members":{
668668
"KeySerialNumber":{
669-
"shape":"HexLengthBetween10And24",
669+
"shape":"HexLength16Or20Or24",
670670
"documentation":"<p>The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.</p>"
671671
},
672672
"DukptDerivationType":{
@@ -681,7 +681,7 @@
681681
"required":["KeySerialNumber"],
682682
"members":{
683683
"KeySerialNumber":{
684-
"shape":"HexLengthBetween10And24",
684+
"shape":"HexLength16Or20Or24",
685685
"documentation":"<p>The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.</p>"
686686
},
687687
"DukptKeyDerivationType":{
@@ -710,7 +710,7 @@
710710
"required":["KeySerialNumber"],
711711
"members":{
712712
"KeySerialNumber":{
713-
"shape":"HexLengthBetween10And24",
713+
"shape":"HexLength16Or20Or24",
714714
"documentation":"<p>The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.</p>"
715715
},
716716
"Mode":{
@@ -1318,11 +1318,11 @@
13181318
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
13191319
"sensitive":true
13201320
},
1321-
"HexLengthBetween10And24":{
1321+
"HexLength16Or20Or24":{
13221322
"type":"string",
13231323
"max":24,
1324-
"min":10,
1325-
"pattern":"[0-9a-fA-F]+"
1324+
"min":16,
1325+
"pattern":"(?:[0-9a-fA-F]{16}|[0-9a-fA-F]{20}|[0-9a-fA-F]{24})"
13261326
},
13271327
"HexLengthBetween2And4":{
13281328
"type":"string",
@@ -1547,7 +1547,8 @@
15471547
"type":"string",
15481548
"enum":[
15491549
"CMAC",
1550-
"ANSI_X9_24"
1550+
"ANSI_X9_24",
1551+
"HMAC"
15511552
]
15521553
},
15531554
"KeyDerivationFunction":{
@@ -1585,7 +1586,7 @@
15851586
],
15861587
"members":{
15871588
"KeySerialNumber":{
1588-
"shape":"HexLengthBetween10And24",
1589+
"shape":"HexLength16Or20Or24",
15891590
"documentation":"<p>The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.</p>"
15901591
},
15911592
"DukptKeyVariant":{
@@ -1851,14 +1852,14 @@
18511852
},
18521853
"PlainTextOutputType":{
18531854
"type":"string",
1854-
"max":4096,
1855+
"max":4224,
18551856
"min":2,
18561857
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
18571858
"sensitive":true
18581859
},
18591860
"PlainTextType":{
18601861
"type":"string",
1861-
"max":4064,
1862+
"max":4096,
18621863
"min":2,
18631864
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
18641865
"sensitive":true
@@ -2177,7 +2178,11 @@
21772178
"TDES_3KEY",
21782179
"AES_128",
21792180
"AES_192",
2180-
"AES_256"
2181+
"AES_256",
2182+
"HMAC_SHA256",
2183+
"HMAC_SHA384",
2184+
"HMAC_SHA512",
2185+
"HMAC_SHA224"
21812186
]
21822187
},
21832188
"ThrottlingException":{

0 commit comments

Comments
 (0)