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

Function algorithm_export_error

modules/llrt_crypto/src/subtle/export_key.rs:19–24  ·  view source on GitHub ↗
(ctx: &Ctx<'_>, algorithm: &str, format: &str)

Source from the content-addressed store, hash-verified

17 CryptoKey,
18};
19
20pub fn algorithm_export_error<T>(ctx: &Ctx<'_>, algorithm: &str, format: &str) -> Result<T> {
21 Err(DOMException::not_supported_error(
22 ctx,
23 ["Export of ", algorithm, " as ", format, " is not supported"].concat(),
24 ))
25}
26
27pub enum ExportOutput<'js> {

Callers 4

export_rawFunction · 0.85
export_pkcs8Function · 0.85
export_spkiFunction · 0.85
export_jwkFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected