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
158 changes: 147 additions & 11 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ repository = "https://github.com/cipherstash/cipherstash-dynamodb"
documentation = "https://docs.rs/cipherstash-dynamodb"
readme = "README.md"
description = "CipherStash SDK for searchable, in-use encryption for DynamoDB"
version = "0.8.1"
version = "0.8.2"
edition = "2021"
authors = ["CipherStash <[email protected]>"]
keywords = ["cryptography", "security", "databases", "encryption", "dynamodb"]
categories = ["cryptography", "database"]

[dependencies]
cipherstash-client = { version = "0.12" }
cipherstash-client = { version = ">=0.12.4" }
cipherstash-dynamodb-derive = { version = "0.8", path = "cipherstash-dynamodb-derive" }

aws-sdk-dynamodb = "1.3.0"
Expand Down
6 changes: 3 additions & 3 deletions src/crypto/attrs/flattened_encrypted_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::{
};
use cipherstash_client::{
credentials::{service_credentials::ServiceToken, Credentials},
encryption::{Encryption, EncryptionError},
zero_kms::EncryptedRecord,
encryption::Encryption,
zerokms::EncryptedRecord,
};
use itertools::Itertools;

Expand Down Expand Up @@ -61,7 +61,7 @@ impl FlattenedEncryptedAttributes {
record
.to_vec()
.map(|data| (FlattenedAttrName::parse(&record.descriptor), data))
.map_err(EncryptionError::from)
.map_err(|_| SealError::AssertionFailed("Decryption failed".to_string()))
})
.fold_ok(
Ok(TableAttributes::new()),
Expand Down
9 changes: 5 additions & 4 deletions src/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use cipherstash_client::{
compound_indexer::{CompoundIndex, ExactIndex},
Encryption, EncryptionError, Plaintext, TypeParseError,
},
vitur_client::DecryptError,
zerokms::Error as ZeroKmsError,
};
use miette::Diagnostic;
use std::borrow::Cow;
Expand Down Expand Up @@ -49,10 +49,11 @@ pub enum SealError {

// Note that we don't expose the specific error type here
// so as to avoid leaking any information
#[error("Encryption failed")]
#[error(transparent)]
EncryptionError(#[from] EncryptionError),
#[error("Decryption failed")]
DecryptionError(#[from] DecryptError),

#[error(transparent)]
ZeroKmsError(#[from] ZeroKmsError),
}

#[derive(Error, Debug)]
Expand Down
Loading
Loading