enum SupportedAlgorithm {
Show 22 variants
RsassaPkcs1V1_5,
RsaPss,
RsaOaep,
Ecdsa,
Ecdh,
Ed25519,
X25519,
AesCtr,
AesCbc,
AesGcm,
AesKw,
Hmac,
Sha(ShaAlgorithm),
Hkdf,
Pbkdf2,
MlKem(MlKemAlgorithm),
MlDsa(MlDsaAlgorithm),
AesOcb,
ChaCha20Poly1305,
Sha3(Sha3Algorithm),
CShake(CShakeAlgorithm),
Argon2(Argon2Algorithm),
}Expand description
Variants§
RsassaPkcs1V1_5
RsaPss
RsaOaep
Ecdsa
Ecdh
Ed25519
X25519
AesCtr
AesCbc
AesGcm
AesKw
Hmac
Sha(ShaAlgorithm)
Hkdf
Pbkdf2
MlKem(MlKemAlgorithm)
MlDsa(MlDsaAlgorithm)
AesOcb
ChaCha20Poly1305
Sha3(Sha3Algorithm)
CShake(CShakeAlgorithm)
Argon2(Argon2Algorithm)
Implementations§
Source§impl SupportedAlgorithm
impl SupportedAlgorithm
fn as_str(&self) -> &'static str
fn from_ignore_case(alg_name: &str) -> Result<SupportedAlgorithm, Error>
Sourcefn support(&self, op: Operation) -> Result<ParameterType, Error>
fn support(&self, op: Operation) -> Result<ParameterType, Error>
Check whether the cryptographic algorithm supports the specified operation. If the algorithm supports the operation, then return the desired IDL dictionary type for the operation of the algorithm. Otherwise, throw a NotSupportedError.
This function is also used as the “define an algorithm” algorithm, by adding algorithms,
operations and desired IDL dictionary types, to the match block.
https://w3c.github.io/webcrypto/#concept-define-an-algorithm
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SupportedAlgorithm
impl RefUnwindSafe for SupportedAlgorithm
impl Send for SupportedAlgorithm
impl Sync for SupportedAlgorithm
impl Unpin for SupportedAlgorithm
impl UnwindSafe for SupportedAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert