passforios-gopenpgp/crypto/gopenpgp.go
wussler 136c0a5495
Change time global handling (#29)
* Reverse time

* Change time handling global

* Remove debug functions

* Remove *pgp methods
2019-10-22 18:44:45 +02:00

13 lines
363 B
Go

// Package crypto provides a high-level API for common OpenPGP functionality.
package crypto
import "time"
// GopenPGP is used as a "namespace" for many of the functions in this package.
// It is a struct that keeps track of time skew between server and client.
type GopenPGP struct {
latestServerTime int64
latestClientTime time.Time
}
var pgp = GopenPGP{}