/* Return the 384-bit message digest into the user's array  */
void ICACHE_FLASH_ATTR SHA384_Final(uint8_t *digest, SHA384_CTX *ctx)
/* Return the 384-bit message digest into the user's array  */
void ICACHE_FLASH_ATTR SHA384_Final(uint8_t *digest, SHA384_CTX *ctx)
{
    SHA512_Final(NULL, ctx);
    if (digest != NULL)
        memcpy(digest, ctx->h_dig.digest, SHA384_SIZE);
}