Lines Matching defs:state
50 SHA1_INT32 state[5], curlen;
117 /* copy the state into 512-bits into W[0..15] */
122 /* copy state */
123 a = sha1->state[0];
124 b = sha1->state[1];
125 c = sha1->state[2];
126 d = sha1->state[3];
127 e = sha1->state[4];
182 sha1->state[0] = sha1->state[0] + a;
183 sha1->state[1] = sha1->state[1] + b;
184 sha1->state[2] = sha1->state[2] + c;
185 sha1->state[3] = sha1->state[3] + d;
186 sha1->state[4] = sha1->state[4] + e;
190 Initialize the hash state
191 @param sha1 The hash state you wish to initialize
197 sha1->state[0] = 0x67452301UL;
198 sha1->state[1] = 0xefcdab89UL;
199 sha1->state[2] = 0x98badcfeUL;
200 sha1->state[3] = 0x10325476UL;
201 sha1->state[4] = 0xc3d2e1f0UL;
208 @param sha1 The hash state
245 @param sha1 The hash state
286 STORE32H(sha1->state[i], out+(4*i));
308 void *state = PyModule_GetState(module);
309 assert(state != NULL);
310 return (SHA1State *)state;
408 Update this hash object's state with the provided string.
539 SHA1State *state = sha1_get_state(module);
540 Py_VISIT(state->sha1_type);
547 SHA1State *state = sha1_get_state(module);
548 Py_CLEAR(state->sha1_type);