Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/derivation key #71

Merged
merged 2 commits into from
Feb 12, 2024
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 src/api/transit/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub struct CreateKeyRequest {
/// Specifies if key derivation is to be used. If enabled, all
/// encrypt/decrypt requests to this named key must provide a context which
/// is used for key derivation.
pub derive: Option<bool>,
pub derived: Option<bool>,
/// Enables keys to be exportable. This allows for all the valid keys in the
/// key ring to be exported. Once set, this cannot be disabled.
pub exportable: Option<bool>,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
//! ## Installation
//!
//! Add vaultrs as a dependency to your cargo.toml:
//! ```ignore
//! ```toml
//! [dependencies]
//! vaultrs = "0.7.0"
//! ```
Expand Down
4 changes: 2 additions & 2 deletions tests/transit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod key {
&endpoint.keys.export,
Some(
CreateKeyRequest::builder()
.derive(true)
.derived(true)
.exportable(true)
.allow_plaintext_backup(true)
.key_type(KeyType::Aes256Gcm96)
Expand All @@ -83,7 +83,7 @@ mod key {
&endpoint.keys.signing,
Some(
CreateKeyRequest::builder()
.derive(true)
.derived(true)
.key_type(KeyType::Ed25519),
),
)
Expand Down