FreeRDP
libwinpr/ncrypt/ncrypt.h File Reference
#include <winpr/config.h>
#include <winpr/bcrypt.h>
#include <winpr/crypto.h>
#include <winpr/ncrypt.h>
#include <winpr/error.h>
#include <winpr/string.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  NCryptBaseHandle
 common ncrypt handle items More...
 
struct  NCryptBaseProvider
 common ncrypt provider items More...
 

Typedefs

typedef SECURITY_STATUS(* NCryptReleaseFn) (NCRYPT_HANDLE handle)
 dtor function for ncrypt object More...
 
typedef SECURITY_STATUS(* NCryptGetPropertyFn) (NCRYPT_HANDLE hObject, NCryptKeyGetPropertyEnum property, PBYTE pbOutput, DWORD cbOutput, DWORD *pcbResult, DWORD dwFlags)
 
typedef SECURITY_STATUS(* NCryptEnumKeysFn) (NCRYPT_PROV_HANDLE hProvider, LPCWSTR pszScope, NCryptKeyName **ppKeyName, PVOID *ppEnumState, DWORD dwFlags)
 
typedef SECURITY_STATUS(* NCryptOpenKeyFn) (NCRYPT_PROV_HANDLE hProvider, NCRYPT_KEY_HANDLE *phKey, LPCWSTR pszKeyName, DWORD dwLegacyKeySpec, DWORD dwFlags)
 

Enumerations

enum  NCryptHandleType { WINPR_NCRYPT_INVALID , WINPR_NCRYPT_PROVIDER , WINPR_NCRYPT_KEY }
 type of ncrypt object More...
 
enum  NCryptKeyGetPropertyEnum {
  NCRYPT_PROPERTY_CERTIFICATE , NCRYPT_PROPERTY_READER , NCRYPT_PROPERTY_SLOTID , NCRYPT_PROPERTY_NAME ,
  NCRYPT_PROPERTY_UNKNOWN
}
 an enum for the kind of property to retrieve More...
 

Functions

SECURITY_STATUS checkNCryptHandle (NCRYPT_HANDLE handle, NCryptHandleType matchType)
 
SECURITY_STATUS winpr_NCryptDefault_dtor (NCRYPT_HANDLE handle)
 
void * ncrypt_new_handle (NCryptHandleType kind, size_t len, NCryptGetPropertyFn getProp, NCryptReleaseFn dtor)
 

Typedef Documentation

◆ NCryptEnumKeysFn

typedef SECURITY_STATUS(* NCryptEnumKeysFn) (NCRYPT_PROV_HANDLE hProvider, LPCWSTR pszScope, NCryptKeyName **ppKeyName, PVOID *ppEnumState, DWORD dwFlags)

◆ NCryptGetPropertyFn

typedef SECURITY_STATUS(* NCryptGetPropertyFn) (NCRYPT_HANDLE hObject, NCryptKeyGetPropertyEnum property, PBYTE pbOutput, DWORD cbOutput, DWORD *pcbResult, DWORD dwFlags)

◆ NCryptOpenKeyFn

typedef SECURITY_STATUS(* NCryptOpenKeyFn) (NCRYPT_PROV_HANDLE hProvider, NCRYPT_KEY_HANDLE *phKey, LPCWSTR pszKeyName, DWORD dwLegacyKeySpec, DWORD dwFlags)

◆ NCryptReleaseFn

typedef SECURITY_STATUS(* NCryptReleaseFn) (NCRYPT_HANDLE handle)

dtor function for ncrypt object

Enumeration Type Documentation

◆ NCryptHandleType

type of ncrypt object

WinPR: Windows Portable Runtime NCrypt library

Copyright 2021 David Fort conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Enumerator
WINPR_NCRYPT_INVALID 
WINPR_NCRYPT_PROVIDER 
WINPR_NCRYPT_KEY 

◆ NCryptKeyGetPropertyEnum

an enum for the kind of property to retrieve

Enumerator
NCRYPT_PROPERTY_CERTIFICATE 
NCRYPT_PROPERTY_READER 
NCRYPT_PROPERTY_SLOTID 
NCRYPT_PROPERTY_NAME 
NCRYPT_PROPERTY_UNKNOWN 

Function Documentation

◆ checkNCryptHandle()

SECURITY_STATUS checkNCryptHandle ( NCRYPT_HANDLE  handle,
NCryptHandleType  matchType 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncrypt_new_handle()

void* ncrypt_new_handle ( NCryptHandleType  kind,
size_t  len,
NCryptGetPropertyFn  getProp,
NCryptReleaseFn  dtor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_NCryptDefault_dtor()

SECURITY_STATUS winpr_NCryptDefault_dtor ( NCRYPT_HANDLE  handle)
Here is the caller graph for this function: