def _ParseTimestamp(self, time_asn1):
# Parses countersignature timestamp according to RFC3280, section 4.1.2.5+
timestamp_choice, rest = decoder.decode(time_asn1,
asn1Spec=pkcs7.SigningTime())
if rest: raise Asn1Error('Extra unparsed content.')
return timestamp_choice.ToPythonEpochTime()
评论列表
文章目录