1
0
mirror of https://github.com/bitwarden/mobile synced 2026-02-20 19:33:46 +00:00
Files
mobile/src/Core/Abstractions/ICryptoPrimitiveService.cs
Bernd Schoolmann 9613019d4d [PS-2249] Implement Argon2 (#2293)
* Implement Argon2

* Fix incorrect argon2 type on iOS

* Switch argon2 implementation to native bindings

* Change argon2 to save iterations instead of memory as 'kdfIterations'

* Remove mistakenly added import

* Remove unused library
2023-01-20 16:03:16 -05:00

11 lines
319 B
C#

using Bit.Core.Enums;
namespace Bit.Core.Abstractions
{
public interface ICryptoPrimitiveService
{
byte[] Pbkdf2(byte[] password, byte[] salt, CryptoHashAlgorithm algorithm, int iterations);
byte[] Argon2id(byte[] password, byte[] salt, int iterations, int memory, int parallelism);
}
}