1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-30 12:54:24 +01:00

dont set key validity dates

This commit is contained in:
Kyle Spearrin 2018-05-29 15:21:43 -04:00
parent 22a0045796
commit 14d1d132a3

View File

@ -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);