[PATCH 1/6] bcrypt: Add support for PUBLICKEY blob types.
Hans Leidekker
hans at codeweavers.com
Wed Mar 2 03:26:29 CST 2022
On Tue, 2022-03-01 at 19:34 -0300, Santino Mazza wrote:
> Signed-off-by: Santino Mazza <mazzasantino1206 at gmail.com>
> ---
> dlls/bcrypt/bcrypt_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/bcrypt/bcrypt_main.c b/dlls/bcrypt/bcrypt_main.c
> index 9fb9b6adf87..73071d70992 100644
> --- a/dlls/bcrypt/bcrypt_main.c
> +++ b/dlls/bcrypt/bcrypt_main.c
> @@ -1404,7 +1404,7 @@ static NTSTATUS key_import_pair( struct algorithm *alg, const WCHAR *type, BCRYP
> *ret_key = key;
> return STATUS_SUCCESS;
> }
> - else if (!wcscmp( type, BCRYPT_RSAPUBLIC_BLOB ))
> + else if (!wcscmp( type, BCRYPT_RSAPUBLIC_BLOB ) || !wcscmp( type, BCRYPT_PUBLIC_KEY_BLOB ))
> {
> BCRYPT_RSAKEY_BLOB *rsa_blob = (BCRYPT_RSAKEY_BLOB *)input;
According to the documentation BCRYPT_PUBLIC_KEY_BLOB is not necessarily an RSA
key.
More information about the wine-devel
mailing list