Home
last modified time | relevance | path

Searched refs:align (Results 1 – 7 of 7) sorted by relevance

/crypto/
Dctr.c195 unsigned long align = crypto_skcipher_alignmask(tfm); in crypto_rfc3686_crypt() local
197 (void *)PTR_ALIGN((u8 *)skcipher_request_ctx(req), align + 1); in crypto_rfc3686_crypt()
224 unsigned long align; in crypto_rfc3686_init_tfm() local
233 align = crypto_skcipher_alignmask(tfm); in crypto_rfc3686_init_tfm()
234 align &= ~(crypto_tfm_ctx_alignment() - 1); in crypto_rfc3686_init_tfm()
235 reqsize = align + sizeof(struct crypto_rfc3686_req_ctx) + in crypto_rfc3686_init_tfm()
Dgcm.c87 unsigned long align = crypto_aead_alignmask(crypto_aead_reqtfm(req)); in crypto_gcm_reqctx() local
89 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_gcm_reqctx()
528 unsigned long align; in crypto_gcm_init_tfm() local
543 align = crypto_aead_alignmask(tfm); in crypto_gcm_init_tfm()
544 align &= ~(crypto_tfm_ctx_alignment() - 1); in crypto_gcm_init_tfm()
546 align + offsetof(struct crypto_gcm_req_priv_ctx, u) + in crypto_gcm_init_tfm()
795 unsigned long align; in crypto_rfc4106_init_tfm() local
803 align = crypto_aead_alignmask(aead); in crypto_rfc4106_init_tfm()
804 align &= ~(crypto_tfm_ctx_alignment() - 1); in crypto_rfc4106_init_tfm()
809 align + 24); in crypto_rfc4106_init_tfm()
[all …]
Dccm.c64 unsigned long align = crypto_aead_alignmask(crypto_aead_reqtfm(req)); in crypto_ccm_reqctx() local
66 return (void *)PTR_ALIGN((u8 *)aead_request_ctx(req), align + 1); in crypto_ccm_reqctx()
400 unsigned long align; in crypto_ccm_init_tfm() local
415 align = crypto_aead_alignmask(tfm); in crypto_ccm_init_tfm()
416 align &= ~(crypto_tfm_ctx_alignment() - 1); in crypto_ccm_init_tfm()
419 align + sizeof(struct crypto_ccm_req_priv_ctx) + in crypto_ccm_init_tfm()
674 unsigned long align; in crypto_rfc4309_init_tfm() local
682 align = crypto_aead_alignmask(aead); in crypto_rfc4309_init_tfm()
683 align &= ~(crypto_tfm_ctx_alignment() - 1); in crypto_rfc4309_init_tfm()
688 align + 32); in crypto_rfc4309_init_tfm()
Dfips140-refs.S23 .align 2
Dcts.c291 unsigned align; in crypto_cts_init_tfm() local
299 align = crypto_skcipher_alignmask(tfm); in crypto_cts_init_tfm()
304 (align & ~(crypto_tfm_ctx_alignment() - 1)) + bsize; in crypto_cts_init_tfm()
Dhmac.c28 static inline void *align_ptr(void *p, unsigned int align) in align_ptr() argument
30 return (void *)ALIGN((unsigned long)p, align); in align_ptr()
Dchacha20poly1305.c507 unsigned long align; in chachapoly_init() local
523 align = crypto_aead_alignmask(tfm); in chachapoly_init()
524 align &= ~(crypto_tfm_ctx_alignment() - 1); in chachapoly_init()
527 align + offsetof(struct chachapoly_req_ctx, u) + in chachapoly_init()