MCPcopy Create free account
hub / github.com/awslabs/llrt / algorithm_mismatch_error

Function algorithm_mismatch_error

modules/llrt_crypto/src/subtle/mod.rs:163–168  ·  view source on GitHub ↗
(ctx: &Ctx<'_>, expected_algorithm: &str)

Source from the content-addressed store, hash-verified

161 "Algorithm not supported",
162 ))
163}
164
165pub fn algorithm_invalid_access_error<T>(ctx: &Ctx<'_>, expected_algorithm: &str) -> Result<T> {
166 Err(DOMException::invalid_access_error(
167 ctx,
168 ["Key algorithm must be ", expected_algorithm].concat(),
169 ))
170}
171

Callers 11

import_rsa_keyFunction · 0.85
import_symmetric_keyFunction · 0.85
import_ec_keyFunction · 0.85
import_okp_keyFunction · 0.85
encrypt_decryptFunction · 0.85
rsa_hash_digestFunction · 0.85
validate_aes_lengthFunction · 0.85
from_jsMethod · 0.85
signFunction · 0.85
verifyFunction · 0.85
derive_bitsFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected