deps/scrypt/sha256.cpp
/* Finish an HMAC-SHA256 operation. */
Finish an HMAC-SHA256 operation.
Finish an HMAC - SHA256 operation .
void
HMAC_SHA256_Final(unsigned char digest[32], HMAC_SHA256_CTX * ctx)
{
	unsigned char ihash[32];
	SHA256_Final(ihash, &ctx->ictx);
	SHA256_Update(&ctx->octx, ihash, 32);
	SHA256_Final(digest, &ctx->octx);
	memset(ihash, 0, 32);
}
void HMAC_SHA256_Final ( unsigned char digest [ 32 ] , HMAC_SHA256_CTX * ctx ) { unsigned char ihash [ 32 ] ; SHA256_Final ( ihash , & ctx -> ictx ) ; SHA256_Update ( & ctx -> octx , ihash , 32 ) ; SHA256_Final ( digest , & ctx -> octx ) ; memset ( ihash , 0 , 32 ) ; }
Finish an HMAC-SHA256 operation.
Finish an HMAC - SHA256 operation .
/* Finish the inner SHA256 operation. */ /* Feed the inner hash to the outer SHA256 operation. */ /* Finish the outer SHA256 operation. */ /* Clean the stack. */