diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index d42face6e1d..5a4ce2fcc33 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -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;