Lines Matching +full:8 +full:m

47 static const uint32_t blake2s_iv[8] = {
53 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
54 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 },
55 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 },
56 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 },
57 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 },
58 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 },
59 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 },
60 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 },
61 { 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5 },
62 { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0 },
83 for (i = 0; i < 8; ++i) in blake2s_init_param()
99 blake2s_init_param(state, 0x01010000 | keylen << 8 | outlen); in blake2s_init_key()
110 uint32_t m[16]; in blake2s_compress() local
116 memcpy(m, block, BLAKE2S_BLOCK_SIZE); in blake2s_compress()
117 le32_to_cpu_array(m, ARRAY_SIZE(m)); in blake2s_compress()
119 v[ 8] = blake2s_iv[0]; in blake2s_compress()
129 a += b + m[blake2s_sigma[r][2 * i + 0]]; \ in blake2s_compress()
133 a += b + m[blake2s_sigma[r][2 * i + 1]]; \ in blake2s_compress()
134 d = ror32(d ^ a, 8); \ in blake2s_compress()
140 G(r, 0, v[0], v[ 4], v[ 8], v[12]); \ in blake2s_compress()
146 G(r, 6, v[2], v[ 7], v[ 8], v[13]); \ in blake2s_compress()
157 ROUND(8); in blake2s_compress()
163 for (i = 0; i < 8; ++i) in blake2s_compress()
164 state->h[i] ^= v[i] ^ v[i + 8]; in blake2s_compress()
214 chacha20poly1305_encrypt_mbuf(struct mbuf *m, const uint64_t nonce, in chacha20poly1305_encrypt_mbuf() argument
221 if (!m_append(m, POLY1305_HASH_LEN, blank_tag)) in chacha20poly1305_encrypt_mbuf()
226 crypto_use_mbuf(&crp, m); in chacha20poly1305_encrypt_mbuf()
227 crp.crp_payload_length = m->m_pkthdr.len - POLY1305_HASH_LEN; in chacha20poly1305_encrypt_mbuf()
238 chacha20poly1305_decrypt_mbuf(struct mbuf *m, const uint64_t nonce, in chacha20poly1305_decrypt_mbuf() argument
244 if (m->m_pkthdr.len < POLY1305_HASH_LEN) in chacha20poly1305_decrypt_mbuf()
249 crypto_use_mbuf(&crp, m); in chacha20poly1305_decrypt_mbuf()
250 crp.crp_payload_length = m->m_pkthdr.len - POLY1305_HASH_LEN; in chacha20poly1305_decrypt_mbuf()
259 m_adj(m, -POLY1305_HASH_LEN); in chacha20poly1305_decrypt_mbuf()