rsaenh: Public keys should be exported with the CALG_RSA_KEYX alg_id.
This commit is contained in:
parent
06fbe6012f
commit
c562957375
|
@ -2195,6 +2195,8 @@ BOOL WINAPI RSAENH_CPExportKey(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTKEY hPubK
|
|||
pBlobHeader->bVersion = CUR_BLOB_VERSION;
|
||||
pBlobHeader->reserved = 0;
|
||||
pBlobHeader->aiKeyAlg = pCryptKey->aiAlgid;
|
||||
if (pBlobHeader->aiKeyAlg == CALG_RSA_SIGN)
|
||||
pBlobHeader->aiKeyAlg = CALG_RSA_KEYX;
|
||||
|
||||
pRSAPubKey->magic = RSAENH_MAGIC_RSA1;
|
||||
pRSAPubKey->bitlen = pCryptKey->dwKeyLen << 3;
|
||||
|
|
Loading…
Reference in New Issue