Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ base16ct = { version = "1.0.0", features = ["alloc"] }
base32ct = { version = "0.3.1", features = ["alloc"] }
base64ct = { version = "1.8.3", features = ["alloc"] }
rand = "0.10.1"
openssl = { version = "0.10.78" }
openssl = { version = "0.10.79" }
openssl-sys = { version = "0.9.109" }
cryptoki = "0.12"
yubikey = "0.8"
Expand Down
7 changes: 4 additions & 3 deletions crates/rite-model/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,10 @@ pub enum ActionType {
///
/// Reads `data` and exactly one of `encryption_key` or `recipient`. With
/// `encryption_key`, the backend generates a content-encryption key and
/// protects it with that key. With `recipient`, an RSA-2048 or RSA-4096
/// public key held elsewhere, the backend supplies the content-encryption
/// key's random bytes, which are protected with RSAES-OAEP over SHA-256.
/// protects it with that key. With `recipient`, a public key held
/// elsewhere, the backend supplies the content-encryption key's random
/// bytes, which are protected with RSAES-OAEP over SHA-256 for an RSA-2048
/// or RSA-4096 key, or with ECDH and AES key wrap for a P-256 or P-384 key.
/// The data itself is not sent to the backend.
EncryptData,
/// Decrypt data encrypted by `encrypt_data`, or a CMS file sealed
Expand Down
610 changes: 525 additions & 85 deletions crates/rite-openssl/src/backend.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/rite-openssl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
mod backend;
mod content;

pub use backend::{OpenSslBackend, data_key_for_recipient, verify_signature};
pub use backend::{OpenSslBackend, open_key_agreement, recipient_info_for, verify_signature};
pub use content::{SealedContent, open_content, seal_content};

/// Whether this build can generate ML-KEM keys and wrap to them.
Expand Down
Loading