DVBCore  17.9.0
Open Source DVB Engine
 All Data Structures Files Functions Typedefs Macros Pages
stbhwcrypt.h
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2011 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 /* pre-processor mechanism so multiple inclusions don't cause compilation error*/
26 #ifndef _STBHWCRYPT_H
27 #define _STBHWCRYPT_H
28 
29 #include "techtype.h"
30 
31 /*---Constant and macro definitions for public use-----------------------------*/
32 #define AES128_KEY_SIZE 16
33 
34 /*---Enumerations for public use-----------------------------------------------*/
35 
36 /*---Global type defs for public use-------------------------------------------*/
37 
38 /*---Global Function prototypes for public use---------------------------------*/
39 
44 BOOLEAN STB_CRYPTInitialise(void);
45 
56 void STB_CRYPTAesEncrypt(U8BIT *src, U8BIT *dest, U32BIT length, U8BIT *key);
57 
68 void STB_CRYPTAesDecrypt(U8BIT *src, U8BIT *dest, U32BIT length, U8BIT *key);
69 
79 void STB_CRYPTAesCbcEncrypt(U8BIT *src, U8BIT *dest, U32BIT length, U8BIT *key, U8BIT *iv);
80 
90 void STB_CRYPTAesCbcDecrypt(U8BIT *src, U8BIT *dest, U32BIT length, U8BIT *key, U8BIT *iv);
91 
92 #endif /* _STBHWCRYPT_H */
93 
System Wide Global Technical Data Type Definitions.