Lines Matching defs:state
33 #define SHA3_done(state, digest) sha3_final(digest, state)
34 #define SHA3_squeeze(state, out, len) shake_xof(state), shake_out(state, out, len)
54 void *state = PyModule_GetState(module);
55 assert(state != NULL);
56 return (SHA3State *)state;
109 SHA3State *state = PyType_GetModuleState(type);
115 assert(state != NULL);
117 if (type == state->sha3_224_type) {
119 } else if (type == state->sha3_256_type) {
121 } else if (type == state->sha3_384_type) {
123 } else if (type == state->sha3_512_type) {
125 } else if (type == state->shake_128_type) {
127 } else if (type == state->shake_256_type) {
275 Update this hash object's state with the provided bytes-like object.
340 SHA3State *state = PyType_GetModuleState(type);
341 assert(state != NULL);
343 if (type == state->sha3_224_type) {
345 } else if (type == state->sha3_256_type) {
347 } else if (type == state->sha3_384_type) {
349 } else if (type == state->sha3_512_type) {
351 } else if (type == state->shake_128_type) {
353 } else if (type == state->shake_256_type) {
576 SHA3State *state = sha3_get_state(module);
577 Py_VISIT(state->sha3_224_type);
578 Py_VISIT(state->sha3_256_type);
579 Py_VISIT(state->sha3_384_type);
580 Py_VISIT(state->sha3_512_type);
581 Py_VISIT(state->shake_128_type);
582 Py_VISIT(state->shake_256_type);
589 SHA3State *state = sha3_get_state(module);
590 Py_CLEAR(state->sha3_224_type);
591 Py_CLEAR(state->sha3_256_type);
592 Py_CLEAR(state->sha3_384_type);
593 Py_CLEAR(state->sha3_512_type);
594 Py_CLEAR(state->shake_128_type);
595 Py_CLEAR(state->shake_256_type);