mirror of
https://github.com/bitwarden/mobile
synced 2026-02-20 19:33:46 +00:00
* 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
11 lines
319 B
C#
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);
|
|
}
|
|
}
|