Wasabi ExpressPlay SDK for Embedded Systems
1.10
Main Page
Modules
Data Structures
Files
File List
Globals
Client
ThirdParty
Sushi
Source
Core
Interface
ShiCrypto.h
Go to the documentation of this file.
1
/*****************************************************************
2
|
3
| Sushi - Crypto
4
|
5
| $Id: ShiCrypto.h 7930 2014-06-25 11:05:10Z jebaseelir $
6
| Original author: Gilles Boccon-Gibod
7
|
8
| This software is provided to you pursuant to your agreement
9
| with Intertrust Technologies Corporation ("Intertrust").
10
| This software may be used only in accordance with the terms
11
| of the agreement.
12
|
13
| Copyright (c) 2005-2014 by Intertrust. All rights reserved.
14
|
15
****************************************************************/
21
#ifndef _SHI_CRYPTO_H_
22
#define _SHI_CRYPTO_H_
23
24
/*----------------------------------------------------------------------
25
| includes
26
+---------------------------------------------------------------------*/
27
#include "
ShiResults.h
"
28
#include "
ShiTypes.h
"
29
30
/*----------------------------------------------------------------------
31
| constants
32
+---------------------------------------------------------------------*/
36
#define SHI_CRYPTO_BLOCK_CIPHER_ALGORITHM_AES_128 "AES-128"
37
38
/*----------------------------------------------------------------------
39
| interfaces
40
+---------------------------------------------------------------------*/
41
#if defined(__cplusplus)
42
extern
"C"
{
43
#endif
44
53
typedef
struct
SHI_BlockCipher
SHI_BlockCipher
;
54
61
SHI_PUBLIC_API
62
SHI_Result
63
SHI_BlockCipher_Destroy
(
SHI_BlockCipher
*
self
);
64
73
SHI_PUBLIC_API
74
SHI_Size
75
SHI_BlockCipher_GetBlockSize
(
SHI_BlockCipher
*
self
);
76
88
SHI_PUBLIC_API
89
SHI_Result
90
SHI_BlockCipher_DecryptBlock
(
SHI_BlockCipher
*
self
,
91
const
unsigned
char
* in_block,
92
unsigned
char
* out_block);
93
105
SHI_PUBLIC_API
106
SHI_Result
107
SHI_BlockCipher_EncryptBlock
(
SHI_BlockCipher
*
self
,
108
const
unsigned
char
* in_block,
109
unsigned
char
* out_block);
110
112
#if defined (__cplusplus)
113
}
114
#endif
115
116
#endif
/* _SHI_CRYPTO_H_ */