1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-01 16:13:15 +00:00

crypto service implementation

This commit is contained in:
Kyle Spearrin
2019-04-08 16:04:41 -04:00
parent 3f5115728b
commit f0eca137ef
6 changed files with 630 additions and 7 deletions

View File

@@ -142,6 +142,11 @@ namespace Bit.Core.Services
return Task.FromResult(CryptographicBuffer.GenerateRandom(length));
}
public Task<uint> RandomNumberAsync()
{
return Task.FromResult(CryptographicBuffer.GenerateRandomNumber());
}
private HashAlgorithm ToHashAlgorithm(CryptoHashAlgorithm algorithm)
{
switch(algorithm)