Home
last modified time | relevance | path

Searched refs:ctrptr (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/arch/s390/crypto/
Ddes_s390.c303 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument
309 memcpy(ctrptr, iv, DES_BLOCK_SIZE); in __ctrblk_init()
311 memcpy(ctrptr + DES_BLOCK_SIZE, ctrptr, DES_BLOCK_SIZE); in __ctrblk_init()
312 crypto_inc(ctrptr + DES_BLOCK_SIZE, DES_BLOCK_SIZE); in __ctrblk_init()
313 ctrptr += DES_BLOCK_SIZE; in __ctrblk_init()
322 u8 buf[DES_BLOCK_SIZE], *ctrptr; in ctr_desall_crypt() local
334 ctrptr = (n > DES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_desall_crypt()
336 walk.src.virt.addr, n, ctrptr); in ctr_desall_crypt()
337 if (ctrptr == ctrblk) in ctr_desall_crypt()
338 memcpy(walk.iv, ctrptr + n - DES_BLOCK_SIZE, in ctr_desall_crypt()
Dpaes_s390.c611 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument
616 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init()
619 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init()
620 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init()
621 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init()
630 u8 buf[AES_BLOCK_SIZE], *ctrptr; in ctr_paes_crypt() local
652 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_paes_crypt()
654 walk.src.virt.addr, n, ctrptr); in ctr_paes_crypt()
656 if (ctrptr == ctrblk) in ctr_paes_crypt()
657 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE, in ctr_paes_crypt()
Daes_s390.c553 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument
558 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init()
561 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init()
562 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init()
563 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init()
572 u8 buf[AES_BLOCK_SIZE], *ctrptr; in ctr_aes_crypt() local
588 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_aes_crypt()
590 walk.src.virt.addr, n, ctrptr); in ctr_aes_crypt()
591 if (ctrptr == ctrblk) in ctr_aes_crypt()
592 memcpy(walk.iv, ctrptr + n - AES_BLOCK_SIZE, in ctr_aes_crypt()