pub enum Algorithm {
Show 14 variants
HS256,
HS384,
HS512,
RS256,
RS384,
RS512,
PS256,
PS384,
PS512,
ES256,
ES384,
ES512,
ES256K,
EdDSA,
}Expand description
Algorithms that used to sign and verify content
Variants§
HS256
Sha-256 hash function based HMAC hash algotithm
HS384
Sha-384 hash function based HMAC hash algotithm
HS512
Sha-256 hash function based HMAC hash algotithm
RS256
Sha-256 based RSA algorithm
RS384
Sha-384 based RSA algorithm
RS512
Sha-512 based RSA algorithm
PS256
RSASSA-PSS using SHA-256
PS384
RSASSA-PSS using SHA-384
PS512
RSASSA-PSS using SHA-512
ES256
Elliptic curve with NistP256
ES384
Elliptic curve with NistP384
ES512
Elliptic curve with NistP512
ES256K
Elliptic curve with Secp256k1
EdDSA
Elliptic curve with Ed25519
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for Algorithm
impl FromWasmAbi for Algorithm
Source§impl IntoWasmAbi for Algorithm
impl IntoWasmAbi for Algorithm
Source§impl OptionFromWasmAbi for Algorithm
impl OptionFromWasmAbi for Algorithm
Source§impl OptionIntoWasmAbi for Algorithm
impl OptionIntoWasmAbi for Algorithm
Source§impl TryFromJsValue for Algorithm
impl TryFromJsValue for Algorithm
Source§impl VectorFromWasmAbi for Algorithm
impl VectorFromWasmAbi for Algorithm
Source§impl VectorIntoWasmAbi for Algorithm
impl VectorIntoWasmAbi for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.