mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
Compat. - no header for AesCbc256_B64 cipherstring
This commit is contained in:
parent
c8219b29c0
commit
70c57928e7
1 changed files with 6 additions and 1 deletions
|
@ -83,13 +83,18 @@ namespace Bit.App.Models
|
||||||
}
|
}
|
||||||
|
|
||||||
EncryptionType = encryptionType;
|
EncryptionType = encryptionType;
|
||||||
EncryptedString = string.Format("{0}.{1}|{2}", (byte)encryptionType, initializationVector, cipherText);
|
EncryptedString = string.Format("{0}|{1}", initializationVector, cipherText);
|
||||||
|
|
||||||
if(!string.IsNullOrWhiteSpace(mac))
|
if(!string.IsNullOrWhiteSpace(mac))
|
||||||
{
|
{
|
||||||
EncryptedString = string.Format("{0}|{1}", EncryptedString, mac);
|
EncryptedString = string.Format("{0}|{1}", EncryptedString, mac);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(EncryptionType != EncryptionType.AesCbc256_B64)
|
||||||
|
{
|
||||||
|
EncryptedString = string.Format("{0}.{1}", (byte)EncryptionType, EncryptedString);
|
||||||
|
}
|
||||||
|
|
||||||
CipherText = cipherText;
|
CipherText = cipherText;
|
||||||
InitializationVector = initializationVector;
|
InitializationVector = initializationVector;
|
||||||
Mac = mac;
|
Mac = mac;
|
||||||
|
|
Loading…
Reference in a new issue