21 #ifndef _SHI_CRYPTO_H_ 22 #define _SHI_CRYPTO_H_ 36 #define SHI_CRYPTO_BLOCK_CIPHER_ALGORITHM_AES_128 "AES-128" 41 #if defined(__cplusplus) 91 const unsigned char* in_block,
92 unsigned char* out_block);
108 const unsigned char* in_block,
109 unsigned char* out_block);
112 #if defined (__cplusplus) #define SHI_PUBLIC_API
Definition: ShiTypes.h:52
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
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.