/** @file\r
Definitions related to the Cryptographic Operations in IPsec.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
**/\r
typedef\r
UINTN\r
-(EFIAPI *CRYPTO_HMAC_GETCONTEXTSIZE) (\r
+(EFIAPI *CRYPTO_HMAC_GETCONTEXTSIZE)(\r
VOID\r
);\r
\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HMAC_INIT) (\r
+(EFIAPI *CRYPTO_HMAC_INIT)(\r
OUT VOID *Context,\r
IN CONST UINT8 *Key,\r
IN UINTN KeySize\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HMAC_UPDATE) (\r
+(EFIAPI *CRYPTO_HMAC_UPDATE)(\r
IN OUT VOID *Context,\r
IN CONST VOID *Data,\r
IN UINTN DataLength\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HMAC_FINAL) (\r
+(EFIAPI *CRYPTO_HMAC_FINAL)(\r
IN OUT VOID *Context,\r
OUT UINT8 *HmacValue\r
);\r
**/\r
typedef\r
UINTN\r
-(EFIAPI *CRYPTO_CIPHER_GETCONTEXTSIZE) (\r
+(EFIAPI *CRYPTO_CIPHER_GETCONTEXTSIZE)(\r
VOID\r
);\r
\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_CIPHER_INIT) (\r
+(EFIAPI *CRYPTO_CIPHER_INIT)(\r
IN OUT VOID *Context,\r
IN CONST UINT8 *Key,\r
IN UINTN KeyBits\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_CIPHER_ENCRYPT) (\r
+(EFIAPI *CRYPTO_CIPHER_ENCRYPT)(\r
IN VOID *Context,\r
IN CONST UINT8 *InData,\r
IN UINTN InputSize,\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_CIPHER_DECRYPT) (\r
+(EFIAPI *CRYPTO_CIPHER_DECRYPT)(\r
IN VOID *Context,\r
IN CONST UINT8 *InData,\r
IN UINTN InputSize,\r
**/\r
typedef\r
UINTN\r
-(EFIAPI *CRYPTO_HASH_GETCONTEXTSIZE) (\r
+(EFIAPI *CRYPTO_HASH_GETCONTEXTSIZE)(\r
VOID\r
);\r
\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HASH_INIT) (\r
+(EFIAPI *CRYPTO_HASH_INIT)(\r
OUT VOID *Context\r
);\r
\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HASH_UPDATE) (\r
+(EFIAPI *CRYPTO_HASH_UPDATE)(\r
IN OUT VOID *Context,\r
IN CONST VOID *Data,\r
IN UINTN DataSize\r
**/\r
typedef\r
BOOLEAN\r
-(EFIAPI *CRYPTO_HASH_FINAL) (\r
+(EFIAPI *CRYPTO_HASH_FINAL)(\r
IN OUT VOID *Context,\r
OUT UINT8 *HashValue\r
);\r
\r
@param[in] AlgorithmId The Alogrithem identification defined in RFC.\r
@param[in] Key Pointer to the buffer containing encrypting key.\r
- @param[in} KeyBits The length of the key in bits.\r
+ @param[in] KeyBits The length of the key in bits.\r
@param[in] Ivec Point to the buffer containning the Initializeion\r
Vector (IV) data.\r
@param[in] InData Point to the buffer containing the data to be\r
\r
@param[in] AlgorithmId The Alogrithem identification defined in RFC.\r
@param[in] Key Pointer to the buffer containing encrypting key.\r
- @param[in} KeyBits The length of the key in bits.\r
+ @param[in] KeyBits The length of the key in bits.\r
@param[in] Ivec Point to the buffer containning the Initializeion\r
Vector (IV) data.\r
@param[in] InData Point to the buffer containing the data to be\r
- Decrypted.\r
+ decrypted.\r
@param[in] InDataLength The length of InData in Bytes.\r
@param[out] OutData Pointer to the buffer that receives the decryption\r
output.\r
\r
@param[in] InCert Pointer to the Certificate which contains the\r
public key.\r
- @param[in] InCertLen The size of Certificate in bytes.\r
+ @param[in] CertLen The size of Certificate in bytes.\r
@param[in] InCa Pointer to the CA certificate\r
@param[in] CaLen The size of CA certificate in bytes.\r
@param[in] InData Pointer to octect message hash to be checked.\r