mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 10:28:28 +03:00
dont set key validity dates
This commit is contained in:
parent
22a0045796
commit
14d1d132a3
1 changed files with 4 additions and 4 deletions
|
@ -148,8 +148,8 @@ namespace Bit.Android.Services
|
||||||
.SetAlias(KeyAlias)
|
.SetAlias(KeyAlias)
|
||||||
.SetSubject(subject)
|
.SetSubject(subject)
|
||||||
.SetSerialNumber(BigInteger.Ten)
|
.SetSerialNumber(BigInteger.Ten)
|
||||||
.SetStartDate(new Date(0))
|
//.SetStartDate(new Date(0))
|
||||||
.SetEndDate(end.Time)
|
//.SetEndDate(end.Time)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var gen = KeyPairGenerator.GetInstance(KeyProperties.KeyAlgorithmRsa, AndroidKeyStore);
|
var gen = KeyPairGenerator.GetInstance(KeyProperties.KeyAlgorithmRsa, AndroidKeyStore);
|
||||||
|
@ -161,8 +161,8 @@ namespace Bit.Android.Services
|
||||||
var spec = new KeyGenParameterSpec.Builder(KeyAlias, KeyStorePurpose.Decrypt | KeyStorePurpose.Encrypt)
|
var spec = new KeyGenParameterSpec.Builder(KeyAlias, KeyStorePurpose.Decrypt | KeyStorePurpose.Encrypt)
|
||||||
.SetBlockModes(KeyProperties.BlockModeGcm)
|
.SetBlockModes(KeyProperties.BlockModeGcm)
|
||||||
.SetEncryptionPaddings(KeyProperties.EncryptionPaddingNone)
|
.SetEncryptionPaddings(KeyProperties.EncryptionPaddingNone)
|
||||||
.SetKeyValidityStart(new Date(0))
|
//.SetKeyValidityStart(new Date(0))
|
||||||
.SetKeyValidityEnd(end.Time)
|
//.SetKeyValidityEnd(end.Time)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var gen = KeyGenerator.GetInstance(KeyProperties.KeyAlgorithmAes, AndroidKeyStore);
|
var gen = KeyGenerator.GetInstance(KeyProperties.KeyAlgorithmAes, AndroidKeyStore);
|
||||||
|
|
Loading…
Reference in a new issue