mirror of
https://github.com/bitwarden/mobile
synced 2025-12-18 17:23:18 +00:00
bug fixes
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Bit.Core.Models.Domain
|
||||
EncKey = new ArraySegment<byte>(Key, 0, 16).ToArray();
|
||||
MacKey = new ArraySegment<byte>(Key, 16, 16).ToArray();
|
||||
}
|
||||
else if(EncType == EncryptionType.AesCbc256_HmacSha256_B64 && Key.Length == 34)
|
||||
else if(EncType == EncryptionType.AesCbc256_HmacSha256_B64 && Key.Length == 64)
|
||||
{
|
||||
EncKey = new ArraySegment<byte>(Key, 0, 32).ToArray();
|
||||
MacKey = new ArraySegment<byte>(Key, 32, 32).ToArray();
|
||||
|
||||
@@ -613,9 +613,9 @@ namespace Bit.Core.Services
|
||||
Buffer.BlockCopy(dataBytes, 0, macDataBytes, ivBytes.Length, dataBytes.Length);
|
||||
|
||||
byte[] macKey = null;
|
||||
if(key.MacKey != null)
|
||||
if(theKey.MacKey != null)
|
||||
{
|
||||
macKey = key.MacKey;
|
||||
macKey = theKey.MacKey;
|
||||
}
|
||||
byte[] macBytes = null;
|
||||
if(mac != null)
|
||||
|
||||
Reference in New Issue
Block a user