Lines Matching refs:mask

491             size_t inp_len, mask, j, i;  in aesni_cbc_hmac_sha256_cipher()  local
516 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha256_cipher()
517 ret &= mask; in aesni_cbc_hmac_sha256_cipher()
524 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha256_cipher()
569 mask = (j - inp_len) >> (sizeof(j) * 8 - 8); in aesni_cbc_hmac_sha256_cipher()
570 c &= mask; in aesni_cbc_hmac_sha256_cipher()
571 c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8)); in aesni_cbc_hmac_sha256_cipher()
578 mask = 0 - ((inp_len + 7 - j) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
579 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
581 mask &= 0 - ((j - inp_len - 72) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
582 pmac->u[0] |= sctx->md.h[0] & mask; in aesni_cbc_hmac_sha256_cipher()
583 pmac->u[1] |= sctx->md.h[1] & mask; in aesni_cbc_hmac_sha256_cipher()
584 pmac->u[2] |= sctx->md.h[2] & mask; in aesni_cbc_hmac_sha256_cipher()
585 pmac->u[3] |= sctx->md.h[3] & mask; in aesni_cbc_hmac_sha256_cipher()
586 pmac->u[4] |= sctx->md.h[4] & mask; in aesni_cbc_hmac_sha256_cipher()
587 pmac->u[5] |= sctx->md.h[5] & mask; in aesni_cbc_hmac_sha256_cipher()
588 pmac->u[6] |= sctx->md.h[6] & mask; in aesni_cbc_hmac_sha256_cipher()
589 pmac->u[7] |= sctx->md.h[7] & mask; in aesni_cbc_hmac_sha256_cipher()
597 mask = 0 - ((inp_len + 8 - j) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
598 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha256_cipher()
600 mask &= 0 - ((j - inp_len - 73) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
601 pmac->u[0] |= sctx->md.h[0] & mask; in aesni_cbc_hmac_sha256_cipher()
602 pmac->u[1] |= sctx->md.h[1] & mask; in aesni_cbc_hmac_sha256_cipher()
603 pmac->u[2] |= sctx->md.h[2] & mask; in aesni_cbc_hmac_sha256_cipher()
604 pmac->u[3] |= sctx->md.h[3] & mask; in aesni_cbc_hmac_sha256_cipher()
605 pmac->u[4] |= sctx->md.h[4] & mask; in aesni_cbc_hmac_sha256_cipher()
606 pmac->u[5] |= sctx->md.h[5] & mask; in aesni_cbc_hmac_sha256_cipher()
607 pmac->u[6] |= sctx->md.h[6] & mask; in aesni_cbc_hmac_sha256_cipher()
608 pmac->u[7] |= sctx->md.h[7] & mask; in aesni_cbc_hmac_sha256_cipher()
615 mask = 0 - ((j - inp_len - 73) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
616 pmac->u[0] |= sctx->md.h[0] & mask; in aesni_cbc_hmac_sha256_cipher()
617 pmac->u[1] |= sctx->md.h[1] & mask; in aesni_cbc_hmac_sha256_cipher()
618 pmac->u[2] |= sctx->md.h[2] & mask; in aesni_cbc_hmac_sha256_cipher()
619 pmac->u[3] |= sctx->md.h[3] & mask; in aesni_cbc_hmac_sha256_cipher()
620 pmac->u[4] |= sctx->md.h[4] & mask; in aesni_cbc_hmac_sha256_cipher()
621 pmac->u[5] |= sctx->md.h[5] & mask; in aesni_cbc_hmac_sha256_cipher()
622 pmac->u[6] |= sctx->md.h[6] & mask; in aesni_cbc_hmac_sha256_cipher()
623 pmac->u[7] |= sctx->md.h[7] & mask; in aesni_cbc_hmac_sha256_cipher()