Lines Matching refs:mask

490             size_t inp_len, mask, j, i;  in aesni_cbc_hmac_sha1_cipher()  local
543 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha1_cipher()
544 ret &= mask; in aesni_cbc_hmac_sha1_cipher()
551 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha1_cipher()
616 mask = (j - inp_len) >> (sizeof(j) * 8 - 8); in aesni_cbc_hmac_sha1_cipher()
617 c &= mask; in aesni_cbc_hmac_sha1_cipher()
618 c |= 0x80 & ~mask & ~((inp_len - j) >> (sizeof(j) * 8 - 8)); in aesni_cbc_hmac_sha1_cipher()
625 mask = 0 - ((inp_len + 7 - j) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
626 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
628 mask &= 0 - ((j - inp_len - 72) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
629 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher()
630 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher()
631 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher()
632 pmac->u[3] |= key->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher()
633 pmac->u[4] |= key->md.h4 & mask; in aesni_cbc_hmac_sha1_cipher()
641 mask = 0 - ((inp_len + 8 - j) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
642 data->u[SHA_LBLOCK - 1] |= bitlen & mask; in aesni_cbc_hmac_sha1_cipher()
644 mask &= 0 - ((j - inp_len - 73) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
645 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher()
646 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher()
647 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher()
648 pmac->u[3] |= key->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher()
649 pmac->u[4] |= key->md.h4 & mask; in aesni_cbc_hmac_sha1_cipher()
656 mask = 0 - ((j - inp_len - 73) >> (sizeof(j) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
657 pmac->u[0] |= key->md.h0 & mask; in aesni_cbc_hmac_sha1_cipher()
658 pmac->u[1] |= key->md.h1 & mask; in aesni_cbc_hmac_sha1_cipher()
659 pmac->u[2] |= key->md.h2 & mask; in aesni_cbc_hmac_sha1_cipher()
660 pmac->u[3] |= key->md.h3 & mask; in aesni_cbc_hmac_sha1_cipher()
661 pmac->u[4] |= key->md.h4 & mask; in aesni_cbc_hmac_sha1_cipher()