O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Decrypting Data

With the customer data encrypted in the ENCRCUST file, we need to be able to decrypt the data and use it within an application. The parameters for the Decrypt Data API, Qc3DecryptData, are shown in Table 11.4.

Table 11.4. The Decrypt Data API (Qc3DecryptData)
ParameterDescriptionTypeSize
1Encrypted DataInputChar(*)
2Length of Encrypted DataInputBinary(4)
3Algorithm DescriptionInputChar(*)
4Format of Algorithm DescriptionInputChar(8)
5Key DescriptionInputChar(*)
6Format of Key DescriptionInputChar(8)
7Cryptographic Service ProviderInputChar(1)
8Cryptographic Device NameInputChar(10)
9Clear DataOutputChar(*)
10Length of Area Provided for Clear DataInputBinary(4)
11Length of Clear Data ReturnedOutputBinary(4)
12Error CodeI/OChar(*)

Many of these ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required