Commit 3fb2a5d5 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

bcrypt: Add wow64 support for PSS padding.

parent a554ff21
......@@ -2305,6 +2305,7 @@ struct key32
union padding
{
BCRYPT_PKCS1_PADDING_INFO pkcs1;
BCRYPT_PSS_PADDING_INFO pss;
};
union padding32
......@@ -2313,6 +2314,11 @@ union padding32
{
PTR32 pszAlgId;
} pkcs1;
struct
{
PTR32 pszAlgId;
ULONG cbSalt;
} pss;
};
static union padding *get_padding( union padding32 *padding32, union padding *padding, ULONG flags)
......@@ -2324,6 +2330,10 @@ static union padding *get_padding( union padding32 *padding32, union padding *pa
case BCRYPT_PAD_PKCS1:
padding->pkcs1.pszAlgId = ULongToPtr( padding32->pkcs1.pszAlgId );
return padding;
case BCRYPT_PAD_PSS:
padding->pss.pszAlgId = ULongToPtr( padding32->pss.pszAlgId );
padding->pss.cbSalt = padding32->pss.cbSalt;
return padding;
default:
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment