Searched refs:ctrptr (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/arch/s390/crypto/ |
D | des_s390.c | 303 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()
|
D | paes_s390.c | 623 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument 628 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init() 631 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init() 632 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init() 633 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init() 642 u8 buf[AES_BLOCK_SIZE], *ctrptr; in ctr_paes_crypt() local 664 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_paes_crypt() 666 walk.src.virt.addr, n, ctrptr); in ctr_paes_crypt() 668 if (ctrptr == ctrblk) in ctr_paes_crypt() 669 memcpy(walk.iv, ctrptr + k - AES_BLOCK_SIZE, in ctr_paes_crypt()
|
D | aes_s390.c | 554 static unsigned int __ctrblk_init(u8 *ctrptr, u8 *iv, unsigned int nbytes) in __ctrblk_init() argument 559 memcpy(ctrptr, iv, AES_BLOCK_SIZE); in __ctrblk_init() 562 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init() 563 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init() 564 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init() 573 u8 buf[AES_BLOCK_SIZE], *ctrptr; in ctr_aes_crypt() local 589 ctrptr = (n > AES_BLOCK_SIZE) ? ctrblk : walk.iv; in ctr_aes_crypt() 591 walk.src.virt.addr, n, ctrptr); in ctr_aes_crypt() 592 if (ctrptr == ctrblk) in ctr_aes_crypt() 593 memcpy(walk.iv, ctrptr + n - AES_BLOCK_SIZE, in ctr_aes_crypt()
|