I am working on decrypting data from a new version of our POS software.
The data is encrypted using AES, 256 bit, ECB, PKCS5 padding. Upon
closing they zip a series of files that we retrieve with our iSeries. I
then unzip these files, parse the data and use the Qc3DecryptData api to
decrypt credit card numbers. I am unable to decrypt the data, I receive
a CPF9DC3 in the error code. We both use the same 32 byte key string to
create the keys. I am able to use the Qc3EncryptData and Qc3DecryptData
apis on my iseries to encrypt and decrypt a string with the key I
create. I supplied the key string and the encrypted data to a java
developer on our team and he was able to decrypt the data with an
application he uses. The encrypted string I generate with my key is
different from the encrypted string created by the POS software. Some of
my parameters are as follows:

QC3BCA = 22; AES
QC3BL = 32; Block Length
QC3MODE = '0'; ECB
QC3PO = '1'; Remove Padding

The key was created in a Key Store with the Qc3WriteKeyRecord.
KEYFORMAT = '0'; Binary String
DISALLOWFUNC=0; No Disallowed functions
KEYFORM ='0'; Clear

Thanks in advance!

Scott Feddersen
Buckle, Inc.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].