Skip to content

Commit

Permalink
Minor language improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 28, 2023
1 parent 3a999c9 commit bd5ece8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ impl Display for ObjectCapability {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
ObjectCapability::GetOpaque => write!(f, "Read Opaque Objects"),
ObjectCapability::PutOpaque => write!(f, "Write Opaque Objects"),
ObjectCapability::PutAuthenticationKey => write!(f, "Write Authentication Key Objects"),
ObjectCapability::PutAsymmetricKey => write!(f, "Write Asymmetric Key Objects"),
ObjectCapability::PutOpaque => write!(f, "Import Opaque Objects"),
ObjectCapability::PutAuthenticationKey => write!(f, "Import Authentication Key Objects"),
ObjectCapability::PutAsymmetricKey => write!(f, "Import Asymmetric Key Objects"),
ObjectCapability::GenerateAsymmetricKey => write!(f, "Generate Asymmetric Key Objects"),
ObjectCapability::SignPkcs => write!(f, "Compute signatures using RSA-PKCS1v1.5"),
ObjectCapability::SignPss => write!(f, "Compute digital signatures using using RSA-PSS"),
Expand All @@ -467,22 +467,22 @@ impl Display for ObjectCapability {
ObjectCapability::DeriveEcdh => write!(f, "Perform ECDH"),
ObjectCapability::ExportWrapped => write!(f, "Export other Objects under wrap"),
ObjectCapability::ImportWrapped => write!(f, "Import wrapped Objects"),
ObjectCapability::PutWrapKey => write!(f, "Write Wrap Key Objects"),
ObjectCapability::PutWrapKey => write!(f, "Import Wrap Key Objects"),
ObjectCapability::GenerateWrapKey => write!(f, "Generate Wrap Key Objects"),

ObjectCapability::ExportableUnderWrap => write!(f, "Mark an Object as exportable under wrap"),
ObjectCapability::SetOption => write!(f, "Write device-global options"),
ObjectCapability::SetOption => write!(f, "Set device-global options"),
ObjectCapability::GetOption => write!(f, "Read device-global options"),
ObjectCapability::GetPseudoRandom => write!(f, "Extract random bytes"),
ObjectCapability::PutHmacKey => write!(f, "Write HMAC Key Objects"),
ObjectCapability::PutHmacKey => write!(f, "Import HMAC Key Objects"),
ObjectCapability::GenerateHmacKey => write!(f, "Generate HMAC Key Objects"),
ObjectCapability::SignHmac => write!(f, "Compute HMAC of data"),
ObjectCapability::VerifyHmac => write!(f, "Verify HMAC of data"),

ObjectCapability::GetLogEntries => write!(f, "Read the Log Store"),
ObjectCapability::SignSshCertificate => write!(f, "Sign SSH certificates"),
ObjectCapability::GetTemplate => write!(f, "Read Template Objects"),
ObjectCapability::PutTemplate => write!(f, "Write Template Objects"),
ObjectCapability::PutTemplate => write!(f, "Import Template Objects"),
ObjectCapability::ResetDevice => write!(f, "Perform a factory reset on the device"),
ObjectCapability::DecryptOtp => write!(f, "Decrypt OTP"),
ObjectCapability::CreateOtpAead => write!(f, "Create OTP AEAD"),
Expand All @@ -491,7 +491,7 @@ impl Display for ObjectCapability {
ObjectCapability::RewrapFromOtpAeadKey => write!(f, "Rewrap AEADs from one OTP AEAD Key Object to another"),
ObjectCapability::RewrapToOtpAeadKey => write!(f, "Rewrap AEADs to one OTP AEAD Key Object from another"),
ObjectCapability::SignAttestationCertificate => write!(f, "Attest properties of Asymmetric Key Objects"),
ObjectCapability::PutOtpAeadKey => write!(f, "Write OTP AEAD Key Objects"),
ObjectCapability::PutOtpAeadKey => write!(f, "Import OTP AEAD Key Objects"),
ObjectCapability::GenerateOtpAeadKey => write!(f, "Generate OTP AEAD Key Objects"),
ObjectCapability::WrapData => write!(f, "Wrap user-provided data"),
ObjectCapability::UnwrapData => write!(f, "Unwrap user-provided data"),
Expand Down

0 comments on commit bd5ece8

Please sign in to comment.