- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for fixedNonce (0.14 sec)
-
src/crypto/tls/cipher_suites.go
ka func(version uint16) keyAgreement // flags is a bitmask of the suite* values, above. flags int cipher func(key, iv []byte, isRead bool) any mac func(key []byte) hash.Hash aead func(key, fixedNonce []byte) aead } var cipherSuites = []*cipherSuite{ // TODO: replace with a map, since the order doesn't matter.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 25.5K bytes - Viewed (0) -
src/net/mail/message_test.go
time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("", -6*60*60)), }, // RFC 5322, Appendix A.6.2 // Obsolete date. { "21 Nov 97 09:55:06 GMT", time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("GMT", 0)), }, // Commonly found format not specified by RFC 5322. { "Fri, 21 Nov 1997 09:55:06 -0600 (MDT)", time.Date(1997, 11, 21, 9, 55, 6, 0, time.FixedZone("", -6*60*60)), }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:31:03 UTC 2024 - 30.4K bytes - Viewed (0) -
internal/s3select/sql/timestampfuncs_test.go
package sql import ( "testing" "time" ) func TestParseAndDisplaySQLTimestamp(t *testing.T) { beijing := time.FixedZone("", int((8 * time.Hour).Seconds())) fakeLosAngeles := time.FixedZone("", -int((8 * time.Hour).Seconds())) cases := []struct { s string t time.Time }{ {"2010T", time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC)},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.2K bytes - Viewed (0) -
src/time/zoneinfo.go
func (l *Location) String() string { return l.get().name } var unnamedFixedZones []*Location var unnamedFixedZonesOnce sync.Once // FixedZone returns a [Location] that always uses // the given zone name and offset (seconds east of UTC). func FixedZone(name string, offset int) *Location { // Most calls to FixedZone have an unnamed zone with an offset by the hour.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 18.2K bytes - Viewed (0) -
src/time/time_test.go
{1582, 10, 4, 277}, {1582, 10, 15, 288}, } // Check to see if YearDay is location sensitive var yearDayLocations = []*Location{ FixedZone("UTC-8", -8*60*60), FixedZone("UTC-4", -4*60*60), UTC, FixedZone("UTC+4", 4*60*60), FixedZone("UTC+8", 8*60*60), } func TestYearDay(t *testing.T) { for i, loc := range yearDayLocations { for _, ydt := range yearDayTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
security/pkg/util/jwtutil_test.go
jwt string expectedExp time.Time expectedErr error }{ "jwt with expiration time": { jwt: thirdPartyJwt, expectedExp: time.Date(2020, time.April, 5, 10, 13, 54, 0, time.FixedZone("PDT", -int((7*time.Hour).Seconds()))), expectedErr: nil, }, "jwt with no expiration time": { jwt: firstPartyJwt, expectedExp: time.Time{}, expectedErr: nil, }, "invalid jwt": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0) -
src/time/format_test.go
formattedValue string } var rfc3339Formats = []TimeFormatTest{ {Date(2008, 9, 17, 20, 4, 26, 0, UTC), "2008-09-17T20:04:26Z"}, {Date(1994, 9, 17, 20, 4, 26, 0, FixedZone("EST", -18000)), "1994-09-17T20:04:26-05:00"}, {Date(2000, 12, 26, 1, 15, 6, 0, FixedZone("OTO", 15600)), "2000-12-26T01:15:06+04:20"}, } func TestRFC3339Conversion(t *testing.T) { for _, f := range rfc3339Formats {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:58:29 UTC 2024 - 36.4K bytes - Viewed (0) -
src/time/example_test.go
} func ExampleLocation() { // China doesn't have daylight saving. It uses a fixed 8 hour offset from UTC. secondsEastOfUTC := int((8 * time.Hour).Seconds()) beijing := time.FixedZone("Beijing Time", secondsEastOfUTC) // If the system has a timezone database present, it's possible to load a location // from that, e.g.: // newYork, err := time.LoadLocation("America/New_York")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.4K bytes - Viewed (0) -
src/time/format_rfc3339.go
} t.addSec(-int64(zoneOffset)) // Use local zone with the given offset if possible. if _, offset, _, _, _ := local.lookup(t.unixSec()); offset == zoneOffset { t.setLoc(local) } else { t.setLoc(FixedZone("", zoneOffset)) } } return t, true } func parseStrictRFC3339(b []byte) (Time, error) { t, ok := parseRFC3339(b, Local) if !ok { t, err := Parse(RFC3339, string(b)) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 18 19:59:26 UTC 2023 - 5.7K bytes - Viewed (0) -
src/encoding/asn1/asn1_test.go
in string ok bool out time.Time } var utcTestData = []timeTest{ {"910506164540-0700", true, time.Date(1991, 05, 06, 16, 45, 40, 0, time.FixedZone("", -7*60*60))}, {"910506164540+0730", true, time.Date(1991, 05, 06, 16, 45, 40, 0, time.FixedZone("", 7*60*60+30*60))}, {"910506234540Z", true, time.Date(1991, 05, 06, 23, 45, 40, 0, time.UTC)}, {"9105062345Z", true, time.Date(1991, 05, 06, 23, 45, 0, 0, time.UTC)},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 29 18:24:36 UTC 2023 - 43.6K bytes - Viewed (0)