navajo 0.0.4

cryptographic APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

use super::{Algorithm, Method};

/// Metadata for ciphertext.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub struct CiphertextInfo {
    pub key_id: u32,
    #[serde(rename = "alg")]
    pub algorithm: Algorithm,
    pub method: Method,
}