Lines Matching refs:digest
33 #define SHA3_done(state, digest) sha3_final(digest, state)
215 _sha3.sha3_224.digest
217 Return the digest value as a bytes object.
224 unsigned char digest[SHA3_MAX_DIGESTSIZE + SHA3_LANESIZE];
231 res = SHA3_done(&temp, digest);
236 return PyBytes_FromStringAndSize((const char *)digest,
244 Return the digest value as a string of hexadecimal digits.
251 unsigned char digest[SHA3_MAX_DIGESTSIZE + SHA3_LANESIZE];
255 /* Get the raw (binary) digest value */
259 res = SHA3_done(&temp, digest);
264 return _Py_strhex((const char *)digest,
456 unsigned char *digest = NULL;
467 digest = (unsigned char*)PyMem_Malloc(digestlen + SHA3_LANESIZE);
468 if (digest == NULL) {
472 /* Get the raw (binary) digest value */
476 SHA3_squeeze(&temp, digest, digestlen);
478 result = _Py_strhex((const char *)digest, digestlen);
480 result = PyBytes_FromStringAndSize((const char *)digest,
483 if (digest != NULL) {
484 PyMem_Free(digest);
491 _sha3.shake_128.digest
496 Return the digest value as a bytes object.
513 Return the digest value as a string of hexadecimal digits.