mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
IsNullOrWhiteSpace InitializationVector
This commit is contained in:
parent
498379bb7e
commit
4c2bcb9e6b
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ namespace Bit.App.Models
|
||||||
public string InitializationVector { get; private set; }
|
public string InitializationVector { get; private set; }
|
||||||
public string CipherText { get; private set; }
|
public string CipherText { get; private set; }
|
||||||
public string Mac { get; private set; }
|
public string Mac { get; private set; }
|
||||||
public byte[] InitializationVectorBytes => InitializationVector == null ?
|
public byte[] InitializationVectorBytes => string.IsNullOrWhiteSpace(InitializationVector) ?
|
||||||
null : Convert.FromBase64String(InitializationVector);
|
null : Convert.FromBase64String(InitializationVector);
|
||||||
public byte[] CipherTextBytes => Convert.FromBase64String(CipherText);
|
public byte[] CipherTextBytes => Convert.FromBase64String(CipherText);
|
||||||
public byte[] MacBytes => Mac == null ? null : Convert.FromBase64String(Mac);
|
public byte[] MacBytes => Mac == null ? null : Convert.FromBase64String(Mac);
|
||||||
|
|
Loading…
Reference in a new issue