mirror of
https://github.com/bitwarden/mobile
synced 2026-01-01 16:13:15 +00:00
crypto service implementation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user