Menu

#49 Bad key header when unwrapping a key.

Medium_Severity
open
nobody
5
2001-05-29
2001-05-29
No

Hello,
I have generated a DES key and a RSA key pair with
the EAY CSP.

I wrapped the DES key with RSA and I stored only the
KeyData.

Then, I build an empty CSSM_WRAP_KEY with the
BlobType, Format, AlgorithmId, WrapAlgorithmId,
WrapMode and the wrapped key data.
When I try to unwrap the key, the key header is not
filled with the LogicalKeySizeInBits.

I tried with another CSP which is filling the key
header correctly.

Regards,
Nicolas

Discussion