Use server time as a default everywhere

This commit is contained in:
KAYLukas 2018-06-22 16:04:20 +02:00
parent fd6579114c
commit c515ef8dc5
6 changed files with 47 additions and 25 deletions

5
key.go
View file

@ -155,14 +155,11 @@ func (o *OpenPGP) generateKey(userName string, domain string, passphrase string,
}
comments := ""
timeNow := func() time.Time {
return o.getNow()
}
cfg := &packet.Config{
Algorithm: packet.PubKeyAlgoRSA,
RSABits: bits,
Time: timeNow,
Time: o.getTimeGenerator(),
DefaultHash: crypto.SHA256,
DefaultCipher: packet.CipherAES256,
}