From 699474cad4f78049b59801fac2b5235dfdced063 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 5 Nov 2023 00:19:39 +0800 Subject: [PATCH] feat: update comments --- src/spec.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spec.rs b/src/spec.rs index 4ca9d42..6303ff9 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -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, }