Lines Matching refs:name

114   switch (algorithm.name) {
159 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');
203 if (baseKey.algorithm.name !== algorithm.name)
205 switch (algorithm.name) {
220 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');
223 function getKeyLength({ name, length, hash }) {
224 switch (name) {
235 return getBlockSize(hash?.name);
288 if (baseKey.algorithm.name !== algorithm.name)
293 switch (algorithm.name) {
311 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');
322 switch (key.algorithm.name) {
356 `Unable to export a raw ${key.algorithm.name} ${key.type} key`,
361 switch (key.algorithm.name) {
395 `Unable to export a pkcs8 ${key.algorithm.name} ${key.type} key`,
400 switch (key.algorithm.name) {
434 `Unable to export a raw ${key.algorithm.name} ${key.type} key`,
443 switch (key.algorithm.name) {
446 key.algorithm.hash.name,
451 key.algorithm.hash.name,
456 key.algorithm.hash.name,
467 jwk.crv ||= key.algorithm.name;
472 jwk.crv ||= key.algorithm.name;
483 .getAlgorithmName(key.algorithm.name, key.algorithm.length);
487 key.algorithm.hash.name,
526 { name, length },
533 throw lazyDOMException(`${name} keys are not extractable`, 'SyntaxError');
537 `Unsupported key usage for a ${name} key`,
545 `Unsupported key usage for a ${name} key`,
560 return new InternalCryptoKey(keyObject, { name }, keyUsages, false);
565 `Unable to import ${name} key with format ${format}`,
604 switch (algorithm.name) {
654 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');
704 if (algorithm.name === 'AES-KW' && raw.length % 8 !== 0) {
806 algorithm.name !== key.algorithm.name) {
812 switch (algorithm.name) {
831 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');
888 if (key.algorithm.name !== algorithm.name ||
900 switch (algorithm.name) {
917 throw lazyDOMException('Unrecognized algorithm name', 'NotSupportedError');