feat: v0.2.3, supports p384

This commit is contained in:
2023-10-10 00:59:59 +08:00
parent 308c6561bc
commit a64649451c
8 changed files with 71 additions and 32 deletions

View File

@@ -56,6 +56,8 @@ pub enum TinyEncryptEnvelopType {
Age,
#[serde(rename = "ecdh")]
Ecdh,
#[serde(rename = "ecdh-p384")]
EcdhP384,
#[serde(rename = "kms")]
Kms,
}
@@ -70,6 +72,7 @@ impl TinyEncryptEnvelopType {
TinyEncryptEnvelopType::PgpX25519 => "pgp-x25519",
TinyEncryptEnvelopType::Age => "age",
TinyEncryptEnvelopType::Ecdh => "ecdh",
TinyEncryptEnvelopType::EcdhP384 => "ecdh-p384",
TinyEncryptEnvelopType::Kms => "kms",
}
}