Reference

RSAENH_CPGetUserKey(3w)

NAME

RSAENH_CPGetUserKey (RSAENH.@)

SYNOPSIS

BOOL RSAENH_CPGetUserKey
(
HCRYPTPROV hProv,
DWORD dwKeySpec,
HCRYPTKEY* phUserKey
)

DESCRIPTION

Returns a handle to the user's private key-exchange- or signature-key.

PARAMS

hProv [In] The key container from which a user key is requested.

dwKeySpec [In] AT_KEYEXCHANGE or AT_SIGNATURE.

phUserKey [Out] Handle to the requested key or INVALID_HANDLE_VALUE in case of failure.

RETURNS

Success: TRUE.

Failure: FALSE.

NOTE

A newly created key container does not contain private user key. Create them with CPGenKey.

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".

History