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