download
raw
570 Bytes
import subtleAlgorithm from './subtle_dsa.js';
import crypto from './webcrypto.js';
import checkKeyLength from './check_key_length.js';
import getVerifyKey from './get_sign_verify_key.js';
const verify = async (alg, key, signature, data) => {
const cryptoKey = await getVerifyKey(alg, key, 'verify');
checkKeyLength(alg, cryptoKey);
const algorithm = subtleAlgorithm(alg, cryptoKey.algorithm);
try {
return await crypto.subtle.verify(algorithm, cryptoKey, signature, data);
}
catch {
return false;
}
};
export default verify;

Xet Storage Details

Size:
570 Bytes
·
Xet hash:
af3a5b15d82f353014e3c4272030bbe61ad066566700c1cb2baa7bab8e99c8bc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.