schannel::schannel_cred

Enum Algorithm

Source
#[non_exhaustive]
#[repr(u32)]
pub enum Algorithm {
Show 33 variants Aes = 26_129, Aes128 = 26_126, Aes192 = 26_127, Aes256 = 26_128, AgreedkeyAny = 43_523, CylinkMek = 26_124, Des = 26_113, Desx = 26_116, DhEphem = 43_522, DhSf = 43_521, DssSign = 8_704, Ecdh = 43_525, EcdhEphem = 44_550, Ecdsa = 8_707, HashReplaceOwf = 32_779, HughesMd5 = 40_963, Hmac = 32_777, Mac = 32_773, Md2 = 32_769, Md4 = 32_770, Md5 = 32_771, NoSign = 8_192, Rc2 = 26_114, Rc4 = 26_625, Rc5 = 26_125, RsaKeyx = 41_984, RsaSign = 9_216, Sha1 = 32_772, Sha256 = 32_780, Sha384 = 32_781, Sha512 = 32_782, TripleDes = 26_115, TripleDes112 = 26_121,
}
Expand description

Algorithms supported by Schannel.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Aes = 26_129

Advanced Encryption Standard (AES).

§

Aes128 = 26_126

128 bit AES.

§

Aes192 = 26_127

192 bit AES.

§

Aes256 = 26_128

256 bit AES.

§

AgreedkeyAny = 43_523

Temporary algorithm identifier for handles of Diffie-Hellman–agreed keys.

§

CylinkMek = 26_124

An algorithm to create a 40-bit DES key that has parity bits and zeroed key bits to make its key length 64 bits.

§

Des = 26_113

DES encryption algorithm.

§

Desx = 26_116

DESX encryption algorithm.

§

DhEphem = 43_522

Diffie-Hellman ephemeral key exchange algorithm.

§

DhSf = 43_521

Diffie-Hellman store and forward key exchange algorithm.

§

DssSign = 8_704

DSA public key signature algorithm.

§

Ecdh = 43_525

Elliptic curve Diffie-Hellman key exchange algorithm.

§

EcdhEphem = 44_550

Ephemeral elliptic curve Diffie-Hellman key exchange algorithm.

§

Ecdsa = 8_707

Elliptic curve digital signature algorithm.

§

HashReplaceOwf = 32_779

One way function hashing algorithm.

§

HughesMd5 = 40_963

Hughes MD5 hashing algorithm.

§

Hmac = 32_777

HMAC keyed hash algorithm.

§

Mac = 32_773

MAC keyed hash algorithm.

§

Md2 = 32_769

MD2 hashing algorithm.

§

Md4 = 32_770

MD4 hashing algorithm.

§

Md5 = 32_771

MD5 hashing algorithm.

§

NoSign = 8_192

No signature algorithm..

§

Rc2 = 26_114

RC2 block encryption algorithm.

§

Rc4 = 26_625

RC4 stream encryption algorithm.

§

Rc5 = 26_125

RC5 block encryption algorithm.

§

RsaKeyx = 41_984

RSA public key exchange algorithm.

§

RsaSign = 9_216

RSA public key signature algorithm.

§

Sha1 = 32_772

SHA hashing algorithm.

§

Sha256 = 32_780

256 bit SHA hashing algorithm.

§

Sha384 = 32_781

384 bit SHA hashing algorithm.

§

Sha512 = 32_782

512 bit SHA hashing algorithm.

§

TripleDes = 26_115

Triple DES encryption algorithm.

§

TripleDes112 = 26_121

Two-key triple DES encryption with effective key length equal to 112 bits.

Trait Implementations§

Source§

impl Clone for Algorithm

Source§

fn clone(&self) -> Algorithm

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Algorithm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Algorithm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.