Lines Matching +full:state +full:- +full:of +full:- +full:charge
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
8 * distribute, sublicense, and/or sell copies of the Software, and to
13 * included in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
48 uint32_t state[16]; in br_chacha20_ct_run() local
53 memcpy(&state[0], CW, sizeof CW); in br_chacha20_ct_run()
54 memcpy(&state[4], kw, sizeof kw); in br_chacha20_ct_run()
55 state[12] = cc; in br_chacha20_ct_run()
56 memcpy(&state[13], ivw, sizeof ivw); in br_chacha20_ct_run()
60 state[a] += state[b]; \ in br_chacha20_ct_run()
61 state[d] ^= state[a]; \ in br_chacha20_ct_run()
62 state[d] = (state[d] << 16) | (state[d] >> 16); \ in br_chacha20_ct_run()
63 state[c] += state[d]; \ in br_chacha20_ct_run()
64 state[b] ^= state[c]; \ in br_chacha20_ct_run()
65 state[b] = (state[b] << 12) | (state[b] >> 20); \ in br_chacha20_ct_run()
66 state[a] += state[b]; \ in br_chacha20_ct_run()
67 state[d] ^= state[a]; \ in br_chacha20_ct_run()
68 state[d] = (state[d] << 8) | (state[d] >> 24); \ in br_chacha20_ct_run()
69 state[c] += state[d]; \ in br_chacha20_ct_run()
70 state[b] ^= state[c]; \ in br_chacha20_ct_run()
71 state[b] = (state[b] << 7) | (state[b] >> 25); \ in br_chacha20_ct_run()
87 br_enc32le(&tmp[u << 2], state[u] + CW[u]); in br_chacha20_ct_run()
90 br_enc32le(&tmp[u << 2], state[u] + kw[u - 4]); in br_chacha20_ct_run()
92 br_enc32le(&tmp[48], state[12] + cc); in br_chacha20_ct_run()
94 br_enc32le(&tmp[u << 2], state[u] + ivw[u - 13]); in br_chacha20_ct_run()
102 len -= clen; in br_chacha20_ct_run()