Lines Matching refs:total
197 size_t copy_amt, total = 0; in AES_CCM_encrypt() local
232 while (total < nbytes) { in AES_CCM_encrypt()
237 copy_amt = MIN(nbytes - total, sizeof(staging_block)); in AES_CCM_encrypt()
238 bcopy(in+total, &staging_block, copy_amt); in AES_CCM_encrypt()
253 bcopy(&staging_block, out+total, copy_amt); in AES_CCM_encrypt()
254 total += copy_amt; in AES_CCM_encrypt()
295 size_t total = 0; in decrypt_loop() local
307 while (total < nbytes) { in decrypt_loop()
308 size_t copy_amt = MIN(nbytes - total, sizeof(staging_block)); in decrypt_loop()
313 bcopy(in+total, &staging_block, copy_amt); in decrypt_loop()
337 bcopy(&staging_block, out+total, copy_amt); in decrypt_loop()
342 total += copy_amt; in decrypt_loop()