Lines Matching refs:AES_BLOCK_SIZE

66 	u8 buf[AES_BLOCK_SIZE];
113 cpacf_km(sctx->fc, &sctx->key, out, in, AES_BLOCK_SIZE); in crypto_aes_encrypt()
125 &sctx->key, out, in, AES_BLOCK_SIZE); in crypto_aes_decrypt()
159 .cra_blocksize = AES_BLOCK_SIZE,
236 n = nbytes & ~(AES_BLOCK_SIZE - 1); in ecb_aes_crypt()
285 .base.cra_blocksize = AES_BLOCK_SIZE,
326 u8 iv[AES_BLOCK_SIZE]; in cbc_aes_crypt()
336 memcpy(param.iv, walk.iv, AES_BLOCK_SIZE); in cbc_aes_crypt()
340 n = nbytes & ~(AES_BLOCK_SIZE - 1); in cbc_aes_crypt()
343 memcpy(walk.iv, param.iv, AES_BLOCK_SIZE); in cbc_aes_crypt()
365 .base.cra_blocksize = AES_BLOCK_SIZE,
372 .ivsize = AES_BLOCK_SIZE,
437 if (req->cryptlen < AES_BLOCK_SIZE) in xts_aes_crypt()
440 if (unlikely(!xts_ctx->fc || (req->cryptlen % AES_BLOCK_SIZE) != 0)) { in xts_aes_crypt()
466 n = nbytes & ~(AES_BLOCK_SIZE - 1); in xts_aes_crypt()
516 .base.cra_blocksize = AES_BLOCK_SIZE,
523 .ivsize = AES_BLOCK_SIZE,
555 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init()
556 n = (nbytes > PAGE_SIZE) ? PAGE_SIZE : nbytes & ~(AES_BLOCK_SIZE - 1); in __ctrblk_init()
557 for (i = (n / AES_BLOCK_SIZE) - 1; i > 0; i--) { in __ctrblk_init()
558 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init()
559 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init()
560 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init()
569 u8 buf[AES_BLOCK_SIZE], *ctrptr; in ctr_aes_crypt()
580 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in ctr_aes_crypt()
581 n = AES_BLOCK_SIZE; in ctr_aes_crypt()
583 if (nbytes >= 2*AES_BLOCK_SIZE && locked) in ctr_aes_crypt()
585 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_aes_crypt()
589 memcpy(walk.iv, ctrptr + n - AES_BLOCK_SIZE, in ctr_aes_crypt()
590 AES_BLOCK_SIZE); in ctr_aes_crypt()
591 crypto_inc(walk.iv, AES_BLOCK_SIZE); in ctr_aes_crypt()
600 memset(buf, 0, AES_BLOCK_SIZE); in ctr_aes_crypt()
603 AES_BLOCK_SIZE, walk.iv); in ctr_aes_crypt()
605 crypto_inc(walk.iv, AES_BLOCK_SIZE); in ctr_aes_crypt()
624 .ivsize = AES_BLOCK_SIZE,
628 .chunksize = AES_BLOCK_SIZE,
737 n = min(gw->walk_bytes, AES_BLOCK_SIZE - gw->buf_bytes); in gcm_in_walk_go()
845 u8 h[AES_BLOCK_SIZE]; /* Hash-subkey */ in gcm_aes_crypt()
878 aadlen > 0 ? aadlen : pclen, AES_BLOCK_SIZE); in gcm_aes_crypt()
891 ~(AES_BLOCK_SIZE - 1); in gcm_aes_crypt()
894 aad_bytes = bytes & ~(AES_BLOCK_SIZE - 1); in gcm_aes_crypt()
945 .chunksize = AES_BLOCK_SIZE,