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:
parent
22a0045796
commit
14d1d132a3
@ -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 New Issue
Block a user