1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-18 01:03:24 +00:00

[PM-2713] rename PrivateKey methods to UserPrivateKey on crypto service

This commit is contained in:
Jacob Fink
2023-07-27 16:24:31 -04:00
parent 7562c688c5
commit ba6d260565
5 changed files with 9 additions and 9 deletions

View File

@@ -354,7 +354,7 @@ namespace Bit.Core.Services
{
return _publicKey;
}
var privateKey = await GetPrivateKeyAsync();
var privateKey = await GetUserPrivateKeyAsync();
if (privateKey == null)
{
return null;
@@ -363,7 +363,7 @@ namespace Bit.Core.Services
return _publicKey;
}
public async Task SetPrivateKeyAsync(string encPrivateKey)
public async Task SetUserPrivateKeyAsync(string encPrivateKey)
{
if (encPrivateKey == null)
{
@@ -373,7 +373,7 @@ namespace Bit.Core.Services
_privateKey = null;
}
public async Task<byte[]> GetPrivateKeyAsync()
public async Task<byte[]> GetUserPrivateKeyAsync()
{
if (_privateKey != null)
{
@@ -519,7 +519,7 @@ namespace Bit.Core.Services
if (privateKey is null)
{
privateKey = await GetPrivateKeyAsync();
privateKey = await GetUserPrivateKeyAsync();
}
if (privateKey == null)