#[repr(u32)]pub enum Opcode {
Show 29 variants
Ping = 1,
PsaGenerateKey = 2,
PsaDestroyKey = 3,
PsaSignHash = 4,
PsaVerifyHash = 5,
PsaImportKey = 6,
PsaExportPublicKey = 7,
ListProviders = 8,
ListOpcodes = 9,
PsaAsymmetricEncrypt = 10,
PsaAsymmetricDecrypt = 11,
PsaExportKey = 12,
PsaGenerateRandom = 13,
ListAuthenticators = 14,
PsaHashCompute = 15,
PsaHashCompare = 16,
PsaAeadEncrypt = 17,
PsaAeadDecrypt = 18,
PsaRawKeyAgreement = 19,
PsaCipherEncrypt = 20,
PsaCipherDecrypt = 21,
PsaSignMessage = 24,
PsaVerifyMessage = 25,
ListKeys = 26,
ListClients = 27,
DeleteClient = 28,
AttestKey = 30,
PrepareKeyAttestation = 31,
CanDoCrypto = 32,
}
Expand description
Listing of available operations and their associated opcode.
Passed in headers as opcode
. Check the
Operations
page of the book for more information.
Variants§
Ping = 1
Ping operation
PsaGenerateKey = 2
PsaGenerateKey operation
PsaDestroyKey = 3
PsaDestroyKey operation
PsaSignHash = 4
PsaSignHash operation
PsaVerifyHash = 5
PsaVerifyHash operation
PsaImportKey = 6
PsaImportKey operation
PsaExportPublicKey = 7
PsaExportPublicKey operation
ListProviders = 8
ListProviders operation
ListOpcodes = 9
ListOpcodes operation
PsaAsymmetricEncrypt = 10
PsaAsymmetricEncrypt operation
PsaAsymmetricDecrypt = 11
PsaAsymmetricDecrypt operation
PsaExportKey = 12
PsaExportKey operation
PsaGenerateRandom = 13
PsaGenerateRandom operation
ListAuthenticators = 14
ListAuthenticators operation
PsaHashCompute = 15
PsaHashCompute operation
PsaHashCompare = 16
PsaHashCompare operation
PsaAeadEncrypt = 17
PsaAeadEncrypt
PsaAeadDecrypt = 18
PsaAeadDecrypt
PsaRawKeyAgreement = 19
PsaRawKeyAgreement operation
PsaCipherEncrypt = 20
PsaCipherEncrypt
PsaCipherDecrypt = 21
PsaCipherDecrypt
PsaSignMessage = 24
PsaSignMessage operation
PsaVerifyMessage = 25
PsaVerifyMessage operation
ListKeys = 26
ListKeys operation
ListClients = 27
ListClients operation (admin operation)
DeleteClient = 28
DeleteClient operation (admin operation)
AttestKey = 30
AttestKey operation
PrepareKeyAttestation = 31
PrepareKeyAttestation operation
CanDoCrypto = 32
CanDoCrypto operation
Implementations§
Trait Implementations§
Source§impl FromPrimitive for Opcode
impl FromPrimitive for Opcode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more