From c4a7aab590b646bdc41391b06d6515cc46a622ab Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 19 Jan 2023 17:14:40 -0500 Subject: [PATCH] fix typing issues --- src/iOS.Core/Services/CryptoPrimitiveService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iOS.Core/Services/CryptoPrimitiveService.cs b/src/iOS.Core/Services/CryptoPrimitiveService.cs index a2101e70d..991df0606 100644 --- a/src/iOS.Core/Services/CryptoPrimitiveService.cs +++ b/src/iOS.Core/Services/CryptoPrimitiveService.cs @@ -42,7 +42,7 @@ namespace Bit.iOS.Core.Services public byte[] Argon2id(byte[] password, byte[] salt, int iterations, int memory, int parallelism) { // TODO: Do we need to pass this in somehow like PBKDF2 based on an algorithm - int keySize = 32; + uint keySize = 32; var keyData = new NSMutableData(); keyData.Length = keySize; @@ -64,6 +64,6 @@ namespace Bit.iOS.Core.Services [DllImport("__Internal", EntryPoint = "argon2id_hash_raw")] internal static extern int argon2id_hash_raw(int timeCost, int memoryCost, int parallelism, IntPtr pwd, - int pwdlen, IntPtr salt, int saltlen, IntPtr hash, int hashlen); + nuint pwdlen, IntPtr salt, nuint saltlen, IntPtr hash, nuint hashlen); } }