Lines Matching refs:ctr
584 u16 ctr, n_le = host_to_le16(buf_len_bits); in hmac_prf_bits() local
585 const u8 *const addr[] = {(u8 *)&ctr, (u8 *)label, data, (u8 *)&n_le}; in hmac_prf_bits()
589 for (ctr = 1; buf_len >= mac_len; buf_len -= mac_len, ++ctr) in hmac_prf_bits()
592 ctr = host_to_le16(ctr); in hmac_prf_bits()
600 ctr = le_to_host16(ctr); in hmac_prf_bits()
608 ctr = host_to_le16(ctr); in hmac_prf_bits()
653 unsigned short ctr, n_le = host_to_le16(buf_len_bits); in hmac_prf256() local
654 const u8 *addr[] = {(u8 *)&ctr, (u8 *)label, data, (u8 *)&n_le}; in hmac_prf256()
659 for (ctr = 1; buf_len >= SHA256_MAC_LEN; buf_len -= SHA256_MAC_LEN, ++ctr) in hmac_prf256()
745 u8 ctr; in sha1_t_prf() local
747 const u8 *addr[] = {buf, (u8 *)label, seed, (u8 *)&olen, &ctr}; in sha1_t_prf()
750 for (ctr = 1; buf_len >= SHA1_MAC_LEN; buf_len -= SHA1_MAC_LEN, ++ctr) in sha1_t_prf()