This sample is to assist implementers developing to the Cryptographic API Profile for AES Candidate Algorithm Submissions. Please consult this document as a cross-reference. This is only a sample.
Some code is included in some functions just to provide a little clarification of use.
The point of this is to show the function calls that are expected in a C implementation. Additionally, this code lays out the data types that are used to store key and cipher specific information. Notice that the key and cipher structures both have two parts. The first parts, keyInstance and cipherInstance, are algorithm independent and should not be changed. The second parts, keyParams and cipherParams, are algorithm specific and should be modified as necessary for your algorithm.