feat: update comments

This commit is contained in:
2023-11-05 00:19:39 +08:00
parent e6b1ec8a86
commit 699474cad4

View File

@@ -65,16 +65,22 @@ pub struct TinyEncryptEnvelop {
/// NOTICE: Kms and Age is not being supported in the future
#[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq, PartialOrd)]
pub enum TinyEncryptEnvelopType {
// OpenPGP RSA
#[serde(rename = "pgp")]
Pgp,
// OpenPGP X25519
#[serde(rename = "pgp-x25519")]
PgpX25519,
// Age, tiny-encrypt-rs is not supported
#[serde(rename = "age")]
Age,
// ECDH P256
#[serde(rename = "ecdh")]
Ecdh,
// ECDH P384
#[serde(rename = "ecdh-p384")]
EcdhP384,
// KMS, tiny-encrypt-rs is not supported
#[serde(rename = "kms")]
Kms,
}