Skip to content

Commit 45bd127

Browse files
Expand length of message data field for Mac generation and validation to 8192 characters.
1 parent 7c225eb commit 45bd127

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

generator/ServiceModels/payment-cryptography-data/payment-cryptography-data-2022-02-03.api.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@
10251025
"enum":[
10261026
"CMAC",
10271027
"ANSI_X9_24",
1028-
"HMAC"
1028+
"HMAC",
1029+
"SHA_1"
10291030
]
10301031
},
10311032
"KeyDerivationFunction":{
@@ -1049,6 +1050,7 @@
10491050
"ISO9797_ALGORITHM1",
10501051
"ISO9797_ALGORITHM3",
10511052
"CMAC",
1053+
"HMAC",
10521054
"HMAC_SHA224",
10531055
"HMAC_SHA256",
10541056
"HMAC_SHA384",
@@ -1133,7 +1135,7 @@
11331135
},
11341136
"MessageDataType":{
11351137
"type":"string",
1136-
"max":4096,
1138+
"max":8192,
11371139
"min":2,
11381140
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
11391141
"sensitive":true

generator/ServiceModels/payment-cryptography-data/payment-cryptography-data-2022-02-03.normal.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,8 @@
15481548
"enum":[
15491549
"CMAC",
15501550
"ANSI_X9_24",
1551-
"HMAC"
1551+
"HMAC",
1552+
"SHA_1"
15521553
]
15531554
},
15541555
"KeyDerivationFunction":{
@@ -1572,6 +1573,7 @@
15721573
"ISO9797_ALGORITHM1",
15731574
"ISO9797_ALGORITHM3",
15741575
"CMAC",
1576+
"HMAC",
15751577
"HMAC_SHA224",
15761578
"HMAC_SHA256",
15771579
"HMAC_SHA384",
@@ -1711,7 +1713,7 @@
17111713
},
17121714
"MessageDataType":{
17131715
"type":"string",
1714-
"max":4096,
1716+
"max":8192,
17151717
"min":2,
17161718
"pattern":"(?:[0-9a-fA-F][0-9a-fA-F])+",
17171719
"sensitive":true

sdk/code-analysis/ServiceAnalysis/PaymentCryptographyData/Generated/PropertyValueRules.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<property-value-rule>
110110
<property>Amazon.PaymentCryptographyData.Model.GenerateMacRequest.MessageData</property>
111111
<min>2</min>
112-
<max>4096</max>
112+
<max>8192</max>
113113
<pattern>(?:[0-9a-fA-F][0-9a-fA-F])+</pattern>
114114
</property-value-rule>
115115
<property-value-rule>
@@ -419,7 +419,7 @@
419419
<property-value-rule>
420420
<property>Amazon.PaymentCryptographyData.Model.VerifyMacRequest.MessageData</property>
421421
<min>2</min>
422-
<max>4096</max>
422+
<max>8192</max>
423423
<pattern>(?:[0-9a-fA-F][0-9a-fA-F])+</pattern>
424424
</property-value-rule>
425425
<property-value-rule>

sdk/src/Services/PaymentCryptographyData/Generated/Model/GenerateMacRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ internal bool IsSetMacLength()
144144
/// The data for which a MAC is under generation. This value must be hexBinary.
145145
/// </para>
146146
/// </summary>
147-
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=4096)]
147+
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=8192)]
148148
public string MessageData
149149
{
150150
get { return this._messageData; }

sdk/src/Services/PaymentCryptographyData/Generated/Model/VerifyMacRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ internal bool IsSetMacLength()
135135
/// The data on for which MAC is under verification. This value must be hexBinary.
136136
/// </para>
137137
/// </summary>
138-
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=4096)]
138+
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=8192)]
139139
public string MessageData
140140
{
141141
get { return this._messageData; }

sdk/src/Services/PaymentCryptographyData/Generated/ServiceEnumerations.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ public class KeyCheckValueAlgorithm : ConstantClass
382382
/// Constant HMAC for KeyCheckValueAlgorithm
383383
/// </summary>
384384
public static readonly KeyCheckValueAlgorithm HMAC = new KeyCheckValueAlgorithm("HMAC");
385+
/// <summary>
386+
/// Constant SHA_1 for KeyCheckValueAlgorithm
387+
/// </summary>
388+
public static readonly KeyCheckValueAlgorithm SHA_1 = new KeyCheckValueAlgorithm("SHA_1");
385389

386390
/// <summary>
387391
/// This constant constructor does not need to be called if the constant
@@ -533,6 +537,10 @@ public class MacAlgorithm : ConstantClass
533537
/// </summary>
534538
public static readonly MacAlgorithm CMAC = new MacAlgorithm("CMAC");
535539
/// <summary>
540+
/// Constant HMAC for MacAlgorithm
541+
/// </summary>
542+
public static readonly MacAlgorithm HMAC = new MacAlgorithm("HMAC");
543+
/// <summary>
536544
/// Constant HMAC_SHA224 for MacAlgorithm
537545
/// </summary>
538546
public static readonly MacAlgorithm HMAC_SHA224 = new MacAlgorithm("HMAC_SHA224");

0 commit comments

Comments
 (0)