Commit graph

76 commits

Author SHA1 Message Date
Rodolphe Bréard
59c36b0ebe Rename the parsing errors using the module name 2024-02-25 11:46:08 +01:00
Rodolphe Bréard
16d4e19617 Parse the stored encrypted data 2024-02-25 11:41:30 +01:00
Rodolphe Bréard
9df9fa6bf5 Use a custom result type 2024-02-17 20:47:07 +01:00
Rodolphe Bréard
4ddc0413ec Add cargo deny 2024-02-17 20:27:05 +01:00
Rodolphe Bréard
14e2fc2ac6 Implement encryption 2024-02-17 20:26:45 +01:00
Rodolphe Bréard
cfdfcec03e Add some tests 2024-02-17 17:58:42 +01:00
Rodolphe Bréard
f3c6dee007 Move the canonicalize function to a dedicated module 2024-02-17 17:12:16 +01:00
Rodolphe Bréard
a553821ed8 Remove an useless mut 2024-02-17 16:49:50 +01:00
Rodolphe Bréard
65796a2c91 Refactor the context canonicalization 2024-02-17 16:29:54 +01:00
Rodolphe Bréard
d679546331 Derive the key 2024-02-15 23:45:21 +01:00
Rodolphe Bréard
3b91abb1c1 Test get_latest_ikm_empty on an empty IKM list 2024-02-15 19:02:39 +01:00
Rodolphe Bréard
5cd3969b5b Set the default IKM duration to 20 years 2024-02-15 18:56:52 +01:00
Rodolphe Bréard
d8d867bb1e Expose the encryption and decryption interfaces 2024-02-15 18:47:36 +01:00
Rodolphe Bréard
f662e47690 Add the get_ikm_by_id method to the IKM 2024-02-15 18:38:24 +01:00
Rodolphe Bréard
ba08aa44f9 Add the get_latest_ikm method to the IKM 2024-02-15 18:37:59 +01:00
Rodolphe Bréard
cc97193d3a Expose the IKM to the crate 2024-02-15 18:21:43 +01:00
Rodolphe Bréard
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
Rodolphe Bréard
60b91ffbe9 Add the encryption and ikm-management features 2024-02-15 12:37:14 +01:00
Rodolphe Bréard
9984d528e2 Remove the useless Ok(?) 2024-02-15 11:48:13 +01:00
Rodolphe Bréard
1e4a875d8f Prevent the crate to be used by accident 2024-02-15 11:09:22 +01:00
Rodolphe Bréard
b99746bd65 Improve the error management 2024-02-15 10:56:21 +01:00
Rodolphe Bréard
32eba4345f Add a cryptographic scheme to the IKM 2024-02-15 10:00:06 +01:00
Rodolphe Bréard
dcefc43efd Update the FAQ 2024-02-14 23:11:26 +01:00
Rodolphe Bréard
a83faf6a7a Add basic IKM management 2024-02-14 23:11:00 +01:00
Rodolphe Bréard
3d4cb981e7 Add the description in the README 2024-02-14 19:22:04 +01:00
Rodolphe Bréard
62b749744c First commit 2024-02-14 18:16:45 +01:00