예제 #1
0
 public static extern unsafe SECURITY_STATUS NCryptDeriveKey(
     SafeSecretHandle hSharedSecret,
     string pwszKDF,
     NCryptBufferDesc *pParameterList,
     byte *pbDerivedKey,
     int cbDerivedKey,
     out int pcbResult,
     NCryptDeriveKeyFlags dwFlags = NCryptDeriveKeyFlags.None);
예제 #2
0
 public static extern NTStatus BCryptDeriveKey(
     SafeSecretHandle sharedSecret,
     string keyDerivationFunction,
     [In] ref BCryptBufferDesc kdfParameters,
     [Out, MarshalAs(UnmanagedType.LPArray)] byte[] derivedKey,
     int derivedKeySize,
     [Out] out int resultSize,
     BCryptDeriveKeyFlags flags);
예제 #3
0
 public static extern unsafe SECURITY_STATUS NCryptDeriveKey(
     SafeSecretHandle hSharedSecret,
     string pwszKDF,
     NCryptBufferDesc *pParameterList,
     [Friendly(FriendlyFlags.Array | FriendlyFlags.Out | FriendlyFlags.Optional, ArrayLengthParameter = 4)] byte *pbDerivedKey,
     int cbDerivedKey,
     out int pcbResult,
     NCryptDeriveKeyFlags dwFlags = NCryptDeriveKeyFlags.None);
예제 #4
0
 public static extern NTStatus BCryptSecretAgreement(
     SafeKeyHandle privateKey,
     SafeKeyHandle publicKey,
     out SafeSecretHandle secret,
     BCryptSecretAgreementFlags flags = BCryptSecretAgreementFlags.None);
예제 #5
0
 public static extern NTSTATUS BCryptDeriveKey(
     SafeSecretHandle sharedSecret,
     string keyDerivationFunction,
     [In] ref BCryptBufferDesc kdfParameters,
     [Out, MarshalAs(UnmanagedType.LPArray)] byte[] derivedKey,
     int derivedKeySize,
     [Out] out int resultSize,
     BCryptDeriveKeyFlags flags);
예제 #6
0
 public static extern NTSTATUS BCryptSecretAgreement(
     SafeKeyHandle privateKey,
     SafeKeyHandle publicKey,
     out SafeSecretHandle secret,
     BCryptSecretAgreementFlags flags = BCryptSecretAgreementFlags.None);
예제 #7
0
 public static extern SECURITY_STATUS NCryptSecretAgreement(
     SafeKeyHandle hPrivKey,
     SafeKeyHandle hPubKey,
     out SafeSecretHandle phSecret,
     NCryptSecretAgreementFlags dwFlags = NCryptSecretAgreementFlags.None);
예제 #8
0
파일: NCrypt.cs 프로젝트: hmemcpy/pinvoke
 public static extern unsafe SECURITY_STATUS NCryptDeriveKey(
     SafeSecretHandle hSharedSecret,
     string pwszKDF,
     NCryptBufferDesc* pParameterList,
     byte* pbDerivedKey,
     int cbDerivedKey,
     out int pcbResult,
     NCryptDeriveKeyFlags dwFlags = NCryptDeriveKeyFlags.None);
예제 #9
0
파일: NCrypt.cs 프로젝트: hmemcpy/pinvoke
 public static extern SECURITY_STATUS NCryptSecretAgreement(
     SafeKeyHandle hPrivKey,
     SafeKeyHandle hPubKey,
     out SafeSecretHandle phSecret,
     NCryptSecretAgreementFlags dwFlags = NCryptSecretAgreementFlags.None);