Skip to content

Commit

Permalink
mgm: Generalize TDES logic to enable other algorithms
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Bowyer <gbowyer@fastmail.co.uk>
  • Loading branch information
str4d and GregBowyer committed Jan 4, 2025
1 parent 654cc41 commit 4df88c6
Show file tree
Hide file tree
Showing 8 changed files with 385 additions and 120 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ sha2 = "=0.11.0-pre.4"
x509-cert = { version = "=0.3.0-pre.0", features = [ "builder", "hazmat" ] }

[dependencies]
cipher = { version = "=0.5.0-pre.7", features = ["rand_core"] }
der = "=0.8.0-rc.1"
des = "=0.9.0-pre.2"
elliptic-curve = "=0.14.0-rc.1"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub use crate::{
chuid::ChuId,
config::Config,
error::{Error, Result},
mgm::{MgmAlgorithmId, MgmKey, MgmType},
mgm::{MgmAlgorithmId, MgmKey, MgmKey3Des, MgmKeyAlgorithm, MgmKeyOps, MgmType},
piv::Key,
policy::{PinPolicy, TouchPolicy},
reader::Context,
Expand Down
Loading

0 comments on commit 4df88c6

Please sign in to comment.