Pol Henarejos
7f6bcdfb11
Addded fast crc32 checksum for DKEK storage.
...
It is for checking the integrity of the DKEK and thus, the scret keys, as they are encrypted with DKEK.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-03 15:51:52 +02:00
Pol Henarejos
39ab429c88
Adding key domain to key generation, wrap, unwrap, export and import.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-30 16:13:51 +02:00
Pol Henarejos
4fa8d4ba64
Fix warnings
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-27 20:58:45 +02:00
Pol Henarejos
a062b92dad
Replacing low level data access to high level routines.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-24 00:30:42 +02:00
Pol Henarejos
89d40b7c94
Extending DKEK and key storage to key domains.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-24 00:29:19 +02:00
Pol Henarejos
7b5cb48dcc
Added key domains for device initialization and dkek import.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-05-23 20:06:06 +02:00
Pol Henarejos
522860f736
Splitting the core onto another repo, which can be reused by other smart applications.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-04-19 18:39:52 +02:00
Pol Henarejos
4400eba974
Fix returning kcv
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-31 19:31:02 +02:00
Pol Henarejos
bfc12d6856
Renaming files
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-31 18:27:00 +02:00
Pol Henarejos
7410498df1
Fix with RSA CRT import mode (keytype 6).
...
In RSA CRT import, the N parameter shall not be imported. Otherwise, mbedtls will fail (it is deduced from N=PQ).
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-31 00:24:50 +02:00
Pol Henarejos
7aee18110e
Fix kmac and kenc computation.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-30 23:59:06 +02:00
Pol Henarejos
7aca7b323a
Fix loading kcv, kenc and kmac.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-30 23:21:23 +02:00
Pol Henarejos
4651a0e224
Adding AES wrapping/unwrapping
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-30 01:33:54 +02:00
Pol Henarejos
d018e3b9b9
Adding RSA and EC wrap/unwrap, compatible with SC HSM wrap format.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-30 00:59:37 +02:00
Pol Henarejos
1c272842a7
Adding dkek_decode_key for unwrapping.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-29 20:18:08 +02:00
Pol Henarejos
e7d8695394
Added length checks.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-29 19:16:15 +02:00
Pol Henarejos
6876edea5a
Some fix in encode key
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-29 19:06:00 +02:00
Pol Henarejos
2e655d6341
Fixes with AES encryption
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-29 18:25:47 +02:00
Pol Henarejos
5eb74d8ca3
Adding encode_key with dkek (for wrapping).
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-29 13:45:07 +02:00
Pol Henarejos
047a443536
Adding dkek procedures to wrap/unwrap.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-03-28 17:38:15 +02:00