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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user