コード例 #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
ファイル: BCrypt.cs プロジェクト: gitter-badger/pinvoke
 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
ファイル: BCrypt.cs プロジェクト: gitter-badger/pinvoke
 public static extern NTStatus BCryptSecretAgreement(
     SafeKeyHandle privateKey,
     SafeKeyHandle publicKey,
     out SafeSecretHandle secret,
     BCryptSecretAgreementFlags flags = BCryptSecretAgreementFlags.None);
コード例 #5
0
ファイル: BCrypt.cs プロジェクト: jmelosegui/pinvoke
 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
ファイル: BCrypt.cs プロジェクト: jmelosegui/pinvoke
 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);