Struct cryptoki::object::KeyType

source ·
pub struct KeyType { /* private fields */ }
Expand description

Key type

Implementations§

source§

impl KeyType

source

pub const RSA: KeyType = _

RSA key

source

pub const DSA: KeyType = _

DSA key

source

pub const DH: KeyType = _

DH key

source

pub const EC: KeyType = _

EC key

source

pub const X9_42_DH: KeyType = _

X9_42_DH key

source

pub const KEA: KeyType = _

KEA key

source

pub const GENERIC_SECRET: KeyType = _

Generic Secret (hmac) key

source

pub const RC2: KeyType = _

RC2 key

source

pub const RC4: KeyType = _

RC4 key

source

pub const DES: KeyType = _

DES key

source

pub const DES2: KeyType = _

DES2 key

source

pub const DES3: KeyType = _

DES3 secret Note that DES3 is deprecated. See https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf section 2, p. 6.

source

pub const CAST: KeyType = _

CAST key

source

pub const CAST3: KeyType = _

CAST3 key

source

pub const CAST128: KeyType = _

CAST128 key

source

pub const RC5: KeyType = _

RC5 key

source

pub const IDEA: KeyType = _

IDEA key

source

pub const SKIPJACK: KeyType = _

SKIPJACK key

source

pub const BATON: KeyType = _

BATON key

source

pub const JUNIPER: KeyType = _

JUNIPER key

source

pub const CDMF: KeyType = _

CDMF key

source

pub const AES: KeyType = _

AES key

source

pub const BLOWFISH: KeyType = _

BLOWFISH key

source

pub const TWOFISH: KeyType = _

TWOFISH key

source

pub const SECURID: KeyType = _

SECURID key

source

pub const HOTP: KeyType = _

HOTP key

source

pub const ACTI: KeyType = _

ACTI key

source

pub const CAMELLIA: KeyType = _

CAMELLIA key

source

pub const ARIA: KeyType = _

ARIA key

source

pub const MD5_HMAC: KeyType = _

MD5 HMAC key

source

pub const SHA_1_HMAC: KeyType = _

SHA1 HMAC key

source

pub const RIPEMD128_HMAC: KeyType = _

RIPEMD128 HMAC key

source

pub const RIPEMD160_HMAC: KeyType = _

RIPEMD160 HMAC key

source

pub const SHA256_HMAC: KeyType = _

SHA256 HMAC key

source

pub const SHA384_HMAC: KeyType = _

SHA384 HMAC key

source

pub const SHA512_HMAC: KeyType = _

SHA512 HMAC key

source

pub const SHA224_HMAC: KeyType = _

SHA224 HMAC key

source

pub const SEED: KeyType = _

SEED key

source

pub const GOSTR3410: KeyType = _

GOSTR3410 key

source

pub const GOSTR3411: KeyType = _

GOSTR3411 key

source

pub const GOST28147: KeyType = _

GOST28147 key

source

pub const EC_EDWARDS: KeyType = _

EC edwards key

source

pub const EC_MONTGOMERY: KeyType = _

EC montgomery key

Trait Implementations§

source§

impl Clone for KeyType

source§

fn clone(&self) -> KeyType

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 KeyType

source§

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

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

impl Deref for KeyType

§

type Target = u64

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Display for KeyType

source§

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

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

impl From<KeyType> for CK_KEY_TYPE

source§

fn from(key_type: KeyType) -> Self

Converts to this type from the input type.
source§

impl PartialEq for KeyType

source§

fn eq(&self, other: &KeyType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u64> for KeyType

§

type Error = Error

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

fn try_from(key_type: CK_KEY_TYPE) -> Result<Self>

Performs the conversion.
source§

impl Copy for KeyType

source§

impl Eq for KeyType

source§

impl StructuralPartialEq for KeyType

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> 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,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.