Scroll to navigation

RSAENH_CPGetKeyParam(3w) Wine API RSAENH_CPGetKeyParam(3w)

NAME

RSAENH_CPGetKeyParam (RSAENH.@)

SYNOPSIS

BOOL RSAENH_CPGetKeyParam
(
HCRYPTPROV hProv,
HCRYPTKEY hKey,
DWORD dwParam,
BYTE* pbData,
DWORD* pdwDataLen,
DWORD dwFlags
)
 

DESCRIPTION

Query a key parameter.
 

PARAMS

hProv [In] The key container, which the key belongs to.
hHash [In] The key object that is to be queried.
dwParam [In] Specifies the parameter that is to be queried.
pbData [In] Pointer to the buffer where the parameter value will be stored.
pdwDataLen [In/Out] I: Buffer length at pbData, O: Length of the parameter value.
dwFlags [In] None currently defined.
 

RETURNS

Success: TRUE
Failure: FALSE.
 

NOTES

Defined dwParam types are:
- KP_MODE: Values MODE_CBC, MODE_ECB, MODE_CFB.
- KP_MODE_BITS: Shift width for cipher feedback mode. (Currently ignored by Microsoft(tm) CSP's - always eight)
- KP_PERMISSIONS: Or'ed combination of CRYPT_ENCRYPT, CRYPT_DECRYPT, CRYPT_EXPORT, CRYPT_READ, CRYPT_WRITE, CRYPT_MAC
- KP_IV: Initialization vector.
- KP_KEYLEN: Bitwidth of the key.
- KP_BLOCKLEN: Size of a block cipher block.
- KP_SALT: Salt value.
 

IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.
Implemented in "dlls/rsaenh/rsaenh.c".
Debug channel "crypt".
Oct 2012 Wine API