function createVerify(algorithm, data) {
    const verifyAlgorithm = algorithmToHashAlgorithm[algorithm];
    if (!verifyAlgorithm) {
        throw new Error(`Invalid algorithm ${algorithm} passed to createHash. Supported algorithms: ${Object.keys(algorithmToHashAlgorithm).join(", ")}`);
    }
    const verifier = cryptoCreateVerify(verifyAlgorithm);
    verifier.update(Buffer.from(data));
    verifier.end();
    return verifier;
}
/**
 * @internal
 * Use the platform-local verify functionality
 */
@internal
Use the platform-local verify functionality
@internal Use the platform - local verify functionality
function createVerify(algorithm, data) {
    const verifyAlgorithm = algorithmToHashAlgorithm[algorithm];
    if (!verifyAlgorithm) {
        throw new Error(`Invalid algorithm ${algorithm} passed to createHash. Supported algorithms: ${Object.keys(algorithmToHashAlgorithm).join(", ")}`);
    }
    const verifier = cryptoCreateVerify(verifyAlgorithm);
    verifier.update(Buffer.from(data));
    verifier.end();
    return verifier;
}
function createVerify ( algorithm , data ) { const verifyAlgorithm = algorithmToHashAlgorithm [ algorithm ] ; if ( ! verifyAlgorithm ) { throw new Error ( ` ${ algorithm } ${ Object . keys ( algorithmToHashAlgorithm ) . join ( ", " ) } ` ) ; } const verifier = cryptoCreateVerify ( verifyAlgorithm ) ; verifier . update ( Buffer . from ( data ) ) ; verifier . end ( ) ; return verifier ; }
@internal
 Use the platform-local verify functionality
@internal Use the platform - local verify functionality