feat: add TinyEncryptConfig
This commit is contained in:
12
src/spec.rs
12
src/spec.rs
@@ -2,6 +2,18 @@ use serde::{Deserialize, Serialize};
|
|||||||
|
|
||||||
pub const TINY_ENCRYPT_VERSION: &'static str = "1.0";
|
pub const TINY_ENCRYPT_VERSION: &'static str = "1.0";
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
|
pub struct TinyEncryptConfig {
|
||||||
|
// card cli is not used by tiny-encrypt-rs
|
||||||
|
pub card_cli: String,
|
||||||
|
pub default_key_name: String,
|
||||||
|
pub local_private_key_pem_challenge: String,
|
||||||
|
pub local_private_key_pem_encrypted: String,
|
||||||
|
pub local_public_key_pem: String,
|
||||||
|
pub pgp_encrypt_public_key_pem: Option<String>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct TinyEncryptMeta {
|
pub struct TinyEncryptMeta {
|
||||||
|
|||||||
Reference in New Issue
Block a user