Fixes argon2 windows reference attempt #3
This commit is contained in:
parent
fddfa15192
commit
b8316e9202
1 changed files with 3 additions and 3 deletions
|
|
@ -51,7 +51,7 @@ namespace System.Security.Cryptography
|
|||
|
||||
internal static class SafeNativeMethods
|
||||
{
|
||||
[DllImport("argon2", EntryPoint = "argon2_hash", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("libargon2.dll", EntryPoint = "argon2_hash", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern Argon2Error argon2_hash(uint t_cost, uint m_cost, uint parallelism,
|
||||
in byte pwd, int pwdlen,
|
||||
in byte salt, int saltlen,
|
||||
|
|
@ -60,10 +60,10 @@ namespace System.Security.Cryptography
|
|||
int type, int version
|
||||
);
|
||||
|
||||
[DllImport("argon2", EntryPoint = "argon2_verify", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("libargon2.dll", EntryPoint = "argon2_verify", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern Argon2Error argon2_verify(in byte encoded, in byte pwd, int pwdlen, int type);
|
||||
|
||||
[DllImport("argon2", EntryPoint = "decode_string", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("libargon2.dll", EntryPoint = "decode_string", CallingConvention = CallingConvention.Cdecl)]
|
||||
internal static extern Argon2Error decode_string(Argon2Context ctx, in byte str, int type);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue