]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/aesVect/enDecrypt.h
1 #include <Security/cssmtype.h>
2 #include <Security/cssmerr.h>
5 * encrypt/decrypt using test implementation.
7 CSSM_RETURN
encryptDecryptTest(
10 uint32 blockSizeInBits
,
11 const uint8
*key
, // raw key bytes
13 uint32 inTextLen
, // in bytes
17 * encrypt/decrypt using reference AES.
19 CSSM_RETURN
encryptDecryptRef(
22 uint32 blockSizeInBits
,
23 const uint8
*key
, // raw key bytes
25 uint32 inTextLen
, // in bytes
29 * encrypt/decrypt using CSP.
31 CSSM_RETURN
encryptDecryptCsp(
34 uint32 blockSizeInBits
,
35 const uint8
*key
, // raw key bytes
37 uint32 inTextLen
, // in bytes
40 typedef CSSM_RETURN (*encrDecrFcn
) (
43 uint32 blockSizeInBits
,
44 const uint8
*key
, // raw key bytes
46 uint32 inTextLen
, // in bytes