Commit graph

24 commits

Author SHA1 Message Date
5803e2971d Remove the protection feature 2024-03-17 14:38:29 +01:00
b8539602f0 Move the context objects to a dedicated module 2024-03-17 14:31:01 +01:00
749dc03f71 Replace the encrypt and decrypt function by the CipherBox struct 2024-03-17 14:23:03 +01:00
47557fe350 Fix the features 2024-03-16 11:22:08 +01:00
d922297e91 Use the DataContext type 2024-03-09 17:29:55 +01:00
35400b7278 Set a default key periodicity of 1 year 2024-03-09 12:40:28 +01:00
4e40314c67 Reduce the default IKM duration to 10 years and document it 2024-03-02 14:55:57 +01:00
bdfaf8adff Fix the features 2024-03-02 14:55:14 +01:00
5da1e3f5b6 Add a dedicated type for the key context 2024-03-02 14:53:38 +01:00
15198f5286 Implement deref on the IKM list, mainly to allow iteration over IKMs 2024-02-25 18:14:13 +01:00
395703dae4 Expose the IKM 2024-02-25 18:08:00 +01:00
14e2fc2ac6 Implement encryption 2024-02-17 20:26:45 +01:00
f3c6dee007 Move the canonicalize function to a dedicated module 2024-02-17 17:12:16 +01:00
65796a2c91 Refactor the context canonicalization 2024-02-17 16:29:54 +01:00
d679546331 Derive the key 2024-02-15 23:45:21 +01:00
5cd3969b5b Set the default IKM duration to 20 years 2024-02-15 18:56:52 +01:00
d8d867bb1e Expose the encryption and decryption interfaces 2024-02-15 18:47:36 +01:00
2e4e467f47 Expose the ikm and scheme modules only if either encryption or ikm-management features are enabled 2024-02-15 18:17:49 +01:00
60b91ffbe9 Add the encryption and ikm-management features 2024-02-15 12:37:14 +01:00
1e4a875d8f Prevent the crate to be used by accident 2024-02-15 11:09:22 +01:00
b99746bd65 Improve the error management 2024-02-15 10:56:21 +01:00
32eba4345f Add a cryptographic scheme to the IKM 2024-02-15 10:00:06 +01:00
a83faf6a7a Add basic IKM management 2024-02-14 23:11:00 +01:00
62b749744c First commit 2024-02-14 18:16:45 +01:00