Lines Matching refs:nbytes
182 unsigned int nbytes) in fallback_blk_dec() argument
191 ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); in fallback_blk_dec()
198 unsigned int nbytes) in fallback_blk_enc() argument
207 ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); in fallback_blk_enc()
304 unsigned int nbytes) in geode_cbc_decrypt() argument
311 return fallback_blk_dec(desc, dst, src, nbytes); in geode_cbc_decrypt()
313 blkcipher_walk_init(&walk, dst, src, nbytes); in geode_cbc_decrypt()
317 while ((nbytes = walk.nbytes)) { in geode_cbc_decrypt()
321 op->len = nbytes - (nbytes % AES_BLOCK_SIZE); in geode_cbc_decrypt()
326 nbytes -= ret; in geode_cbc_decrypt()
327 err = blkcipher_walk_done(desc, &walk, nbytes); in geode_cbc_decrypt()
336 unsigned int nbytes) in geode_cbc_encrypt() argument
343 return fallback_blk_enc(desc, dst, src, nbytes); in geode_cbc_encrypt()
345 blkcipher_walk_init(&walk, dst, src, nbytes); in geode_cbc_encrypt()
349 while ((nbytes = walk.nbytes)) { in geode_cbc_encrypt()
353 op->len = nbytes - (nbytes % AES_BLOCK_SIZE); in geode_cbc_encrypt()
357 nbytes -= ret; in geode_cbc_encrypt()
358 err = blkcipher_walk_done(desc, &walk, nbytes); in geode_cbc_encrypt()
417 unsigned int nbytes) in geode_ecb_decrypt() argument
424 return fallback_blk_dec(desc, dst, src, nbytes); in geode_ecb_decrypt()
426 blkcipher_walk_init(&walk, dst, src, nbytes); in geode_ecb_decrypt()
429 while ((nbytes = walk.nbytes)) { in geode_ecb_decrypt()
433 op->len = nbytes - (nbytes % AES_BLOCK_SIZE); in geode_ecb_decrypt()
437 nbytes -= ret; in geode_ecb_decrypt()
438 err = blkcipher_walk_done(desc, &walk, nbytes); in geode_ecb_decrypt()
447 unsigned int nbytes) in geode_ecb_encrypt() argument
454 return fallback_blk_enc(desc, dst, src, nbytes); in geode_ecb_encrypt()
456 blkcipher_walk_init(&walk, dst, src, nbytes); in geode_ecb_encrypt()
459 while ((nbytes = walk.nbytes)) { in geode_ecb_encrypt()
463 op->len = nbytes - (nbytes % AES_BLOCK_SIZE); in geode_ecb_encrypt()
467 nbytes -= ret; in geode_ecb_encrypt()
468 ret = blkcipher_walk_done(desc, &walk, nbytes); in geode_ecb_encrypt()