• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/EXTERNAL_HEADERS/corecrypto/

Lines Matching refs:ctx

33 CC_INLINE void ccecb_init(const struct ccmode_ecb *mode, ccecb_ctx *ctx,
36 mode->init(mode, ctx, key_len, key);
39 CC_INLINE void ccecb_update(const struct ccmode_ecb *mode, const ccecb_ctx *ctx,
42 mode->ecb(ctx, nblocks, in, out);
49 ccecb_ctx_decl(mode->size, ctx);
50 mode->init(mode, ctx, key_len, key);
51 mode->ecb(ctx, nblocks, in, out);
52 ccecb_ctx_clear(mode->size, ctx);
91 CC_INLINE void cccbc_init(const struct ccmode_cbc *mode, cccbc_ctx *ctx,
94 mode->init(mode, ctx, key_len, key);
106 CC_INLINE void cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx,
110 mode->cbc(ctx, iv, nblocks, in, out);
118 cccbc_ctx_decl(mode->size, ctx);
120 mode->init(mode, ctx, key_len, key);
125 mode->cbc(ctx, iv_ctx, nblocks, in, out);
126 cccbc_ctx_clear(mode->size, ctx);
146 CC_INLINE void cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx,
150 mode->init(mode, ctx, key_len, key, iv);
153 CC_INLINE void cccfb_update(const struct ccmode_cfb *mode, cccfb_ctx *ctx,
156 mode->cfb(ctx, nbytes, in, out);
163 cccfb_ctx_decl(mode->size, ctx);
164 mode->init(mode, ctx, key_len, key, iv);
165 mode->cfb(ctx, nbytes, in, out);
166 cccfb_ctx_clear(mode->size, ctx);
186 CC_INLINE void cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx,
189 mode->init(mode, ctx, key_len, key, iv);
192 CC_INLINE void cccfb8_update(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx,
195 mode->cfb8(ctx, nbytes, in, out);
202 cccfb8_ctx_decl(mode->size, ctx);
203 mode->init(mode, ctx, key_len, key, iv);
204 mode->cfb8(ctx, nbytes, in, out);
205 cccfb8_ctx_clear(mode->size, ctx);
229 CC_INLINE void ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx,
232 mode->init(mode, ctx, key_len, key, iv);
235 CC_INLINE void ccctr_update(const struct ccmode_ctr *mode, ccctr_ctx *ctx,
238 mode->ctr(ctx, nbytes, in, out);
245 ccctr_ctx_decl(mode->size, ctx);
246 mode->init(mode, ctx, key_len, key, iv);
247 mode->ctr(ctx, nbytes, in, out);
248 ccctr_ctx_clear(mode->size, ctx);
269 CC_INLINE void ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx,
272 mode->init(mode, ctx, key_len, key, iv);
275 CC_INLINE void ccofb_update(const struct ccmode_ofb *mode, ccofb_ctx *ctx,
278 mode->ofb(ctx, nbytes, in, out);
285 ccofb_ctx_decl(mode->size, ctx);
286 mode->init(mode, ctx, key_len, key, iv);
287 mode->ofb(ctx, nbytes, in, out);
288 ccofb_ctx_clear(mode->size, ctx);
328 CC_INLINE void ccxts_init(const struct ccmode_xts *mode, ccxts_ctx *ctx,
332 mode->init(mode, ctx, key_len, key, tweak_key);
335 CC_INLINE void ccxts_set_tweak(const struct ccmode_xts *mode, ccxts_ctx *ctx,
338 mode->set_tweak(ctx, tweak, iv);
341 CC_INLINE void *ccxts_update(const struct ccmode_xts *mode, ccxts_ctx *ctx,
344 return mode->xts(ctx, tweak, nblocks, in, out);
352 ccxts_ctx_decl(mode->size, ctx);
354 mode->init(mode, ctx, key_len, key, tweak_key);
355 mode->set_tweak(ctx, tweak, iv);
356 mode->xts(ctx, tweak, nblocks, in, out);
357 ccxts_ctx_clear(mode->size, ctx);
378 CC_INLINE void ccgcm_init(const struct ccmode_gcm *mode, ccgcm_ctx *ctx,
381 mode->init(mode, ctx, key_len, key);
384 CC_INLINE void ccgcm_set_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx,
387 mode->set_iv(ctx, iv_size, iv);
390 CC_INLINE void ccgcm_gmac(const struct ccmode_gcm *mode, ccgcm_ctx *ctx,
393 mode->gmac(ctx, nbytes, in);
396 CC_INLINE void ccgcm_update(const struct ccmode_gcm *mode, ccgcm_ctx *ctx,
399 mode->gcm(ctx, nbytes, in, out);
402 CC_INLINE void ccgcm_finalize(const struct ccmode_gcm *mode, ccgcm_ctx *ctx,
405 mode->finalize(ctx, tag_size, tag);
408 CC_INLINE void ccgcm_reset(const struct ccmode_gcm *mode, ccgcm_ctx *ctx)
410 mode->reset(ctx);
421 ccgcm_ctx_decl(mode->size, ctx);
422 mode->init(mode, ctx, key_len, key);
423 mode->set_iv(ctx, iv_len, iv);
424 mode->gmac(ctx, adata_len, adata);
425 mode->gcm(ctx, nbytes, in, out);
426 mode->finalize(ctx, tag_len, tag);
427 ccgcm_ctx_clear(mode->size, ctx);
450 CC_INLINE void ccccm_init(const struct ccmode_ccm *mode, ccccm_ctx *ctx,
453 mode->init(mode, ctx, key_len, key);
456 CC_INLINE void ccccm_set_iv(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx,
460 mode->set_iv(ctx, nonce_ctx, nonce_len, nonce, mac_size, auth_len, data_len);
463 CC_INLINE void ccccm_cbcmac(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx,
466 mode->cbcmac(ctx, nonce_ctx, nbytes, in);
469 CC_INLINE void ccccm_update(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx,
472 mode->ccm(ctx, nonce_ctx, nbytes, in, out);
475 CC_INLINE void ccccm_finalize(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx,
478 mode->finalize(ctx, nonce_ctx, mac);
481 CC_INLINE void ccccm_reset(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx)
483 mode->reset(ctx, nonce_ctx);
494 ccccm_ctx_decl(mode->size, ctx);
496 mode->init(mode, ctx, key_len, key);
497 mode->set_iv(ctx, nonce_ctx, nonce_len, nonce, mac_size, adata_len, nbytes);
498 mode->cbcmac(ctx, nonce_ctx, adata_len, adata);
499 mode->ccm(ctx, nonce_ctx, nbytes, in, out);
500 mode->finalize(ctx, nonce_ctx, mac);
501 ccccm_ctx_clear(mode->size, ctx);
524 CC_INLINE void ccomac_init(const struct ccmode_omac *mode, ccomac_ctx *ctx,
527 return mode->init(mode, ctx, tweak_len, key_len, key);
530 CC_INLINE int ccomac_update(const struct ccmode_omac *mode, ccomac_ctx *ctx,
533 return mode->omac(ctx, nblocks, tweak, in, out);
540 ccomac_ctx_decl(mode->size, ctx);
541 mode->init(mode, ctx, tweak_len, key_len, key);
542 int result = mode->omac(ctx, nblocks, tweak, in, out);
543 ccomac_ctx_clear(mode->size, ctx);