NativeCrypto: set Calendar instances to 0 millis

X.509 does not have a notion of milliseconds so it was not being set
through the Calendar instances we used in OpenSSLX509Certificate, et al.
Instead it was getting whatever the current millisecond offset was from
the GregorianCalendar default constructor. That made two parsed
certificates unlikely to be equal when comparing since the milliseconds
were also checked.

Bug: 8616647
Change-Id: I756088d946191417bb3afcba082bed5371ed731a
3 files changed