aboutsummaryrefslogtreecommitdiff
path: root/lockchain-core/src/crypto
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-06-10 20:32:38 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-06-10 20:32:38 +0200
commit28b2a6b9eda45946ffd52020ed4f772ad18b9616 (patch)
tree2e9e7194d035efe3fc4ee0b6fe1532b1b07f9473 /lockchain-core/src/crypto
parent9a30f0d6036dd8c15cffce11830180fb02529887 (diff)
Removing User & Login traits from core, adding a metadata store to take their place
Diffstat (limited to 'lockchain-core/src/crypto')
-rw-r--r--lockchain-core/src/crypto/data.rs8
-rw-r--r--lockchain-core/src/crypto/utils.rs1
2 files changed, 5 insertions, 4 deletions
diff --git a/lockchain-core/src/crypto/data.rs b/lockchain-core/src/crypto/data.rs
index b87f0dc..2ee8a9a 100644
--- a/lockchain-core/src/crypto/data.rs
+++ b/lockchain-core/src/crypto/data.rs
@@ -1,10 +1,10 @@
use traits::AutoEncoder;
-/// Represents some encrypted packed data
+/// Representation of encrypted data as an enecoded format
///
-/// Includes nonce, vault iv and blob. This abstraction
-/// is important to be able to send encrypted records across
-/// a network.
+/// Includes all cryptographic state primitives that are
+/// required to send the data over a network and decrypt on
+/// the other side of a pipe.
#[derive(Serialize, Deserialize)]
pub struct PackedData {
pub nonce: Vec<u8>,
diff --git a/lockchain-core/src/crypto/utils.rs b/lockchain-core/src/crypto/utils.rs
index a8ae7c0..192703f 100644
--- a/lockchain-core/src/crypto/utils.rs
+++ b/lockchain-core/src/crypto/utils.rs
@@ -86,6 +86,7 @@ pub mod random {
return vec;
}
+
/// A small utility wraper around bcrypt to allow
/// easy password checking.
pub mod passwd {