H A D | ccmode.h | 16 /* ECB mode. */ 23 CC_INLINE size_t ccecb_context_size(const struct ccmode_ecb *mode) argument 25 return mode->size; 28 CC_INLINE unsigned long ccecb_block_size(const struct ccmode_ecb *mode) argument 30 return mode->block_size; 33 CC_INLINE void ccecb_init(const struct ccmode_ecb *mode, ccecb_ctx *ctx, argument 36 mode->init(mode, ctx, key_len, key); 39 CC_INLINE void ccecb_update(const struct ccmode_ecb *mode, const ccecb_ctx *ctx, argument 42 unsigned long numBlocks = (in_len / mode 46 ccecb_one_shot(const struct ccmode_ecb *mode, unsigned long key_len, const void *key, unsigned long in_len, const void *in, void *out) argument 83 cccbc_context_size(const struct ccmode_cbc *mode) argument 88 cccbc_block_size(const struct ccmode_cbc *mode) argument 93 cccbc_init(const struct ccmode_cbc *mode, cccbc_ctx *ctx, unsigned long key_len, const void *key) argument 99 cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) argument 107 cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, const void *in, void *out) argument 113 cccbc_one_shot(const struct ccmode_cbc *mode, unsigned long key_len, const void *key, const void *iv, unsigned long nblocks, const void *in, void *out) argument 135 cccfb_context_size(const struct ccmode_cfb *mode) argument 140 cccfb_block_size(const struct ccmode_cfb *mode) argument 145 cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 151 cccfb_update(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long in_len, const void *in, void *out) argument 157 cccfb_one_shot(const struct ccmode_cfb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 174 cccfb8_context_size(const struct ccmode_cfb8 *mode) argument 179 cccfb8_block_size(const struct ccmode_cfb8 *mode) argument 184 cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 190 cccfb8_update(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long in_len, const void *in, void *out) argument 196 cccfb8_one_shot(const struct ccmode_cfb8 *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 217 ccctr_context_size(const struct ccmode_ctr *mode) argument 222 ccctr_block_size(const struct ccmode_ctr *mode) argument 227 ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 233 ccctr_update(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long in_len, const void *in, void *out) argument 240 ccctr_one_shot(const struct ccmode_ctr *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 259 ccofb_context_size(const struct ccmode_ofb *mode) argument 264 ccofb_block_size(const struct ccmode_ofb *mode) argument 269 ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument 275 ccofb_update(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long in_len, const void *in, void *out) argument 281 ccofb_one_shot(const struct ccmode_ofb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument 318 ccxts_context_size(const struct ccmode_xts *mode) argument 323 ccxts_block_size(const struct ccmode_xts *mode) argument 328 ccxts_init(const struct ccmode_xts *mode, ccxts_ctx *ctx, unsigned long key_len, const void *key, const void *tweak_key) argument 334 ccxts_set_tweak(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv) argument 339 ccxts_update(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, unsigned long in_len, const void *in, void *out) argument 345 ccxts_one_shot(const struct ccmode_xts *mode, unsigned long key_len, const void *key, const void *tweak_key, const void* iv, unsigned long in_len, const void *in, void *out) argument 366 ccgcm_context_size(const struct ccmode_gcm *mode) argument 371 ccgcm_block_size(const struct ccmode_gcm *mode) argument 376 ccgcm_init(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long key_len, const void *key) argument 382 ccgcm_set_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t iv_size, const void *iv) argument 387 ccgcm_gmac(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long nbytes, const void *in) argument 393 ccgcm_update(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, unsigned long nbytes, const void *in, void *out) argument 399 ccgcm_finalize(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t tag_size, void *tag) argument 405 ccgcm_reset(const struct ccmode_gcm *mode, ccgcm_ctx *ctx) argument 411 ccgcm_one_shot(const struct ccmode_gcm *mode, unsigned long key_len, const void *key, unsigned long iv_len, const void *iv, unsigned long nbytes, const void *in, void *out, unsigned long adata_len, const void* adata, size_t tag_len, void *tag) argument 435 ccomac_context_size(const struct ccmode_omac *mode) argument 440 ccomac_block_size(const struct ccmode_omac *mode) argument 445 ccomac_init(const struct ccmode_omac *mode, ccomac_ctx *ctx, unsigned long tweak_len, unsigned long key_len, const void *key) argument 451 ccomac_update(const struct ccmode_omac *mode, ccomac_ctx *ctx, unsigned long in_len, const void *tweak, const void *in, void *out) argument 457 ccomac_one_shot(const struct ccmode_omac *mode, unsigned long tweak_len, unsigned long key_len, const void *key, const void *tweak, unsigned long in_len, const void *in, void *out) argument [all...] |