Commit graph

41 commits

Author SHA1 Message Date
bb951c3726 Fix feature name 2024-11-13 19:27:13 +01:00
44cc9179ca Add a version number for exported IKML and encrypted data 2024-06-19 17:08:11 +02:00
8162fadf19 Hide schemes behind features 2024-04-20 11:48:58 +02:00
a5a917cfe2 Add a few assert 2024-04-07 22:46:14 +02:00
1ebbef58e2 Add missing ? 2024-04-07 22:39:39 +02:00
ba5c5d7dd0 Return the IKM id when adding, revoking or deleting an IKM 2024-04-07 22:32:55 +02:00
67f1c247cc Have .delete_ikm() return an error if the requested id is not found 2024-04-07 22:23:25 +02:00
af2c83f934 Set DEFAULT_SCHEME public 2024-04-07 22:17:01 +02:00
51d543a064 Add more documentation 2024-04-07 22:10:40 +02:00
224171c6d5 Allow to encrypt at a specific timestamp 2024-04-07 12:22:04 +02:00
71647c31c5 Allow to spefify not_before and not_after when generating a custom IKM 2024-04-07 11:32:03 +02:00
c22756a2c0 Hide the InputKeyMaterial properties and add accessors 2024-04-07 11:20:01 +02:00
d47f68944a Rename created_at and expire_at as not_before and not_after 2024-04-07 11:12:23 +02:00
de9d4777aa Add some basic documentation 2024-04-05 00:17:01 +02:00
ca86747862 Add support for AES128-GCM using HKDF-SHA256 to derive keys 2024-03-24 12:16:54 +01:00
ae19a16531 Improve the context and IKM list APIs 2024-03-24 09:47:36 +01:00
47557fe350 Fix the features 2024-03-16 11:22:08 +01:00
94b1809ffa Do not use expired IKMs 2024-03-16 10:29:06 +01:00
230f867502 Add tests for the IKM list 2024-03-16 10:27:03 +01:00
a0bbd6bf00 Improve error display in tests 2024-03-02 11:05:56 +01:00
423476c987 Refactor the IKM storage format 2024-03-02 11:00:59 +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
6ceb598c04 Allow to delete an IKM 2024-02-25 15:28:08 +01:00
c6a3855847 Allow to revoke an IKM 2024-02-25 15:23:04 +01:00
58df7fb221 Add a type alias for the scheme serialize type 2024-02-25 12:03:06 +01:00
929d089e56 Add a type for the counter id 2024-02-25 11:57:04 +01:00
524b2993de Add a type for the IKM id 2024-02-25 11:53:52 +01:00
59c36b0ebe Rename the parsing errors using the module name 2024-02-25 11:46:08 +01:00
9df9fa6bf5 Use a custom result type 2024-02-17 20:47:07 +01:00
cfdfcec03e Add some tests 2024-02-17 17:58:42 +01:00
a553821ed8 Remove an useless mut 2024-02-17 16:49:50 +01:00
3b91abb1c1 Test get_latest_ikm_empty on an empty IKM list 2024-02-15 19:02:39 +01:00
f662e47690 Add the get_ikm_by_id method to the IKM 2024-02-15 18:38:24 +01:00
ba08aa44f9 Add the get_latest_ikm method to the IKM 2024-02-15 18:37:59 +01:00
cc97193d3a Expose the IKM to the crate 2024-02-15 18:21:43 +01:00
60b91ffbe9 Add the encryption and ikm-management features 2024-02-15 12:37:14 +01:00
9984d528e2 Remove the useless Ok(?) 2024-02-15 11:48:13 +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