Lines Matching refs:nbytes
235 unsigned int nbytes) in fallback_blk_dec() argument
244 ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); in fallback_blk_dec()
252 unsigned int nbytes) in fallback_blk_enc() argument
261 ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); in fallback_blk_enc()
301 unsigned int nbytes; in ecb_aes_crypt() local
303 while ((nbytes = walk->nbytes)) { in ecb_aes_crypt()
305 unsigned int n = nbytes & ~(AES_BLOCK_SIZE - 1); in ecb_aes_crypt()
312 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_crypt()
313 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_aes_crypt()
321 unsigned int nbytes) in ecb_aes_encrypt() argument
327 return fallback_blk_enc(desc, dst, src, nbytes); in ecb_aes_encrypt()
329 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_encrypt()
335 unsigned int nbytes) in ecb_aes_decrypt() argument
341 return fallback_blk_dec(desc, dst, src, nbytes); in ecb_aes_decrypt()
343 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_decrypt()
430 unsigned int nbytes = walk->nbytes; in cbc_aes_crypt() local
432 if (!nbytes) in cbc_aes_crypt()
438 unsigned int n = nbytes & ~(AES_BLOCK_SIZE - 1); in cbc_aes_crypt()
445 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_crypt()
446 ret = blkcipher_walk_done(desc, walk, nbytes); in cbc_aes_crypt()
447 } while ((nbytes = walk->nbytes)); in cbc_aes_crypt()
456 unsigned int nbytes) in cbc_aes_encrypt() argument
462 return fallback_blk_enc(desc, dst, src, nbytes); in cbc_aes_encrypt()
464 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_aes_encrypt()
470 unsigned int nbytes) in cbc_aes_decrypt() argument
476 return fallback_blk_dec(desc, dst, src, nbytes); in cbc_aes_decrypt()
478 blkcipher_walk_init(&walk, dst, src, nbytes); in cbc_aes_decrypt()