|
ReactOS 0.4.17-dev-1190-g4c812f4
|
#include <stdarg.h>#include <stdlib.h>#include <stdio.h>#include <assert.h>#include "windef.h"#include "winbase.h"#include "winreg.h"#include "ntsecapi.h"#include "wincrypt.h"#include "handle.h"#include "implglue.h"#include "objbase.h"#include "rpcproxy.h"#include "aclapi.h"#include "wine/debug.h"
Go to the source code of this file.
Classes | |
| struct | _RSAENH_TLS1PRF_PARAMS |
| struct | tagCRYPTHASH |
| struct | _RSAENH_SCHANNEL_INFO |
| struct | tagCRYPTKEY |
| struct | tagKEYCONTAINER |
Typedefs | |
| typedef struct _RSAENH_TLS1PRF_PARAMS | RSAENH_TLS1PRF_PARAMS |
| typedef struct tagCRYPTHASH | CRYPTHASH |
| typedef struct _RSAENH_SCHANNEL_INFO | RSAENH_SCHANNEL_INFO |
| typedef struct tagCRYPTKEY | CRYPTKEY |
| typedef struct tagKEYCONTAINER | KEYCONTAINER |
Variables | |
| static const PROV_ENUMALGS_EX | aProvEnumAlgsEx [5][RSAENH_MAX_ENUMALGS+1] |
| static struct handle_table | handle_table |
| #define RSAENH_PCT1_SSL2_SSL3_TLS1 (CRYPT_FLAG_PCT1|CRYPT_FLAG_SSL2|CRYPT_FLAG_SSL3|CRYPT_FLAG_TLS1) |
| typedef struct tagCRYPTHASH CRYPTHASH |
| typedef struct tagCRYPTKEY CRYPTKEY |
| typedef struct tagKEYCONTAINER KEYCONTAINER |
|
static |
Definition at line 880 of file rsaenh.c.
Referenced by import_symmetric_key(), and new_key().
| BOOL block_encrypt | ( | CRYPTKEY * | key, |
| BYTE * | data, | ||
| DWORD * | data_len, | ||
| DWORD | buf_len, | ||
| BOOL | final, | ||
| KEY_CONTEXT * | context, | ||
| BYTE * | chain_vector | ||
| ) |
Definition at line 525 of file rsaenh.c.
Referenced by finalize_hash(), RSAENH_CPEncrypt(), and update_hash().
|
static |
Definition at line 1565 of file rsaenh.c.
Referenced by RSAENH_CPSignHash(), and RSAENH_CPVerifySignature().
|
inlinestatic |
Definition at line 488 of file rsaenh.c.
Referenced by RSAENH_CPCreateHash(), and tls1_prf().
|
inlinestatic |
Definition at line 459 of file rsaenh.c.
Referenced by import_plaintext_key(), RSAENH_CPDuplicateHash(), RSAENH_CPDuplicateKey(), RSAENH_CPSetHashParam(), and RSAENH_CPSetKeyParam().
|
static |
Definition at line 620 of file rsaenh.c.
Referenced by RSAENH_CPDuplicateHash(), and RSAENH_CPSetHashParam().
|
inlinestatic |
Definition at line 386 of file rsaenh.c.
Referenced by RSAENH_CPGetHashParam(), RSAENH_CPGetKeyParam(), and RSAENH_CPGetProvParam().
|
static |
Definition at line 1202 of file rsaenh.c.
Referenced by new_key_container(), store_key_container_keys(), and store_key_container_permissions().
|
static |
Definition at line 3003 of file rsaenh.c.
Referenced by RSAENH_CPExportKey(), and store_key_pair().
|
static |
Definition at line 2955 of file rsaenh.c.
Referenced by crypt_export_key().
|
static |
Definition at line 2916 of file rsaenh.c.
Referenced by crypt_export_key().
|
static |
Definition at line 2882 of file rsaenh.c.
Referenced by crypt_export_key().
|
static |
Definition at line 2843 of file rsaenh.c.
Referenced by crypt_export_key().
Definition at line 1260 of file rsaenh.c.
Referenced by RSAENH_CPAcquireContext().
Definition at line 659 of file rsaenh.c.
Referenced by RSAENH_CPCreateHash(), and RSAENH_CPDuplicateHash().
Definition at line 849 of file rsaenh.c.
Referenced by alloc_key(), and RSAENH_CPDuplicateKey().
Definition at line 1359 of file rsaenh.c.
Referenced by new_key_container().
Definition at line 350 of file rsaenh.c.
Definition at line 800 of file rsaenh.c.
Referenced by RSAENH_CPDeriveKey(), RSAENH_CPGetHashParam(), and tls1_p().
|
inlinestatic |
Definition at line 510 of file rsaenh.c.
Referenced by destroy_hash(), destroy_key(), pad_data_oaep(), pkcs1_mgf1(), RSAENH_CPCreateHash(), tls1_prf(), and unpad_data_oaep().
|
inlinestatic |
Definition at line 597 of file rsaenh.c.
Referenced by copy_hmac_info(), destroy_hash(), and RSAENH_CPSetHashParam().
|
inlinestatic |
Definition at line 429 of file rsaenh.c.
Referenced by import_symmetric_key(), new_key(), RSAENH_CPCreateHash(), RSAENH_CPEncrypt(), and RSAENH_CPHashData().
|
inlinestatic |
Definition at line 403 of file rsaenh.c.
Referenced by alloc_key(), get_algid_info(), import_key(), import_private_key(), release_and_install_key(), RSAENH_CPGenKey(), RSAENH_CPGetProvParam(), RSAENH_CPGetUserKey(), RSAENH_CPSetKeyParam(), and RSAENH_CPSetProvParam().
|
static |
Definition at line 3470 of file rsaenh.c.
Referenced by read_key_value(), and RSAENH_CPImportKey().
|
static |
Definition at line 3392 of file rsaenh.c.
Referenced by import_key().
|
static |
Definition at line 3139 of file rsaenh.c.
Referenced by import_key().
|
static |
Definition at line 3231 of file rsaenh.c.
Referenced by import_key().
|
static |
Definition at line 3294 of file rsaenh.c.
Referenced by import_key().
|
inlinestatic |
Definition at line 517 of file rsaenh.c.
Referenced by alloc_key(), and RSAENH_CPCreateHash().
Definition at line 679 of file rsaenh.c.
Referenced by RSAENH_CPCreateHash(), RSAENH_CPDeriveKey(), RSAENH_CPSetHashParam(), and tls1_p().
Definition at line 1068 of file rsaenh.c.
Referenced by read_key_value(), and store_key_pair().
Definition at line 1149 of file rsaenh.c.
Referenced by read_key_value(), and store_key_permissions().
|
static |
Definition at line 980 of file rsaenh.c.
Referenced by ___w64_mingwthr_add_key_dtor(), add_key_(), import_plaintext_key(), import_private_key(), import_public_key(), import_symmetric_key(), RSAENH_CPDeriveKey(), RSAENH_CPGenKey(), and tls1_prf().
|
static |
Definition at line 1388 of file rsaenh.c.
Referenced by read_key_container(), and RSAENH_CPAcquireContext().
|
static |
Definition at line 1233 of file rsaenh.c.
Referenced by read_key_container(), RSAENH_CPGetProvParam(), and RSAENH_CPSetProvParam().
|
static |
Definition at line 1989 of file rsaenh.c.
Referenced by crypt_export_simple(), and RSAENH_CPEncrypt().
|
static |
Definition at line 1896 of file rsaenh.c.
Referenced by pad_data().
|
static |
Definition at line 1789 of file rsaenh.c.
Referenced by pad_data().
|
static |
Definition at line 1829 of file rsaenh.c.
Referenced by pad_data_oaep(), and unpad_data_oaep().
|
static |
Definition at line 1508 of file rsaenh.c.
Referenced by RSAENH_CPAcquireContext().
|
static |
Definition at line 1443 of file rsaenh.c.
Referenced by read_key_container().
|
static |
Definition at line 3099 of file rsaenh.c.
Referenced by import_private_key(), and RSAENH_CPGenKey().
|
static |
Definition at line 1343 of file rsaenh.c.
Referenced by destroy_key_container().
| BOOL WINAPI RSAENH_CPAcquireContext | ( | HCRYPTPROV * | phProv, |
| LPSTR | pszContainer, | ||
| DWORD | dwFlags, | ||
| PVTableProvStruc | pVTable | ||
| ) |
Definition at line 2193 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPCreateHash | ( | HCRYPTPROV | hProv, |
| ALG_ID | Algid, | ||
| HCRYPTKEY | hKey, | ||
| DWORD | dwFlags, | ||
| HCRYPTHASH * | phHash | ||
| ) |
Definition at line 2276 of file rsaenh.c.
Referenced by pad_data_oaep(), pkcs1_mgf1(), tls1_prf(), and unpad_data_oaep().
| BOOL WINAPI RSAENH_CPDecrypt | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey, | ||
| HCRYPTHASH | hHash, | ||
| BOOL | Final, | ||
| DWORD | dwFlags, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen | ||
| ) |
Definition at line 2718 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPDeriveKey | ( | HCRYPTPROV | hProv, |
| ALG_ID | Algid, | ||
| HCRYPTHASH | hBaseData, | ||
| DWORD | dwFlags, | ||
| HCRYPTKEY * | phKey | ||
| ) |
Definition at line 4355 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPDestroyHash | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash | ||
| ) |
Definition at line 2407 of file rsaenh.c.
Referenced by pad_data_oaep(), pkcs1_mgf1(), tls1_prf(), and unpad_data_oaep().
| BOOL WINAPI RSAENH_CPDestroyKey | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey | ||
| ) |
Definition at line 2440 of file rsaenh.c.
Referenced by release_and_install_key(), and RSAENH_CPSignHash().
| BOOL WINAPI RSAENH_CPDuplicateHash | ( | HCRYPTPROV | hUID, |
| HCRYPTHASH | hHash, | ||
| DWORD * | pdwReserved, | ||
| DWORD | dwFlags, | ||
| HCRYPTHASH * | phHash | ||
| ) |
Definition at line 2475 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPDuplicateKey | ( | HCRYPTPROV | hUID, |
| HCRYPTKEY | hKey, | ||
| DWORD * | pdwReserved, | ||
| DWORD | dwFlags, | ||
| HCRYPTKEY * | phKey | ||
| ) |
Definition at line 2530 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPEncrypt | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey, | ||
| HCRYPTHASH | hHash, | ||
| BOOL | Final, | ||
| DWORD | dwFlags, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen, | ||
| DWORD | dwBufLen | ||
| ) |
Definition at line 2599 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPExportKey | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey, | ||
| HCRYPTKEY | hPubKey, | ||
| DWORD | dwBlobType, | ||
| DWORD | dwFlags, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen | ||
| ) |
Definition at line 3064 of file rsaenh.c.
Definition at line 3567 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPGenRandom | ( | HCRYPTPROV | hProv, |
| DWORD | dwLen, | ||
| BYTE * | pbBuffer | ||
| ) |
| BOOL WINAPI RSAENH_CPGetHashParam | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| DWORD | dwParam, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 3698 of file rsaenh.c.
Referenced by pad_data_oaep(), pkcs1_mgf1(), RSAENH_CPDeriveKey(), RSAENH_CPSignHash(), RSAENH_CPVerifySignature(), and unpad_data_oaep().
| BOOL WINAPI RSAENH_CPGetKeyParam | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey, | ||
| DWORD | dwParam, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 4030 of file rsaenh.c.
Referenced by init_hash().
| BOOL WINAPI RSAENH_CPGetProvParam | ( | HCRYPTPROV | hProv, |
| DWORD | dwParam, | ||
| BYTE * | pbData, | ||
| DWORD * | pdwDataLen, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 4137 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPGetUserKey | ( | HCRYPTPROV | hProv, |
| DWORD | dwKeySpec, | ||
| HCRYPTKEY * | phUserKey | ||
| ) |
Definition at line 4539 of file rsaenh.c.
Referenced by RSAENH_CPSignHash().
| BOOL WINAPI RSAENH_CPHashData | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| const BYTE * | pbData, | ||
| DWORD | dwDataLen, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 4597 of file rsaenh.c.
Referenced by pad_data_oaep(), pkcs1_mgf1(), RSAENH_CPDecrypt(), RSAENH_CPEncrypt(), RSAENH_CPHashSessionKey(), RSAENH_CPSignHash(), RSAENH_CPVerifySignature(), and unpad_data_oaep().
| BOOL WINAPI RSAENH_CPHashSessionKey | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| HCRYPTKEY | hKey, | ||
| DWORD | dwFlags | ||
| ) |
| BOOL WINAPI RSAENH_CPReleaseContext | ( | HCRYPTPROV | hProv, |
| DWORD | dwFlags | ||
| ) |
| BOOL WINAPI RSAENH_CPSetHashParam | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| DWORD | dwParam, | ||
| BYTE * | pbData, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 4741 of file rsaenh.c.
Referenced by tls1_prf().
| BOOL WINAPI RSAENH_CPSetKeyParam | ( | HCRYPTPROV | hProv, |
| HCRYPTKEY | hKey, | ||
| DWORD | dwParam, | ||
| BYTE * | pbData, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 3798 of file rsaenh.c.
Definition at line 4828 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPSignHash | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| DWORD | dwKeySpec, | ||
| LPCWSTR | sDescription, | ||
| DWORD | dwFlags, | ||
| BYTE * | pbSignature, | ||
| DWORD * | pdwSigLen | ||
| ) |
Definition at line 4897 of file rsaenh.c.
| BOOL WINAPI RSAENH_CPVerifySignature | ( | HCRYPTPROV | hProv, |
| HCRYPTHASH | hHash, | ||
| const BYTE * | pbSignature, | ||
| DWORD | dwSigLen, | ||
| HCRYPTKEY | hPubKey, | ||
| LPCWSTR | sDescription, | ||
| DWORD | dwFlags | ||
| ) |
Definition at line 4981 of file rsaenh.c.
Definition at line 868 of file rsaenh.c.
|
static |
Definition at line 1288 of file rsaenh.c.
Referenced by destroy_key_container(), and release_and_install_key().
|
static |
Definition at line 1321 of file rsaenh.c.
Referenced by destroy_key_container(), and release_and_install_key().
|
static |
Definition at line 1098 of file rsaenh.c.
Referenced by store_key_container_keys().
Definition at line 1178 of file rsaenh.c.
Referenced by store_key_container_permissions().
|
static |
Definition at line 1661 of file rsaenh.c.
Referenced by tls1_prf().
|
static |
Definition at line 1720 of file rsaenh.c.
Referenced by RSAENH_CPCreateHash(), and RSAENH_CPGetHashParam().
|
static |
Definition at line 2159 of file rsaenh.c.
Referenced by import_symmetric_key(), and RSAENH_CPDecrypt().
|
static |
Definition at line 2056 of file rsaenh.c.
Referenced by unpad_data().
|
static |
Definition at line 2014 of file rsaenh.c.
Referenced by unpad_data().
|
inlinestatic |
Definition at line 722 of file rsaenh.c.
Referenced by RSAENH_CPDeriveKey(), RSAENH_CPHashData(), and tls1_p().
| WINE_DEFAULT_DEBUG_CHANNEL | ( | crypt | ) |
|
static |
Definition at line 165 of file rsaenh.c.
Referenced by get_algid_info(), RSAENH_CPGetProvParam(), and RSAENH_CPSetKeyParam().
|
static |