Wasabi ExpressPlay SDK for Embedded Systems  1.23.0
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 
54 
64 
76 
91  const unsigned char* in_block,
92  unsigned char* out_block);
93 
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_ */
#define SHI_PUBLIC_API
Definition: ShiTypes.h:52
Result codes.
SHI_PUBLIC_API SHI_Result SHI_BlockCipher_EncryptBlock(SHI_BlockCipher *self, const unsigned char *in_block, unsigned char *out_block)
Encrypt a block of data.
SHI_UInt32 SHI_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: ShiTypes.h:95
SHI_PUBLIC_API SHI_Size SHI_BlockCipher_GetBlockSize(SHI_BlockCipher *self)
Returns the block size for the block cipher.
SHI_PUBLIC_API SHI_Result SHI_BlockCipher_DecryptBlock(SHI_BlockCipher *self, const unsigned char *in_block, unsigned char *out_block)
Decrypt a block of data.
struct SHI_BlockCipher SHI_BlockCipher
A SHI_BlockCipher object decrypts blocks of data.
Definition: ShiCrypto.h:53
Common data types.
int SHI_Result
Signed integer value representing a function or method result (return value).
Definition: ShiTypes.h:74
SHI_PUBLIC_API SHI_Result SHI_BlockCipher_Destroy(SHI_BlockCipher *self)
Destroys a block cipher object.