mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
26 lines
661 B
C
26 lines
661 B
C
#ifndef SKE_CFB_H
|
|
#define SKE_CFB_H
|
|
|
|
#include <ske.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//APIs
|
|
u32 ske_sec_cfb_init(SKE_CTX *ctx, SKE_ALG alg, SKE_CRYPTO crypto, u8 *key, u16 sp_key_idx,
|
|
u8 *iv, SKE_PADDING padding);
|
|
u32 ske_sec_cfb_update_blocks(SKE_CTX *ctx, u8 *in, u8 *out, u32 bytes);
|
|
u32 ske_sec_cfb_update_including_last_block(SKE_CTX *ctx, u8 *in, u8 *out, u32 in_bytes,
|
|
u32 *out_bytes);
|
|
u32 ske_sec_cfb_final(SKE_CTX *ctx);
|
|
u32 ske_sec_cfb_crypto(SKE_ALG alg, SKE_CRYPTO crypto, u8 *key, u16 sp_key_idx, u8 *iv,
|
|
SKE_PADDING padding, u8 *in, u8 *out, u32 in_bytes, u32 *out_bytes);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|