question

newuser-bea321e8-1151-4015-9db5-767ea09b39f5 avatar image

Size Issue for Key and IV in Feeds API For AES Encryption

Hello

We are Trying to Encrypt the Order Fulfillment XML File into AES Encryption.

We Got the Response for Create Feed Document API Call where we got the Key, IV, and URL on which we need to Upload the Encrypted XML File.

But While Encrypting the XML File Using C# AES Encryption we are Facing the Invalid Key and IV Size Issue as the Default Size of Key is 32 bytes and IV is 16 Bytes but we are Getting 44 Bytes Size Key and 24-byte Size of IV from CreateFeed Document API Response.

Please anyone Support on this issue which we are facing might be we are doing some steps wrong.

If Required we will provide the Code which we are trying to Encrypt the File.

Thank you.

apiuploadamazon web services
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mike@Amazon avatar image
Mike@Amazon answered

Hi,

Thank you for posting in the Amazon Developer forums.

For questions about Marketplace Web Services, please use the Amazon Services Seller Forums: https://sellercentral.amazon.com/forums/c/amazon-marketplace-web-service-mws/marketplace-web-service-amazon-mws-questions

You can also contact Amazon Selling Partner Support: https://sellercentral.amazon.com/gp/contact-us/contact-amazon-form.html

Thanks,
Mike

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-8d16116f-d34f-478b-8690-76c7d065b7d6 avatar image
newuser-8d16116f-d34f-478b-8690-76c7d065b7d6 answered

Had the same problem. The key returned by amazon that you are trying to use is base64 encoded. You need to decode the string before using for the AES encryption.

10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.