adding security misc from Vx7 to 6.9 (original files from vx7) (#5)
Co-authored-by: neelimap <neelimaps@neominds.in> Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/5 Reviewed-by: Siddhant Singh <siddhant.singh@neominds.in> Co-authored-by: Neelima P S <neelima.ps@neominds.in> Co-committed-by: Neelima P S <neelima.ps@neominds.in>
This commit is contained in:
committed by
neelimap
co-authored by
neelimap
parent
368226261b
commit
122392cfc0
@@ -0,0 +1,53 @@
|
||||
/* secCipherXexAes.h - XEX-AES Private Header File */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2016-2017, 2021 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute, modify, or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
#ifndef __INCsecCipherXexAesh
|
||||
#define __INCsecCipherXexAesh
|
||||
|
||||
/* includes */
|
||||
|
||||
#include <types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <vxWorks.h>
|
||||
#include <secCrypto.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* typedefs */
|
||||
|
||||
typedef struct secXexAesCtx
|
||||
{
|
||||
SEC_CIPHER_CTX key1EncrCtx;
|
||||
SEC_CIPHER_CTX key1DecrCtx;
|
||||
SEC_CIPHER_CTX key2EncrCtx;
|
||||
size_t sectorSize;
|
||||
long long sectorNum;
|
||||
UINT8 * pSectorTweak;
|
||||
} SEC_XEX_AES_CTX;
|
||||
|
||||
/* function declarations */
|
||||
|
||||
STATUS secXexAesInit (SEC_XEX_AES_CTX * pCtx, const SEC_CIPHER_TEMPLATE *
|
||||
pAesCipher, UINT8* key1, UINT8* key2, size_t sectorSize);
|
||||
STATUS secXexAesUpdate (SEC_XEX_AES_CTX * pCtx, unsigned char * out, int *
|
||||
outLen, const unsigned char * in, int inLen, long long
|
||||
sectorNum, int encr);
|
||||
STATUS secXexAesCleanup (SEC_XEX_AES_CTX * pCtx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __INCsecCipherXexAesh */
|
||||
Reference in New Issue
Block a user