EP4795733A1 - Compact encoding for timestamps - Google Patents
Compact encoding for timestampsInfo
- Publication number
- EP4795733A1 EP4795733A1 EP23794023.4A EP23794023A EP4795733A1 EP 4795733 A1 EP4795733 A1 EP 4795733A1 EP 23794023 A EP23794023 A EP 23794023A EP 4795733 A1 EP4795733 A1 EP 4795733A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- value
- bits
- represent
- date
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/70—Type of the data to be coded, other than image and sound
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/3082—Vector coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3297—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
Definitions
- Embodiments described herein generally relate to encoding and decoding schemes for data and particularly to encoding and decoding techniques used on date and time information, such as in connection with encoded timestamps and associated date and time representations.
- the date and time information of a timestamp may be represented by a variety of formats and data encoding.
- Two examples of data encodings that can be used to represent date and time values are encodings such as the Concise Binary Object Representation (CBOR) defined by the RFC 8949 standard, and Distinguished Encoding Rules (DER) defined by the ITU-T X.690 standard.
- CBOR Concise Binary Object Representation
- DER Distinguished Encoding Rules
- a DER type-length-value (TLV) encoding (DER-TLV) of a date and time as a UTCTime value may use 15 bytes
- a DER-TLV encoding of a date and time as a GeneralizedTime value e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as numerical values
- a GeneralizedTime value e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as numerical values
- a CBOR core deterministic encoding of a date and time as a standard date/time string may use 22 bytes
- a CBOR core deterministic encoding of a date and time as an epoch-based date/time value may use 6 bytes.
- Other encodings can represent date and time values using as few as 5 bytes.
- the Temporenc encoding format of a date and time as a “DT” (“Date + time”) type (e.g., that represents information including a month, day, year, hour minute, and second as numerical values) uses 5 bytes
- the Temporenc encoding of a date and time and timezone as a “DTZ” (“Date + time + time zone offset”) type e.g., that represents information including a month, day, year, hour minute, second, and UTC offset as numerical values
- the present disclosure in one or more embodiments, relates to a method for encoding a timestamp.
- This method enables an encoding that stores time and date information in four bytes of data.
- the method comprises identifying date and time information to be encoded, generating 4-byte encoded data from the date and time information, and outputting the 4-byte encoded data.
- the date and time information to be encoded includes: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value (e.g., which includes an hour value, a minutes value, and a seconds value).
- This method enables date and time information to be obtained from an encoded timestamp of four bytes of data.
- the method comprises parsing a 4-byte encoded data value to identify a sequence of bits, determining date and time information from the sequence of bits, and storing, in a memory of a computing device, a timestamp based on the determined date and time information.
- the 4-byte encoded data value follows the sequence of bits referenced above: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value (e.g., which includes a sequence of bits that represents the hour value, the minutes value, and the seconds value).
- the date and time information that is decoded includes: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from applying (e.g., adding or subtracting) the offset to a value of the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value (e.g., hour value, minutes value, and seconds value) determined from the bits to represent the time value.
- the calculated year value is the offset value “5”
- the intended calendar year value e.g., 2025
- the reference calendar year e.g. 2020
- the present disclosure additionally relates to a non- transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform the methods of encoding a timestamp or decoding a timestamp, based on the methods described herein.
- the present disclosure additionally relates to an apparatus (e.g., a computing device, an embedded device, controller, electronic component or subsystem, etc.) comprising memory configured or adapted to store date and time information, and circuitry configured or adapted to perform the methods of encoding a timestamp or decoding a timestamp, based on the methods described herein.
- an apparatus e.g., a computing device, an embedded device, controller, electronic component or subsystem, etc.
- memory configured or adapted to store date and time information
- circuitry configured or adapted to perform the methods of encoding a timestamp or decoding a timestamp, based on the methods described herein.
- FIG. 1 illustrates communications of encoded date and time information among devices and computing entities, according to an example
- FIG. 2 illustrates an encoding format for date and time information, according to an example
- FIG. 3 illustrates operations performed at a source device and at a receiver device based on encoded date and time information, according to an example
- FIG. 4 illustrates a flowchart of a method of encoding a timestamp, according to an example
- FIG. 5 illustrates a flowchart of a method of decoding a timestamp, according to an example
- FIG. 6 illustrates a block diagram schematic of various components of an example electronic device configured to generate or use encoded date and time information, according to an example
- the present disclosure generally relates to encoding date and time values used in timestamps, including in some examples with the definition and use of a 4-byte encoding for date and time values.
- a 4-byte encoding may be represented by a 32-bit integer, and offers a compact representation of information that may be easily communicated by devices, and consumed and represented by a variety of information processing systems.
- the encoding described herein may be used for date and time information that is included within communicated data such as credentials, public key certificates, authentication cryptograms, and the like.
- Such date and time information may be used to provide date and time information relevant to a signature, creation, expiration, modification, validity, revocation, audit, or logging action (among many other use cases) in a computer or other electronic system.
- RFC 5280 Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile
- CCL Certificate Revocation List
- RFC 8949 Concise Binary Object Representation (CBOR)
- IANA Internet Assigned Numbers Authority
- ISO/IEC 18013-5 Personal identification — ISO-compliant driving licence also specifies the use of a standard date/time string for the encoding of the Mobile Security Object (MSO) validity period.
- MSO Mobile Security Object
- Each of the aforementioned encodings introduces drawbacks or complexity. Some of the encodings are also larger than what is required for the ordinary needs of many information processing deployments. For example, consider the Temporenc encoding. With Temporenc, four-digit years are encoded using absolute values, so 12 bits are required to represent an absolute value of a year (0-4094). This is unnecessary for many settings of timestamps, because this range is much longer than the usual lifetimes of the involved information processing deployments.
- the UNIX timestamp value measures the number of seconds elapsed since the Unix epoch (00:00:00 UTC of January 1 1970) in a 4-byte data value. If represented with a signed 32-bit integer, then the UNIX timestamp value does not allow values past January 19, 2038. If represented with an unsigned 32-bit integer, then the UNIX timestamp value allows values until 2106.
- any other epoch- derived timestamp value requires data constants and calculations to convert cumulative seconds since the epoch into a usable timestamp value, to determine the basic information of year, month, day, hour, minute, and second.
- the techniques discussed herein introduce approaches to shorten an encoding of date and time information, such as by the shortening of year data, removing sub-second precision, and removing other extraneous information such as time zone offset.
- This encoding is accomplished without the use of a seconds-based epoch time and the calculations needed to derive actual time values from an epoch.
- all but one data field including month, day, hour, minute, and second values — are represented by actual data values (e.g., 0 to 11 to represent a month value, 0 to 30 to represent a day value, 0 to 23 to represent an hour value, 0 to 59 to represent a minutes value, 0 to 59 to represent a seconds value).
- the only data field that is represented by an offset is the year, which can be represented by range of as much as 0 to 63 with 6 bits, 0 to 31 with 5 bits.
- This year offset referred to herein as a “calculated year value”, represents a calendar year value (e.g., 2025) as an offset (“e.g., “2”) relative to some reference calendar year (e.g., 2023 as a non-limiting example).
- the number of bits that are required to represent a four- digit year can be reduced to 6 or less bits, and a variety of formats can be used to represent Y/M/D/h/m/s values in 32 bits or less.
- offsets to represent a year, relative to some implied reference year or other defined value enable a 4-byte compact encoding which is smaller than prior approaches such as the Temporenc 5-byte encoding.
- the implied reference value e.g., a reference calendar year
- the implied reference value can be shifted to a new value based on the use of information external to the encoded data. For example, information that can be derived from the version of the user credentials, the public key certificates, or the authentication protocol, may inherently designate a specific reference year and a corresponding range of offset year values.
- Version 1 of an authentication protocol, released in 2021 might define a 6-bit range of offset year values (e.g., 0-62) that are added to reference year 2021 to refer to years 2021-2083.
- Version 2 of the authentication protocol, released in 2025 could then define the same 6-bit range of year values (e.g., 0-62) that are added to reference year 2025 to refer to years 2025-2087.
- the use of external information to determine the reference year can even enable the use of a calculated year value encoded over fewer bits (e.g., a 5-bit or a 4-bit calculated year value), so that the remaining bits can be used to represent other encoded information.
- the encodings discussed herein establish a useful approach for representing date and time values from or for a timestamp with a fixed, compact byte length. This enables an encoded date and time value to be represented or stored in a system as a 32- bit (4-byte) integer, and two timestamps to be represented as a single 64-bit (8-byte) integer.
- the encodings discussed herein enable an efficient conversion from or to different date/time timestamp representations that maintain values in the Y/M/D/h/m/s format, because the encoding includes data values that directly represent the M/D/h/m/s values, and conversion from or to an absolute year value only involves a subtraction of a reference year value from an absolute year value or an addition of a reference year value to an offset year value, respectively.
- FIG. 1 illustrates an example system 100 which performs communications of encoded date and time information among devices and computing entities.
- System 100 can generally include one or more computing devices 102 (e.g., personal computer 102A, mobile device 102B), one or more cloud computing systems 114, and one or more electronic devices 106.
- the computing devices 102 may be connected via a communication network 110 to a cloud service 104 implemented on the one or more cloud computing systems 114; likewise, the electronic devices 106 may be connected via a communication network 112 to the cloud service 104.
- the communication network 110, 112 may be any suitable wired or wireless network, such as but not limited to a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), a mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), a Plain Old Telephone (POTS) network, a wireless data network (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), any network based on the IEEE 802.15.4 family of standards, and a peer-to-peer (P2P) network, or any suitable combination of wired and/or wireless networks.
- LAN local area network
- WAN wide area network
- a packet data network e.g., the Internet
- POTS Plain Old Telephone
- POTS Plain Old Telephone
- a wireless data network e.g., the IEEE 802.11 family of standards known as Wi-
- a credential device may generally include any device that carries (provides or obtains) evidence of authority, status, rights, and/or entitlement to privileges for a holder of the credential device, including with the use of decoded or encoded date and time information as discussed herein.
- a credential device may be provided in any suitable form factor.
- Example credential devices include, but are not limited to, RFID smartcards or other proximity -based cards, access control cards, electronic keys, key fobs, suitable near field communications (NFC)- enabled devices, tags, personal electronic devices, such as mobile phones, tablet PCs, wearable electronic devices, or PDAs, or any device configurable to emulate a credential.
- a credential device may generally include memory, storing, for example, one or more user credentials or credential data and any program instructions, and a reader interface (e.g., an antenna and Integrated Circuit (IC) chip), which permits the credential device to process instructions and/or exchange data with another device.
- a reader device such as a wireless reader device that can communicate with credential or key devices via wireless technologies, such as RFID or PAN technologies, such as the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, UWB, etc.
- Such a reader device may include a PIN pad, touch screen, fingerprint reader, magnetic stripe reader, chip reader, or other nonwireless input means for receiving credential or other information, such as a PIN or other secret code, biometric information such as a fingerprint, or information from a magnetic stripe card or chip card, for example. Additional features of the electronic devices 106 are discussed with reference to an example device 600 in FIG. 6.
- Cloud service 104 may be any suitable combination of hardware and/or software components providing a service consistent with the examples herein, including a credentialing service or other data processing services that provides or uses the encoded or decoded date and time information.
- cloud service 104 may utilize one or more cloud computing systems 114 (e.g., networked servers or server clusters) and associated network router(s), switch(es), or bridge(s), for connecting, administrating, and/or managing the service.
- a certificate 116 may be generated and communicated among the entities (e.g., devices 106, cloud service 104, computing systems 114, or computing devices 102).
- This certificate 116 may include encoded date-time information using the format herein, and specifically as a 4-byte integer.
- Each of the entities e.g., devices 106, cloud service 104, computing systems 114, or computing devices 102 may include functionality to encode and decode the date-time information.
- the cloud computing systems 114 may encode a timestamp into the 4-byte encoded date/time 118 to represent some signature or expiration date.
- the device which receives the certificate 116 can perform basic operations to decode Y/M/D/h/m/s values (and, to re-construct a timestamp) from the 4-byte encoded date/time 118.
- FIG. 2 illustrates an example encoding format for date and time information, using an example encoding format for a date/time stamp provided from a string of 4 bytes (32 bits).
- This encoding illustrates a representation of a binary encoding 210 of an example time/date data value (October 6, 2024, 08: 10:01 pm), and a hexadecimal encoding 220 of this time/date data value.
- the structure of this data encoding is provided as follows.
- First 6 bits - Year An integer in a defined range of (0. . .62), which is a calculated year value that represents an actual calendar year value as an offset (e.g., offset from an implied reference calendar year).
- Value 63 may be used as a special value, such as to indicate that the date/time timestamp is uninitialized, missing, or invalid.
- Next 5 bits - Day An integer in the range 0...30. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
- Next 5 bits - Hour An integer in the range 0...23. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
- Next 6 bits - Minutes An integer in the range 0...59. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
- Next 6 bits - Seconds An integer in the range 0...59. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
- UTC time zone is represented as follows (with “
- Such a date/time timestamp may be nested arbitrarily in other data formats or encodings, according to the data protocol in use.
- the previous timestamp may be nested in a DER-TLV-encoded byte string or in a CBOR-core-deterministic-encoded byte string, which results in the following encodings.
- FIG. 3 illustrates example operations performed at a source device 310 and at a receiver device 320 based on encoded date and time information.
- the source device 310 and the receiver device 320 may comprise any combination of the devices or systems discussed above, such as devices 106, cloud service 104, computing systems 114, or computing devices 102.
- the source device 310 generates an encoding of date and time information, based on a system timestamp (e.g., a timestamp of the source device) or based on another source of timestamp data.
- the encoding operation may be performed according to the methods discussed below depicted in FIG. 4.
- Communication 301 is used to communicate the encoded date and time information between the source device 310 and the receiver device 320. As indicated above, such communications may be performed using any suitable communication protocol, such as but not limited to one or more wireless communication protocols such as the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like.
- the encoded date and time information may be communicated in connection with data transferred for a certificate or another data structure.
- the encoded date and time information may also be communicated in connection with other data communication encodings and protocols (such as nested within CBOR or DER data encodings).
- the receiver device 320 performs decoding of the date and time information, to generate a timestamp from the encoded data.
- the decoding operation may be performed according to the methods discussed below depicted in FIG. 5.
- the receiver device 320 performs one or more device operations, based on the timestamp generated from the encoded data. This may include any number of verification, authentication, or attestation operations, or the trigger or scheduling of specific device functions, based on the use of the date and time information from the timestamp.
- FIG. 4 illustrates a flowchart 400 of an example method of encoding a timestamp. This method may be performed by any of the devices or systems discussed herein, in connection with any of the timestamp encoding use cases discussed herein.
- Operation 410 includes identifying date and time information to be encoded. This may include identify the following values of date and time: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value.
- the time value includes an hour value, a minutes value, and a seconds value. Other values or derivatives of such values may be represented as discussed herein.
- Operation 420 includes generating encoded timestamp data from the identified date and time information.
- this encoding is established as a 4-byte encoded data value, having a sequence of bits that represents time and date information.
- This sequence may include data arranged in the following order: bits to represent the calculated year value; followed by bits to represent the month value; followed by bits to represent the day value; followed by bits to represent the time value.
- the bits that represent the time value may include data arranged in the following order: bits to represent the hour value, followed by bits to represent the minutes value, followed by bits to represent the seconds value.
- the reference calendar year (used to calculate the actual year value, by adding or subtracting the offset to a value of the reference calendar year) may be defined by a data protocol or specification, or may be derived from external information.
- the respective bits to represent the calculated year value, the month value, the day value, and the time value may be arranged based on a data format for encoding respective values.
- This data format may define a data value range that represents the calculated year value with 6-bit integer values of 0 to 62, while using an integer value of 63 to indicate information relating to the calendar year value or date (e.g., an invalid value or date).
- This data format may also define data value ranges for the remaining fields such as: a month with 4-bit integer values of 0 to 11, with integer values of 12 to 15 that indicate information relating to the month value or date (e.g., an invalid value); a day with 5-bit integer values of 0 to 30, with an integer value of 31 that indicates information relating to the day value or date (e.g., an invalid value); an hour with 5-bit integer values of 0 to 23, with integer values of 24 to 31 that indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, with integer values of 60 to 63 that indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, with integer values of 60 to 63 that indicate information relating to the seconds value or time.
- Operation 430 includes storing or outputting the encoded timestamp data.
- the 4-byte encoded data may be stored, output, or represented in a device or system as an unsigned 32-bit integer.
- this unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, with the format of the hexadecimal encoding of the byte string being defined according to a data protocol or format.
- Operation 440 is an optional operation that includes transmitting one or more communication signal that includes the encoded timestamp data (e.g., a communication signal that represents data including the 4-byte encoded data).
- the data including the 4-byte encoded data may be communicated as part of a data transmission that comprises: a user credential, a public key certificate, or an authentication cryptogram.
- FIG. 5 illustrates a flowchart 500 of a method of decoding a timestamp. This method may correspond to the operations performed in flowchart 400, but may also include additional or variations of such operations.
- Operation 510 is an optional operation that includes receiving a communication signal, including encoded timestamp data.
- a device may receive a communication signal that represents data (e.g., a user credential, a public key certificate, or an authentication cryptogram) that includes the 4-byte encoded data value.
- This 4-byte encoded data value may be represented as an unsigned 32-bit integer in the device that performs the decoding method.
- the data may be received as a value in a hexadecimal encoding of a byte string, such as where a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
- Operation 520 includes parsing the encoded timestamp data (e.g., the 4-byte encoded data value) to identify a sequence of bits.
- This sequence may include data arranged in the following order: bits that represent an offset from a reference calendar year; bits that represent a month value; bits that represent a day value; and bits that represent a time value (e.g., an hour value, a minutes value, and a seconds value, where bits that represent the time value include a sequence of bits to represent the hour value, bits to represent the minutes value, and bits to represent the seconds value).
- the respective bits that represent the offset from the reference calendar year, the month value, the day value, the hour value, the minutes value, and the seconds value may be arranged based on a data format for encoding respective values.
- This data format may define respective data value range that represents a calculated year value, a month, a day, an hour, a minute, and a second, using the format discussed with reference to operation 420, above.
- the reference calendar year may be defined by a data protocol or specification, or by information associated with some external information.
- Operation 530 includes determining date and time information from the sequence of bits. This may include determining: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from by applying (e.g., adding or subtracting) the offset to a value of the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value (e.g., an hour value, a minutes value, and a seconds value) determined from the bits that represent the time value.
- Operation 540 includes storing the timestamp in a device or computing system, based on the determined date and time information. This may include converting the timestamp into another format, storing or accessing the timestamp in memory, and performing other operations to persist, verify, or use the timestamp in the device or computing system or device.
- FIG. 6 illustrates a block diagram schematic of various components of an example electronic device 600, such as implemented by the electronic device 106.
- electronic device 600 can include one or more of a memory 602, a processor 604, one or more antennas 606, communication circuitry 608, a network interface device 610, a user interface 612, and a power source 614 or like power supply.
- the electronic device 600 may take a variety of form factors such as a mounted device, a free-standing device, or a portable device (such as but not limited to a mobile device).
- the electronic device 600 may be implemented as a component of a mobile device (e.g., smartphone) of the user, such as a device that performs various date and time operations such as in connection with credential presentation and verification.
- a mobile device e.g., smartphone
- Memory 602 can be used in connection with the execution of application programming or instructions by processor 604, and for the temporary or long-term storage of program executable instructions 616 or instruction sets and/or credential or authorization data 618, such as credential data, credential authorization data, or access control data or instructions which include encoded or decoded date and time information.
- memory 602 can contain executable instructions 616 that are used by the processor 604 to run functions or perform determinations based on credential or authorization data 618, including based on encoded and decoded date and time information as discussed herein.
- Memory 602 can comprise a computer readable medium that can be any medium that can contain, store, communicate, or transport data, program code, or instructions for use by or in connection with the device 600.
- the computer readable medium can be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device. More specific examples of suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or EEPROM), Dynamic RAM (DRAM), any solid-state storage device, in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device.
- Computer readable media includes, but is not to be confused with, computer readable storage medium, which is intended to cover all physical, non-transitory, or similar embodiments of computer readable media.
- Processor 604 can correspond to one or more computer processing devices or resources.
- processor 604 can be provided as silicon, as a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), any other type of Integrated Circuit (IC) chip, a collection of IC chips, or the like.
- processor 604 can be provided as a microprocessor, Central Processing Unit (CPU), or plurality of microprocessors or CPUs that are configured to execute instruction sets 620 stored in an internal memory and/or memory 602.
- Antenna 606 can correspond to one or multiple antennas and can be configured to provide for wireless communications between, for example, device 600 and a credential or key device.
- Antenna(s) 606 can be arranged to operate using one or more wireless communication protocols and operating frequencies including, but not limited to, the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like.
- antenna(s) 606 can be RF antenna(s), and as such, may transmit/receive RF signals through free-space to be received/transferred by a credential or key device having an RF transceiver.
- Communication circuitry 608 can be configured to communicate according to any suitable communications protocol with one or more different systems or devices either remote or local to the device 600. This may include communications with other control mechanisms or control systems, or other functional entities arranged in a system.
- Network interface device 610 includes hardware to facilitate communications with other devices, such as with cloud service 104, over a communication network, such as network 112, utilizing any one of a number of transfer protocols (e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.).
- transfer protocols e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.
- Example communication networks can include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), Plain Old Telephone (POTS) networks, wireless data networks (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), networks based on the IEEE 802.15.4 family of standards, and peer-to-peer (P2P) networks, among others.
- LAN local area network
- WAN wide area network
- packet data network e.g., the Internet
- mobile telephone or data networks e.g., 3GPP 4G/5G cellular networks
- POTS Plain Old Telephone
- wireless data networks e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoR
- network interface device 610 can include an Ethernet port or other physical jack, a Wi-Fi card, a Network Interface Card (NIC), a cellular interface (e.g., antenna, filters, and associated circuitry), or the like.
- network interface device 610 can include one or more antennas to wirelessly communicate using, for example, at least one of singleinput multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) techniques.
- SIMO singleinput multiple-output
- MIMO multiple-input multiple-output
- MISO multiple-input single-output
- User interface 612 can include one or more input devices and/or display devices.
- suitable user input devices that can be included in user interface 612 include, without limitation, one or more buttons, a keyboard, a mouse, a touch-sensitive surface, a stylus, a camera, a microphone, a PIN pad, touch screen, fingerprint reader, magnetic stripe reader, chip reader, etc.
- suitable user output devices that can be included in user interface 612 include, without limitation, one or more LEDs, an LCD panel, a display screen, a touchscreen, one or more lights, a speaker, etc. It should be appreciated that user interface 612 can also include a combined user input and user output device, such as a touch-sensitive display or the like.
- Power source 614 can be any suitable internal power source, such as a battery, capacitive power source or similar type of charge-storage device, etc., and/or can include one or more power conversion circuits suitable to convert external power into suitable power (e.g., conversion of externally-supplied AC power into DC power) for components of the device 600. Power source 614 can also include some implementation of surge protection circuitry to protect the components of device 600 from power surges.
- Device 600 can also include one or more interlinks, interconnects, or buses 622 operable to transmit communications between the various hardware components of the reader.
- a system bus 622 can be any of several types of commercially available bus structures or bus architectures.
- the device 600 may be embodied by a credential device or a reader device, or related equipment such as a control panel or other specialized electronic device for security or credential operations.
- the device 600 may include various programmed functionality for making access control determinations, including with the use of encoded and decoded date/time information as discussed herein. Based on the access control determinations, the device 600 or an associated a control panel can instruct a reader or another device to operate or command a control mechanism, or may directly operate or command a control mechanism.
- credential device may communicate the user’s credential or credential data to the reader, for example, via a suitable RFID or PAN technology.
- credential device can be a portable device having memory, storing one or more user credentials or credential data, and a reader interface (i.e., an antenna and Integrated Circuit (IC) chip), which permits the credential to exchange data with a reader device, such as reader, via a credential interface of the reader device, such as an antenna.
- IC Integrated Circuit
- credential device may include some, any, or all of the various components described above with respect to the block diagram schematic of FIG. 6.
- a reader and credential device may be the same device, such as if the user is attempting to access a logical asset via the user’s own mobile device (e.g., mobile device 102B).
- a reader, control panel, and/or host server may be used to determine that the user’s credential or credential data provided by credential device is valid and/or authorized, followed by the reader, control panel, or host server to operate a control mechanism to allow access to a secure asset by the user having the credential device.
- FIG. 7 illustrates a block diagram schematic of various example components of an example computing machine 700 that can be used as, for example, computing device(s) 102, one or more hardware devices of cloud service 104, cloud computing system(s) 114, electronic device(s) 106, and the like.
- Examples, as described herein, can generally include, or can operate by, logic or a number of components, modules, or mechanisms in machine 700. Such components may be hardware, software, or firmware communicatively coupled to one or more processors in order to carry out the operations described herein.
- circuitry e.g., processing circuitry
- example machine 700 may include a collection of circuits implemented in tangible entities of the machine 700 that include hardware (e.g., simple circuits, gates, logic, etc.). Circuitry membership can be flexible over time.
- Circuitries include members that can, alone or in combination, perform specified operations when operating.
- hardware of the circuitry can be immutably designed to carry out a specific operation (e.g., hardwired).
- the hardware of the circuitry can include variably connected physical components (e.g., execution units, transistors, simple circuits, etc.) including a machine readable medium physically modified (e.g., magnetically, electrically, moveable placement of invariant massed particles, etc.) to encode instructions of the specific operation.
- a hardware constituent are changed, for example, from an insulator to a conductor or vice versa.
- the instructions permit embedded hardware (e.g., the execution units or a loading mechanism) to create members of the circuitry in hardware via the variable connections to carry out portions of the specific operation when in operation.
- the machine readable medium elements are part of the circuitry or are communicatively coupled to the other components of the circuitry when the device is operating.
- any of the physical components can be used in more than one member of more than one circuitry.
- execution units can be used in a first circuit of a first circuitry at one point in time and reused by a second circuit in the first circuitry, or by a third circuit in a second circuitry at a different time. Additional and/or more specific examples of components with respect to machine 700 follow.
- machine 700 can operate as a standalone device or can be connected (e.g., networked) to other machines. In a networked deployment, machine 700 can operate in the capacity of a server machine, a client machine, or both in server-client network environments. In some examples, machine 700 can act as a peer machine in a peer-to-peer (P2P) (or other distributed) network environment.
- P2P peer-to-peer
- Machine 700 can be or include a PC, a tablet, a compute node, a mobile telephone, a web appliance, a network router, switch or bridge, an RFID smartcard or other proximity -based card, access control card, electronic key, key fob, or any machine capable of executing instructions (sequential or otherwise) that specify actions to be taken by that machine.
- machine shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein, such as cloud computing, software as a service (SaaS), other computer cluster configurations.
- Machine 700 can include a hardware processor 702 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof) and a main memory 704, a static memory (e.g., memory or storage for firmware, microcode, a basic-input-output (BIOS), unified extensible firmware interface (UEFI), etc.) 706, and/or mass storage 708 (e.g., hard drives, tape drives, flash storage, or other block devices) some or all of which can communicate with each other via an interlink (e.g., bus) 734.
- a hardware processor 702 e.g., a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof
- main memory 704 e.g., a static memory (e.g., memory or storage for firmware, microcode, a basic-input-output (BIOS), unified extensible firmware interface (UEFI), etc.) 706, and/
- Machine 700 can further include a display device 710, an input device 712, and/or a user interface (UI) navigation device 714.
- suitable display devices include, without limitation, one or more LEDs, an LCD panel, a display screen, a touchscreen, one or more lights, etc.
- Example input devices and UI navigation devices include, without limitation, one or more buttons, a keyboard, a touch-sensitive surface, a stylus, a camera, a microphone, etc.
- one or more of the display device 710, input device 712, and/or UI navigation device 714 can be a combined unit, such as a touch screen display.
- Machine 700 can additionally include a signal generation device 718 (e.g., a speaker), a network interface device 720, one or more antennas 730, a power source 732, and one or more sensors 716, such as a global positioning system (GPS) sensor, compass, accelerometer, or other sensor.
- Machine 700 can include an output controller 728, such as a serial (e.g., universal serial bus (USB)), parallel, or other wired or wireless (e.g., infrared (IR), NFC, etc.) connection to communicate with or control one or more peripheral devices (e.g., a printer, card reader, etc.).
- a serial e.g., universal serial bus (USB)
- USB universal serial bus
- IR infrared
- NFC NFC
- Processor 702 can correspond to one or more computer processing devices or resources.
- processor 702 can be provided as silicon, as a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), any other type of Integrated Circuit (IC) chip, a collection of IC chips, or the like.
- processor 702 can be provided as a microprocessor, Central Processing Unit (CPU), or plurality of microprocessors or CPUs that are configured to execute instruction sets 722 stored in an internal memory and/or memory 704, 706 and mass storage 708.
- CPU Central Processing Unit
- Any of memory 704, 706 and mass storage 708 can be used in connection with the execution of application programming or instructions by processor 702 for performing any of the functionality or methods described herein, and for the temporary or long-term storage of program instructions 724 or instruction sets and/or other data for performing any of the functionality or methods described herein, such as for in-field encoding of access credentials as described herein.
- Any of memory 704, 706 and mass storage 708 can comprise a computer readable medium that can be any medium that can contain, store, communicate, or transport data, program code, or instructions 724 for use by or in connection with machine 700.
- the computer readable medium can be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device.
- suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or EEPROM), Dynamic RAM (DRAM), a solid-state storage device, in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device.
- RAM random access memory
- ROM read-only memory
- EPROM or EEPROM erasable programmable read-only memory
- DRAM Dynamic RAM
- solid-state storage device in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device.
- computer readable media includes, but is not to be confused with, computer readable storage medium, which is intended to cover all physical, non-transitory, or similar embodiments of computer readable media.
- Network interface device 720 includes hardware to facilitate communications with other devices over a communication network, such as networks 110, 112, etc., utilizing any one of a number of transfer protocols (e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.).
- transfer protocols e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.
- Example communication networks can include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), Plain Old Telephone (POTS) networks, wireless data networks (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), networks based on the IEEE 802.15.4 family of standards, and peer-to-peer (P2P) networks, among others.
- LAN local area network
- WAN wide area network
- packet data network e.g., the Internet
- mobile telephone or data networks e.g., 3GPP 4G/5G cellular networks
- POTS Plain Old Telephone
- wireless data networks e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoR
- network interface device 720 can include an Ethernet port or other physical jack, a Wi-Fi card, a Network Interface Card (NIC), a cellular interface (e.g., antenna, filters, and associated circuitry), or the like.
- network interface device 720 can include one or more antennas to wirelessly communicate using, for example, at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) techniques.
- SIMO single-input multiple-output
- MIMO multiple-input multiple-output
- MISO multiple-input single-output
- Antenna 730 can correspond to one or multiple antennas and can be configured to provide for wireless communications between machine 700 and another device.
- Antenna(s) 730 can be arranged to operate using one or more wireless communication protocols and operating frequencies including, but not limited to, the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like.
- antenna(s) 730 can be RF antenna(s), and as such, may transmit/receive RF signals through free-space to be received/transferred by another device having an RF transceiver.
- Power source 732 can be any suitable internal power source, such as a battery, capacitive power source or similar type of charge-storage device, etc., and/or can include one or more power conversion circuits suitable to convert external power into suitable power (e.g., conversion of externally-supplied AC power into DC power) for components of the machine 700. Power source 732 can also include some implementation of surge protection circuitry to protect the components of machine 700 from power surges.
- machine 700 can include one or more interlinks or buses 734 operable to transmit communications between the various hardware components of the machine.
- a system bus 734 can be any of several types of commercially available bus structures or bus architectures.
- Example 1 includes subject matter (such as a method) for encoding a timestamp, comprising: identifying date and time information to be encoded, the date and time information including: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value; generating 4-byte encoded data from the date and time information, the 4-byte encoded data having a sequence of bits including: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value; and outputting the 4-byte encoded data.
- Example 2 the subject matter of Example 1 optionally includes subject matter where the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits to represent the time value include a sequence of bits to represent the hour value, bits to represent the minutes value, and bits to represent the seconds value.
- Example 3 the subject matter of Example 2 optionally includes subject matter where respective bits to represent the calculated year value, the month value, the day value, the hour value, the minutes value, and the seconds value are arranged based on a data format for encoding respective values.
- Example 4 the subject matter of Example 3 optionally includes subject matter where the data format defines a data value range that represents the calculated year value with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
- Example 5 the subject matter of any one or more of Examples 3-4 optionally include subject matter where the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5-bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5-bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
- the subject matter of any one or more of Examples 1-5 optionally include subject matter where the reference calendar year is defined by a data protocol.
- Example 7 the subject matter of any one or more of Examples 1-6 optionally includes outputting of the 4-byte encoded data including transmitting a communication signal that represents data including the 4-byte encoded data.
- Example 8 the subject matter of Example 7 optionally includes subject matter where the data including the 4-byte encoded data comprises: a user credential, a public key certificate, or an authentication cryptogram.
- Example 9 the subject matter of any one or more of Examples 1-8 optionally include subject matter where the 4-byte encoded data is output as an unsigned 32-bit integer.
- Example 10 the subject matter of Example 9 optionally includes subject matter where the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
- Example 11 is a non-transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform any of the methods for encoding a timestamp of Examples 1 to 10.
- Example 12 is an apparatus, comprising: memory configured to store date and time information; and circuitry configured to perform any of the methods for encoding a timestamp of Examples 1 to 10.
- Example 13 is a method for obtaining date and time information from an encoded timestamp, comprising: parsing a 4-byte encoded data value to identify a sequence of bits including: bits that represent an offset from a reference calendar year; bits that represent a month value; bits that represent a day value; and bits that represent a time value; determining date and time information from the sequence of bits, the date and time information including: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from applying (e.g., adding or subtracting) the offset to a value the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value determined from the bits that represent the time value; and storing, in a memory of a computing device, a timestamp based on the determined date and time information.
- Example 14 the subject matter of Example 13 optionally includes subject matter where the time value determined from the bits that represent the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits that represent the time value include a sequence of bits that represent the hour value, bits that represent the minutes value, and bits that represent the seconds value.
- Example 16 the subject matter of Example 15 optionally includes subject matter where the data format defines a data value range that represents the offset from the reference calendar year with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
- Example 17 the subject matter of Example 16 optionally includes subject matter where the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5 -bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5 -bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
- the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5 -bit integer values of 0
- Example 18 the subject matter of any one or more of Examples 13-17 optionally include subject matter where the reference calendar year is defined by a data protocol.
- Example 21 the subject matter of any one or more of Examples 19-20 optionally include subject matter where the 4-byte encoded data value is represented in the computing device as an unsigned 32-bit integer.
- Example 22 the subject matter of Example 21 optionally includes subject matter where the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
- embodiments of the present disclosure may be embodied as a method (including, for example, a computer- implemented process, a business process, and/or any other process), apparatus (including, for example, a system, machine, device, computer program product, and/or the like), or a combination of the foregoing. Accordingly, embodiments of the present disclosure or portions thereof may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, middleware, microcode, hardware description languages, etc.), or an embodiment combining software and hardware aspects.
- embodiments of the present disclosure may take the form of a computer program product on a computer-readable medium or computer-readable storage medium, having computerexecutable program code embodied in the medium, that define processes or methods described herein.
- a processor or processors may perform the necessary tasks defined by the computer-executable program code.
- a computer readable medium may be any medium that can contain, store, communicate, or transport the program for use by or in connection with the systems disclosed herein.
- the computer readable medium may be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device.
- suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a compact disc read-only memory (CD-ROM), or other optical, magnetic, or solid state storage device.
- a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a compact disc read-only memory (CD-ROM), or other optical, magnetic, or solid state storage device.
- RAM random access memory
- ROM read-only memory
- EPROM or Flash memory erasable programmable read-only memory
- CD-ROM compact disc read-only memory
- computer-readable media includes, but is not to be confused with, computer-readable storage medium, which is intended to
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
Abstract
Various methods and implementations of encoding a timestamp, and decoding time and date information from the encoded time stamp, are described. An example method for encoding a timestamp includes: identifying date and time information to be encoded, based on: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value (that includes, for example, an hour value, a minutes value, and a seconds value); generating 4 bytes of encoded data from the date and time information, with a sequence of bits that represents: the calculated year value; the month value; the day value; and the time value; and outputting the 4-byte encoded timestamp data. A corresponding method of obtaining date and time information from the encoded timestamp data, by parsing the 4-byte encoded timestamp data, is also described.
Description
COMPACT ENCODING FOR TIMESTAMPS
TECHNICAL FIELD
[0001] Embodiments described herein generally relate to encoding and decoding schemes for data and particularly to encoding and decoding techniques used on date and time information, such as in connection with encoded timestamps and associated date and time representations.
BACKGROUND
[0002] The date and time information of a timestamp, used in computer systems and other electronic devices, may be represented by a variety of formats and data encoding. Two examples of data encodings that can be used to represent date and time values are encodings such as the Concise Binary Object Representation (CBOR) defined by the RFC 8949 standard, and Distinguished Encoding Rules (DER) defined by the ITU-T X.690 standard. [0003] For instance, a DER type-length-value (TLV) encoding (DER-TLV) of a date and time as a UTCTime value (e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as numerical values) may use 15 bytes, whereas a DER-TLV encoding of a date and time as a GeneralizedTime value (e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as numerical values) may use 17 bytes. Likewise, a CBOR core deterministic encoding of a date and time as a standard date/time string (e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as numerical values) may use 22 bytes, whereas a CBOR core deterministic encoding of a date and time as an epoch-based date/time value (e.g., that represents information including a month, day, year, hour, minute, and second in a UTC time zone as a number of seconds relative to the Unix epoch) may use 6 bytes.
[0004] Other encodings can represent date and time values using as few as 5 bytes. For instance, the Temporenc encoding format of a date and time as a “DT” (“Date + time”) type (e.g., that represents information including a month, day, year, hour minute, and second as numerical values) uses 5 bytes, and the Temporenc encoding of a date and time and timezone as a “DTZ” (“Date + time + time zone offset”) type (e.g., that represents information
including a month, day, year, hour minute, second, and UTC offset as numerical values) uses 6 bytes.
BRIEF SUMMARY
[0005] The following presents a simplified summary of one or more embodiments of the present disclosure in order to provide a basic understanding of such embodiments. This summary is not an extensive overview of all contemplated embodiments, and is intended to neither identify key or critical elements of all embodiments, nor delineate the scope of any or all embodiments.
[0006] The present disclosure, in one or more embodiments, relates to a method for encoding a timestamp. This method enables an encoding that stores time and date information in four bytes of data. The method comprises identifying date and time information to be encoded, generating 4-byte encoded data from the date and time information, and outputting the 4-byte encoded data. In an example, the date and time information to be encoded includes: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value (e.g., which includes an hour value, a minutes value, and a seconds value). Also in an example, the 4-byte encoded data provides a sequence of bits as follows: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value (e.g., which includes a sequence of bits that represents the hour value, the minutes value, and the seconds value). For instance, the calculated year value may be in a range of integers representable by 6 bits or less (e.g., 0-63), with the calculated year value to represent a calendar year value (e.g., 2023) as an offset from a reference calendar year (e.g., 2020). [0007] The present disclosure, in one or more embodiments, additionally relates to a method for decoding a timestamp. This method enables date and time information to be obtained from an encoded timestamp of four bytes of data. The method comprises parsing a 4-byte encoded data value to identify a sequence of bits, determining date and time information from the sequence of bits, and storing, in a memory of a computing device, a timestamp based on the determined date and time information. In an example, the 4-byte encoded data value follows the sequence of bits referenced above: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value (e.g., which includes a sequence of bits that represents the hour value, the minutes value, and the seconds value). Also in an example, the date and time information that is decoded includes: a calendar year value determined from the bits that
represent the offset from the reference calendar year, based on calculating the calendar year value from applying (e.g., adding or subtracting) the offset to a value of the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value (e.g., hour value, minutes value, and seconds value) determined from the bits to represent the time value. For instance, if the calculated year value is the offset value “5”, the intended calendar year value (e.g., 2025) can be calculated by adding the offset value to the reference calendar year (e.g., 2020).
[0008] The present disclosure, in one or more embodiments, additionally relates to a non- transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform the methods of encoding a timestamp or decoding a timestamp, based on the methods described herein.
[0009] The present disclosure, in one or more embodiments, additionally relates to an apparatus (e.g., a computing device, an embedded device, controller, electronic component or subsystem, etc.) comprising memory configured or adapted to store date and time information, and circuitry configured or adapted to perform the methods of encoding a timestamp or decoding a timestamp, based on the methods described herein.
[0010] While multiple embodiments are disclosed, still other embodiments of the present disclosure will become apparent to those skilled in the art from the following detailed description, which shows and describes illustrative embodiments of the invention. As will be realized, the various embodiments of the present disclosure are capable of modifications in various obvious aspects, all without departing from the scope of the present disclosure. Accordingly, the drawings and detailed description are to be regarded as illustrative in nature and not restrictive.
BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In the drawings, which are not necessarily drawn to scale, like numerals may describe similar components in different views. Like numerals having different letter suffixes may represent different instances of similar components. Some embodiments are illustrated by way of example, and not limitation, in the figures of the accompanying drawings in which:
[0012] FIG. 1 illustrates communications of encoded date and time information among devices and computing entities, according to an example;
[0013] FIG. 2 illustrates an encoding format for date and time information, according to an example;
[0014] FIG. 3 illustrates operations performed at a source device and at a receiver device based on encoded date and time information, according to an example;
[0015] FIG. 4 illustrates a flowchart of a method of encoding a timestamp, according to an example;
[0016] FIG. 5 illustrates a flowchart of a method of decoding a timestamp, according to an example;
[0017] FIG. 6 illustrates a block diagram schematic of various components of an example electronic device configured to generate or use encoded date and time information, according to an example; and
[0018] FIG. 7 illustrates a block diagram schematic of various components of an example computing machine configured to generate or use encoded date and time information, according to an example.
DETAILED DESCRIPTION
[0019] The present disclosure generally relates to encoding date and time values used in timestamps, including in some examples with the definition and use of a 4-byte encoding for date and time values. A 4-byte encoding may be represented by a 32-bit integer, and offers a compact representation of information that may be easily communicated by devices, and consumed and represented by a variety of information processing systems. Among other examples, the encoding described herein may be used for date and time information that is included within communicated data such as credentials, public key certificates, authentication cryptograms, and the like. Such date and time information may be used to provide date and time information relevant to a signature, creation, expiration, modification, validity, revocation, audit, or logging action (among many other use cases) in a computer or other electronic system.
[0020] Current communication and authentication standards use of a variety of date and time encodings, often based on the specific communication or authentication use case. As non-limiting examples, RFC 5280 (“Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile”) requires the validity periods of X.509 public key certificates to be encoded using either ASN.l data type UTCTime or GeneralizedTime, the latter of which supports sub-second precision. As noted above, RFC 8949 (“Concise Binary Object Representation (CBOR)) specifies two CBOR tagged data types registered by the
Internet Assigned Numbers Authority (IANA) — a standard date/time string and an epochbased date/time — both supporting sub-second precision. ISO/IEC 18013-5 (“Personal identification — ISO-compliant driving licence”) also specifies the use of a standard date/time string for the encoding of the Mobile Security Object (MSO) validity period.
[0021] Each of the aforementioned encodings introduces drawbacks or complexity. Some of the encodings are also larger than what is required for the ordinary needs of many information processing deployments. For example, consider the Temporenc encoding. With Temporenc, four-digit years are encoded using absolute values, so 12 bits are required to represent an absolute value of a year (0-4094). This is unnecessary for many settings of timestamps, because this range is much longer than the usual lifetimes of the involved information processing deployments.
[0022] The use of epoch-based approaches also introduces other drawbacks or complexity. For instance, the UNIX timestamp value measures the number of seconds elapsed since the Unix epoch (00:00:00 UTC of January 1 1970) in a 4-byte data value. If represented with a signed 32-bit integer, then the UNIX timestamp value does not allow values past January 19, 2038. If represented with an unsigned 32-bit integer, then the UNIX timestamp value allows values until 2106. In either case, use of the UNIX timestamp value — or any other epoch- derived timestamp value — requires data constants and calculations to convert cumulative seconds since the epoch into a usable timestamp value, to determine the basic information of year, month, day, hour, minute, and second.
[0023] The techniques discussed herein introduce approaches to shorten an encoding of date and time information, such as by the shortening of year data, removing sub-second precision, and removing other extraneous information such as time zone offset. This encoding is accomplished without the use of a seconds-based epoch time and the calculations needed to derive actual time values from an epoch. In one example encoding discussed below, all but one data field — including month, day, hour, minute, and second values — are represented by actual data values (e.g., 0 to 11 to represent a month value, 0 to 30 to represent a day value, 0 to 23 to represent an hour value, 0 to 59 to represent a minutes value, 0 to 59 to represent a seconds value). In this example, the only data field that is represented by an offset is the year, which can be represented by range of as much as 0 to 63 with 6 bits, 0 to 31 with 5 bits. This year offset, referred to herein as a “calculated year value”, represents a calendar year value (e.g., 2025) as an offset (“e.g., “2”) relative to some reference calendar year (e.g., 2023 as a non-limiting example). As a result, the number of bits that are required to represent a four-
digit year can be reduced to 6 or less bits, and a variety of formats can be used to represent Y/M/D/h/m/s values in 32 bits or less.
[0024] The use of offsets to represent a year, relative to some implied reference year or other defined value, enable a 4-byte compact encoding which is smaller than prior approaches such as the Temporenc 5-byte encoding. Additionally, if needed, the implied reference value (e.g., a reference calendar year) can be shifted to a new value based on the use of information external to the encoded data. For example, information that can be derived from the version of the user credentials, the public key certificates, or the authentication protocol, may inherently designate a specific reference year and a corresponding range of offset year values. For instance, Version 1 of an authentication protocol, released in 2021, might define a 6-bit range of offset year values (e.g., 0-62) that are added to reference year 2021 to refer to years 2021-2083. Version 2 of the authentication protocol, released in 2025, could then define the same 6-bit range of year values (e.g., 0-62) that are added to reference year 2025 to refer to years 2025-2087. The use of external information to determine the reference year can even enable the use of a calculated year value encoded over fewer bits (e.g., a 5-bit or a 4-bit calculated year value), so that the remaining bits can be used to represent other encoded information.
[0025] Accordingly, the encodings discussed herein establish a useful approach for representing date and time values from or for a timestamp with a fixed, compact byte length. This enables an encoded date and time value to be represented or stored in a system as a 32- bit (4-byte) integer, and two timestamps to be represented as a single 64-bit (8-byte) integer. Likewise, the encodings discussed herein enable an efficient conversion from or to different date/time timestamp representations that maintain values in the Y/M/D/h/m/s format, because the encoding includes data values that directly represent the M/D/h/m/s values, and conversion from or to an absolute year value only involves a subtraction of a reference year value from an absolute year value or an addition of a reference year value to an offset year value, respectively.
[0026] FIG. 1 illustrates an example system 100 which performs communications of encoded date and time information among devices and computing entities. System 100 can generally include one or more computing devices 102 (e.g., personal computer 102A, mobile device 102B), one or more cloud computing systems 114, and one or more electronic devices 106. The computing devices 102 may be connected via a communication network 110 to a cloud service 104 implemented on the one or more cloud computing systems 114; likewise, the electronic devices 106 may be connected via a communication network 112 to the cloud
service 104. The communication network 110, 112 may be any suitable wired or wireless network, such as but not limited to a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), a mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), a Plain Old Telephone (POTS) network, a wireless data network (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), any network based on the IEEE 802.15.4 family of standards, and a peer-to-peer (P2P) network, or any suitable combination of wired and/or wireless networks.
[0027] Examples of the computing devices 102 may include any suitable computing machine, such as but not limited to a personal computer (PC), a tablet PC, a personal digital assistant (PDA), or a mobile telephone (e.g., smartphone). The computing devices 102 may operate as an administrator device that is owned by, issued to, or operated by a user managing access rights or access credentials, such as but not limited to an administrator or security officer employed by the owner of an access control system. Additional features of the computing devices 102 are discussed with reference to an example machine 700 in FIG. 7. [0028] Examples of the electronic devices 106 may include a credential device. A credential device may generally include any device that carries (provides or obtains) evidence of authority, status, rights, and/or entitlement to privileges for a holder of the credential device, including with the use of decoded or encoded date and time information as discussed herein. A credential device may be provided in any suitable form factor. Example credential devices include, but are not limited to, RFID smartcards or other proximity -based cards, access control cards, electronic keys, key fobs, suitable near field communications (NFC)- enabled devices, tags, personal electronic devices, such as mobile phones, tablet PCs, wearable electronic devices, or PDAs, or any device configurable to emulate a credential. A credential device may generally include memory, storing, for example, one or more user credentials or credential data and any program instructions, and a reader interface (e.g., an antenna and Integrated Circuit (IC) chip), which permits the credential device to process instructions and/or exchange data with another device. Other examples of the electronic devices include a reader device, such as a wireless reader device that can communicate with credential or key devices via wireless technologies, such as RFID or PAN technologies, such as the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, UWB, etc. Such a reader device may include a PIN pad, touch screen, fingerprint reader, magnetic stripe reader, chip reader, or other nonwireless input means for receiving credential or other information, such as a PIN or other
secret code, biometric information such as a fingerprint, or information from a magnetic stripe card or chip card, for example. Additional features of the electronic devices 106 are discussed with reference to an example device 600 in FIG. 6.
[0029] Cloud service 104 may be any suitable combination of hardware and/or software components providing a service consistent with the examples herein, including a credentialing service or other data processing services that provides or uses the encoded or decoded date and time information. In some examples, cloud service 104 may utilize one or more cloud computing systems 114 (e.g., networked servers or server clusters) and associated network router(s), switch(es), or bridge(s), for connecting, administrating, and/or managing the service.
[0030] As part of the operations performed in the system 100, a certificate 116 may be generated and communicated among the entities (e.g., devices 106, cloud service 104, computing systems 114, or computing devices 102). This certificate 116 may include encoded date-time information using the format herein, and specifically as a 4-byte integer. Each of the entities (e.g., devices 106, cloud service 104, computing systems 114, or computing devices 102) may include functionality to encode and decode the date-time information. For example, in connection with generating the certificate 116, the cloud computing systems 114 may encode a timestamp into the 4-byte encoded date/time 118 to represent some signature or expiration date. The device which receives the certificate 116, such as the computing devices 102 or the electronic devices 106, can perform basic operations to decode Y/M/D/h/m/s values (and, to re-construct a timestamp) from the 4-byte encoded date/time 118.
[0031] FIG. 2 illustrates an example encoding format for date and time information, using an example encoding format for a date/time stamp provided from a string of 4 bytes (32 bits). This encoding illustrates a representation of a binary encoding 210 of an example time/date data value (October 6, 2024, 08: 10:01 pm), and a hexadecimal encoding 220 of this time/date data value. The structure of this data encoding is provided as follows.
[0032] First 6 bits - Year: An integer in a defined range of (0. . .62), which is a calculated year value that represents an actual calendar year value as an offset (e.g., offset from an implied reference calendar year). Value 63 may be used as a special value, such as to indicate that the date/time timestamp is uninitialized, missing, or invalid.
[0033] As suggested above, a smaller range of values and fewer bits may be used to designate a calculated year value. Additionally, although the offset example of (0. . .62) is used to represent positive (future) values relative to the implied reference calendar year, in
another example, the range may enable negative (past) values relative to the implied reference calendar year (e.g.., with a range of -31...31, where -32 may be used as a special value).
[0034] Next 4 bits - Month: An integer in the range 0...11, any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
[0035] Next 5 bits - Day: An integer in the range 0...30. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
[0036] Next 5 bits - Hour: An integer in the range 0...23. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
[0037] Next 6 bits - Minutes: An integer in the range 0...59. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
[0038] Next 6 bits - Seconds: An integer in the range 0...59. Any other value may be used as a special value, such as to redundantly indicate that the date/time timestamp or some information in the date/time timestamp is uninitialized, missing, or invalid.
[0039] For example, if the implied reference calendar year is 2022, the binary encoding of October 6, 2024, 08: 10:01 pm, UTC time zone is represented as follows (with “||” characters separating the respective sections of the encoding):
[0040] 000010 || 1001 || 00101 || 10100 || 001010 || 000001
[0041] As a result, the hexadecimal encoding of this date/time timestamp is as follows.
[0042] 0A 4B 42 81
[0043] Such a date/time timestamp may be nested arbitrarily in other data formats or encodings, according to the data protocol in use. For example, the previous timestamp may be nested in a DER-TLV-encoded byte string or in a CBOR-core-deterministic-encoded byte string, which results in the following encodings.
[0044] DER-TLV: 04 04 0A 4B 42 81
[0045] CBOR: 44 0A 4B 42 81
[0046] FIG. 3 illustrates example operations performed at a source device 310 and at a receiver device 320 based on encoded date and time information. The source device 310 and the receiver device 320 may comprise any combination of the devices or systems discussed
above, such as devices 106, cloud service 104, computing systems 114, or computing devices 102.
[0047] At operation 311, the source device 310 generates an encoding of date and time information, based on a system timestamp (e.g., a timestamp of the source device) or based on another source of timestamp data. The encoding operation may be performed according to the methods discussed below depicted in FIG. 4.
[0048] Communication 301 is used to communicate the encoded date and time information between the source device 310 and the receiver device 320. As indicated above, such communications may be performed using any suitable communication protocol, such as but not limited to one or more wireless communication protocols such as the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like. The encoded date and time information may be communicated in connection with data transferred for a certificate or another data structure. The encoded date and time information may also be communicated in connection with other data communication encodings and protocols (such as nested within CBOR or DER data encodings).
[0049] At operation 321, the receiver device 320 performs decoding of the date and time information, to generate a timestamp from the encoded data. The decoding operation may be performed according to the methods discussed below depicted in FIG. 5.
[0050] At operation 322, the receiver device 320 performs one or more device operations, based on the timestamp generated from the encoded data. This may include any number of verification, authentication, or attestation operations, or the trigger or scheduling of specific device functions, based on the use of the date and time information from the timestamp. [0051] FIG. 4 illustrates a flowchart 400 of an example method of encoding a timestamp. This method may be performed by any of the devices or systems discussed herein, in connection with any of the timestamp encoding use cases discussed herein.
[0052] Operation 410 includes identifying date and time information to be encoded. This may include identify the following values of date and time: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value. In a specific example, the time value includes an hour value, a minutes value, and a seconds value. Other values or derivatives of such values may be represented as discussed herein.
[0053] Operation 420 includes generating encoded timestamp data from the identified date and time information. In an example, this encoding is established as a 4-byte encoded data
value, having a sequence of bits that represents time and date information. This sequence may include data arranged in the following order: bits to represent the calculated year value; followed by bits to represent the month value; followed by bits to represent the day value; followed by bits to represent the time value. The bits that represent the time value may include data arranged in the following order: bits to represent the hour value, followed by bits to represent the minutes value, followed by bits to represent the seconds value. The reference calendar year (used to calculate the actual year value, by adding or subtracting the offset to a value of the reference calendar year) may be defined by a data protocol or specification, or may be derived from external information.
[0054] Consistent with the examples herein, the respective bits to represent the calculated year value, the month value, the day value, and the time value (the hour value, the minutes value, and the seconds value) may be arranged based on a data format for encoding respective values. This data format may define a data value range that represents the calculated year value with 6-bit integer values of 0 to 62, while using an integer value of 63 to indicate information relating to the calendar year value or date (e.g., an invalid value or date). This data format may also define data value ranges for the remaining fields such as: a month with 4-bit integer values of 0 to 11, with integer values of 12 to 15 that indicate information relating to the month value or date (e.g., an invalid value); a day with 5-bit integer values of 0 to 30, with an integer value of 31 that indicates information relating to the day value or date (e.g., an invalid value); an hour with 5-bit integer values of 0 to 23, with integer values of 24 to 31 that indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, with integer values of 60 to 63 that indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, with integer values of 60 to 63 that indicate information relating to the seconds value or time.
[0055] Operation 430 includes storing or outputting the encoded timestamp data. For instance, the 4-byte encoded data may be stored, output, or represented in a device or system as an unsigned 32-bit integer. As a further example, this unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, with the format of the hexadecimal encoding of the byte string being defined according to a data protocol or format.
[0056] Operation 440 is an optional operation that includes transmitting one or more communication signal that includes the encoded timestamp data (e.g., a communication signal that represents data including the 4-byte encoded data). For instance, the data including the 4-byte encoded data may be communicated as part of a data transmission that comprises: a user credential, a public key certificate, or an authentication cryptogram.
[0057] FIG. 5 illustrates a flowchart 500 of a method of decoding a timestamp. This method may correspond to the operations performed in flowchart 400, but may also include additional or variations of such operations.
[0058] Operation 510 is an optional operation that includes receiving a communication signal, including encoded timestamp data. For instance, a device may receive a communication signal that represents data (e.g., a user credential, a public key certificate, or an authentication cryptogram) that includes the 4-byte encoded data value. This 4-byte encoded data value may be represented as an unsigned 32-bit integer in the device that performs the decoding method. In further examples, the data may be received as a value in a hexadecimal encoding of a byte string, such as where a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
[0059] Operation 520 includes parsing the encoded timestamp data (e.g., the 4-byte encoded data value) to identify a sequence of bits. This sequence may include data arranged in the following order: bits that represent an offset from a reference calendar year; bits that represent a month value; bits that represent a day value; and bits that represent a time value (e.g., an hour value, a minutes value, and a seconds value, where bits that represent the time value include a sequence of bits to represent the hour value, bits to represent the minutes value, and bits to represent the seconds value).
[0060] As discussed herein, the respective bits that represent the offset from the reference calendar year, the month value, the day value, the hour value, the minutes value, and the seconds value may be arranged based on a data format for encoding respective values. This data format may define respective data value range that represents a calculated year value, a month, a day, an hour, a minute, and a second, using the format discussed with reference to operation 420, above. Likewise, the reference calendar year may be defined by a data protocol or specification, or by information associated with some external information.
[0061] Operation 530 includes determining date and time information from the sequence of bits. This may include determining: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from by applying (e.g., adding or subtracting) the offset to a value of the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value (e.g., an hour value, a minutes value, and a seconds value) determined from the bits that represent the time value.
[0062] Operation 540 includes storing the timestamp in a device or computing system, based on the determined date and time information. This may include converting the timestamp into another format, storing or accessing the timestamp in memory, and performing other operations to persist, verify, or use the timestamp in the device or computing system or device.
[0063] FIG. 6 illustrates a block diagram schematic of various components of an example electronic device 600, such as implemented by the electronic device 106. In general, electronic device 600 can include one or more of a memory 602, a processor 604, one or more antennas 606, communication circuitry 608, a network interface device 610, a user interface 612, and a power source 614 or like power supply. The electronic device 600 may take a variety of form factors such as a mounted device, a free-standing device, or a portable device (such as but not limited to a mobile device). Moreover, in some examples, the electronic device 600 may be implemented as a component of a mobile device (e.g., smartphone) of the user, such as a device that performs various date and time operations such as in connection with credential presentation and verification.
[0064] Memory 602 can be used in connection with the execution of application programming or instructions by processor 604, and for the temporary or long-term storage of program executable instructions 616 or instruction sets and/or credential or authorization data 618, such as credential data, credential authorization data, or access control data or instructions which include encoded or decoded date and time information. For example, memory 602 can contain executable instructions 616 that are used by the processor 604 to run functions or perform determinations based on credential or authorization data 618, including based on encoded and decoded date and time information as discussed herein. Memory 602 can comprise a computer readable medium that can be any medium that can contain, store, communicate, or transport data, program code, or instructions for use by or in connection with the device 600. The computer readable medium can be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device. More specific examples of suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or EEPROM), Dynamic RAM (DRAM), any solid-state storage device, in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device. Computer readable media includes, but is not to be confused with, computer readable storage medium,
which is intended to cover all physical, non-transitory, or similar embodiments of computer readable media.
[0065] Processor 604 can correspond to one or more computer processing devices or resources. For instance, processor 604 can be provided as silicon, as a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), any other type of Integrated Circuit (IC) chip, a collection of IC chips, or the like. As a more specific example, processor 604 can be provided as a microprocessor, Central Processing Unit (CPU), or plurality of microprocessors or CPUs that are configured to execute instruction sets 620 stored in an internal memory and/or memory 602.
[0066] Antenna 606 can correspond to one or multiple antennas and can be configured to provide for wireless communications between, for example, device 600 and a credential or key device. Antenna(s) 606 can be arranged to operate using one or more wireless communication protocols and operating frequencies including, but not limited to, the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like. By way of example, antenna(s) 606 can be RF antenna(s), and as such, may transmit/receive RF signals through free-space to be received/transferred by a credential or key device having an RF transceiver.
[0067] Communication circuitry 608 can be configured to communicate according to any suitable communications protocol with one or more different systems or devices either remote or local to the device 600. This may include communications with other control mechanisms or control systems, or other functional entities arranged in a system.
[0068] Network interface device 610 includes hardware to facilitate communications with other devices, such as with cloud service 104, over a communication network, such as network 112, utilizing any one of a number of transfer protocols (e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.). Example communication networks can include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), Plain Old Telephone (POTS) networks, wireless data networks (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), networks based on the IEEE 802.15.4 family of standards, and peer-to-peer (P2P) networks, among others. In some examples, network interface device 610 can include an Ethernet port or other physical jack, a Wi-Fi card, a Network Interface Card (NIC), a cellular interface (e.g., antenna, filters, and
associated circuitry), or the like. In some examples, network interface device 610 can include one or more antennas to wirelessly communicate using, for example, at least one of singleinput multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) techniques.
[0069] User interface 612 can include one or more input devices and/or display devices. Examples of suitable user input devices that can be included in user interface 612 include, without limitation, one or more buttons, a keyboard, a mouse, a touch-sensitive surface, a stylus, a camera, a microphone, a PIN pad, touch screen, fingerprint reader, magnetic stripe reader, chip reader, etc. Examples of suitable user output devices that can be included in user interface 612 include, without limitation, one or more LEDs, an LCD panel, a display screen, a touchscreen, one or more lights, a speaker, etc. It should be appreciated that user interface 612 can also include a combined user input and user output device, such as a touch-sensitive display or the like.
[0070] Power source 614 can be any suitable internal power source, such as a battery, capacitive power source or similar type of charge-storage device, etc., and/or can include one or more power conversion circuits suitable to convert external power into suitable power (e.g., conversion of externally-supplied AC power into DC power) for components of the device 600. Power source 614 can also include some implementation of surge protection circuitry to protect the components of device 600 from power surges.
[0071] Device 600 can also include one or more interlinks, interconnects, or buses 622 operable to transmit communications between the various hardware components of the reader. A system bus 622 can be any of several types of commercially available bus structures or bus architectures.
[0072] As suggested above, the device 600 may be embodied by a credential device or a reader device, or related equipment such as a control panel or other specialized electronic device for security or credential operations. Thus, the device 600 may include various programmed functionality for making access control determinations, including with the use of encoded and decoded date/time information as discussed herein. Based on the access control determinations, the device 600 or an associated a control panel can instruct a reader or another device to operate or command a control mechanism, or may directly operate or command a control mechanism.
[0073] As further example of the credential use cases discussed above, as a user (which may or may not be the same as user/holder) having a credential or key device (illustrated, for example, as a smartcard or mobile device) approaches a reader, the credential device may
communicate the user’s credential or credential data to the reader, for example, via a suitable RFID or PAN technology. In some examples, credential device can be a portable device having memory, storing one or more user credentials or credential data, and a reader interface (i.e., an antenna and Integrated Circuit (IC) chip), which permits the credential to exchange data with a reader device, such as reader, via a credential interface of the reader device, such as an antenna. More generally, and as indicated above, credential device may include some, any, or all of the various components described above with respect to the block diagram schematic of FIG. 6. In some examples, a reader and credential device may be the same device, such as if the user is attempting to access a logical asset via the user’s own mobile device (e.g., mobile device 102B). A reader, control panel, and/or host server may be used to determine that the user’s credential or credential data provided by credential device is valid and/or authorized, followed by the reader, control panel, or host server to operate a control mechanism to allow access to a secure asset by the user having the credential device.
[0074] FIG. 7 illustrates a block diagram schematic of various example components of an example computing machine 700 that can be used as, for example, computing device(s) 102, one or more hardware devices of cloud service 104, cloud computing system(s) 114, electronic device(s) 106, and the like. Examples, as described herein, can generally include, or can operate by, logic or a number of components, modules, or mechanisms in machine 700. Such components may be hardware, software, or firmware communicatively coupled to one or more processors in order to carry out the operations described herein. Generally, circuitry (e.g., processing circuitry) of example machine 700 may include a collection of circuits implemented in tangible entities of the machine 700 that include hardware (e.g., simple circuits, gates, logic, etc.). Circuitry membership can be flexible over time.
Circuitries include members that can, alone or in combination, perform specified operations when operating. In some examples, hardware of the circuitry can be immutably designed to carry out a specific operation (e.g., hardwired). In some examples, the hardware of the circuitry can include variably connected physical components (e.g., execution units, transistors, simple circuits, etc.) including a machine readable medium physically modified (e.g., magnetically, electrically, moveable placement of invariant massed particles, etc.) to encode instructions of the specific operation. In connecting the physical components, the underlying electrical properties of a hardware constituent are changed, for example, from an insulator to a conductor or vice versa. The instructions permit embedded hardware (e.g., the execution units or a loading mechanism) to create members of the circuitry in hardware via the variable connections to carry out portions of the specific operation when in operation.
Accordingly, in some examples, the machine readable medium elements are part of the circuitry or are communicatively coupled to the other components of the circuitry when the device is operating. In some examples, any of the physical components can be used in more than one member of more than one circuitry. For example, under operation, execution units can be used in a first circuit of a first circuitry at one point in time and reused by a second circuit in the first circuitry, or by a third circuit in a second circuitry at a different time. Additional and/or more specific examples of components with respect to machine 700 follow. [0075] In some embodiments, machine 700 can operate as a standalone device or can be connected (e.g., networked) to other machines. In a networked deployment, machine 700 can operate in the capacity of a server machine, a client machine, or both in server-client network environments. In some examples, machine 700 can act as a peer machine in a peer-to-peer (P2P) (or other distributed) network environment. Machine 700 can be or include a PC, a tablet, a compute node, a mobile telephone, a web appliance, a network router, switch or bridge, an RFID smartcard or other proximity -based card, access control card, electronic key, key fob, or any machine capable of executing instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein, such as cloud computing, software as a service (SaaS), other computer cluster configurations.
[0076] Machine (e.g., computer system) 700 can include a hardware processor 702 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof) and a main memory 704, a static memory (e.g., memory or storage for firmware, microcode, a basic-input-output (BIOS), unified extensible firmware interface (UEFI), etc.) 706, and/or mass storage 708 (e.g., hard drives, tape drives, flash storage, or other block devices) some or all of which can communicate with each other via an interlink (e.g., bus) 734. Machine 700 can further include a display device 710, an input device 712, and/or a user interface (UI) navigation device 714. Examples of suitable display devices include, without limitation, one or more LEDs, an LCD panel, a display screen, a touchscreen, one or more lights, etc. Example input devices and UI navigation devices include, without limitation, one or more buttons, a keyboard, a touch-sensitive surface, a stylus, a camera, a microphone, etc. In some examples, one or more of the display device 710, input device 712, and/or UI navigation device 714 can be a combined unit, such as a touch screen display. Machine 700 can additionally include a signal generation device 718
(e.g., a speaker), a network interface device 720, one or more antennas 730, a power source 732, and one or more sensors 716, such as a global positioning system (GPS) sensor, compass, accelerometer, or other sensor. Machine 700 can include an output controller 728, such as a serial (e.g., universal serial bus (USB)), parallel, or other wired or wireless (e.g., infrared (IR), NFC, etc.) connection to communicate with or control one or more peripheral devices (e.g., a printer, card reader, etc.).
[0077] Processor 702 can correspond to one or more computer processing devices or resources. For instance, processor 702 can be provided as silicon, as a Field Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), any other type of Integrated Circuit (IC) chip, a collection of IC chips, or the like. As a more specific example, processor 702 can be provided as a microprocessor, Central Processing Unit (CPU), or plurality of microprocessors or CPUs that are configured to execute instruction sets 722 stored in an internal memory and/or memory 704, 706 and mass storage 708.
[0078] Any of memory 704, 706 and mass storage 708 can be used in connection with the execution of application programming or instructions by processor 702 for performing any of the functionality or methods described herein, and for the temporary or long-term storage of program instructions 724 or instruction sets and/or other data for performing any of the functionality or methods described herein, such as for in-field encoding of access credentials as described herein. Any of memory 704, 706 and mass storage 708 can comprise a computer readable medium that can be any medium that can contain, store, communicate, or transport data, program code, or instructions 724 for use by or in connection with machine 700. The computer readable medium can be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device. More specific examples of suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or EEPROM), Dynamic RAM (DRAM), a solid-state storage device, in general, a compact disc read-only memory (CD-ROM), or other optical or magnetic storage device. As noted above, computer readable media includes, but is not to be confused with, computer readable storage medium, which is intended to cover all physical, non-transitory, or similar embodiments of computer readable media.
[0079] Network interface device 720 includes hardware to facilitate communications with other devices over a communication network, such as networks 110, 112, etc., utilizing any
one of a number of transfer protocols (e.g., frame relay, internet protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc.). Example communication networks can include a local area network (LAN), a wide area network (WAN), a packet data network (e.g., the Internet), mobile telephone or data networks (e.g., 3GPP 4G/5G cellular networks), Plain Old Telephone (POTS) networks, wireless data networks (e.g., the IEEE 802.11 family of standards known as Wi-Fi, the LoRaWAN® family of standards defined by the LoRa Alliance®, or low-earth-orbit satellite communication networks), networks based on the IEEE 802.15.4 family of standards, and peer-to-peer (P2P) networks, among others. In some examples, network interface device 720 can include an Ethernet port or other physical jack, a Wi-Fi card, a Network Interface Card (NIC), a cellular interface (e.g., antenna, filters, and associated circuitry), or the like. In some examples, network interface device 720 can include one or more antennas to wirelessly communicate using, for example, at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) techniques. [0080] Antenna 730 can correspond to one or multiple antennas and can be configured to provide for wireless communications between machine 700 and another device. Antenna(s) 730 can be arranged to operate using one or more wireless communication protocols and operating frequencies including, but not limited to, the IEEE 802.15.1, Bluetooth, Bluetooth Low Energy (BLE), near field communications (NFC), ZigBee, GSM, CDMA, Wi-Fi, RF, UWB, and the like. By way of example, antenna(s) 730 can be RF antenna(s), and as such, may transmit/receive RF signals through free-space to be received/transferred by another device having an RF transceiver.
[0081] Power source 732 can be any suitable internal power source, such as a battery, capacitive power source or similar type of charge-storage device, etc., and/or can include one or more power conversion circuits suitable to convert external power into suitable power (e.g., conversion of externally-supplied AC power into DC power) for components of the machine 700. Power source 732 can also include some implementation of surge protection circuitry to protect the components of machine 700 from power surges.
[0082] As indicated above, machine 700 can include one or more interlinks or buses 734 operable to transmit communications between the various hardware components of the machine. A system bus 734 can be any of several types of commercially available bus structures or bus architectures.
[0083] Additional examples of the present subject matter includes the following list of examples. Other variations to the following examples will also be apparent based on the techniques discussed herein.
[0084] Example 1 includes subject matter (such as a method) for encoding a timestamp, comprising: identifying date and time information to be encoded, the date and time information including: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value; generating 4-byte encoded data from the date and time information, the 4-byte encoded data having a sequence of bits including: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value; and outputting the 4-byte encoded data.
[0085] In Example 2, the subject matter of Example 1 optionally includes subject matter where the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits to represent the time value include a sequence of bits to represent the hour value, bits to represent the minutes value, and bits to represent the seconds value.
[0086] In Example 3, the subject matter of Example 2 optionally includes subject matter where respective bits to represent the calculated year value, the month value, the day value, the hour value, the minutes value, and the seconds value are arranged based on a data format for encoding respective values.
[0087] In Example 4, the subject matter of Example 3 optionally includes subject matter where the data format defines a data value range that represents the calculated year value with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
[0088] In Example 5, the subject matter of any one or more of Examples 3-4 optionally include subject matter where the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5-bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5-bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
[0089] In Example 6, the subject matter of any one or more of Examples 1-5 optionally include subject matter where the reference calendar year is defined by a data protocol.
[0090] In Example 7, the subject matter of any one or more of Examples 1-6 optionally includes outputting of the 4-byte encoded data including transmitting a communication signal that represents data including the 4-byte encoded data.
[0091] In Example 8, the subject matter of Example 7 optionally includes subject matter where the data including the 4-byte encoded data comprises: a user credential, a public key certificate, or an authentication cryptogram.
[0092] In Example 9, the subject matter of any one or more of Examples 1-8 optionally include subject matter where the 4-byte encoded data is output as an unsigned 32-bit integer. [0093] In Example 10, the subject matter of Example 9 optionally includes subject matter where the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
[0094] Example 11 is a non-transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform any of the methods for encoding a timestamp of Examples 1 to 10.
[0095] Example 12 is an apparatus, comprising: memory configured to store date and time information; and circuitry configured to perform any of the methods for encoding a timestamp of Examples 1 to 10.
[0096] Example 13 is a method for obtaining date and time information from an encoded timestamp, comprising: parsing a 4-byte encoded data value to identify a sequence of bits including: bits that represent an offset from a reference calendar year; bits that represent a month value; bits that represent a day value; and bits that represent a time value; determining date and time information from the sequence of bits, the date and time information including: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from applying (e.g., adding or subtracting) the offset to a value the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value determined from the bits that represent the time value; and storing, in a memory of a computing device, a timestamp based on the determined date and time information.
[0097] In Example 14, the subject matter of Example 13 optionally includes subject matter where the time value determined from the bits that represent the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits that represent the time value include a sequence of bits that represent the hour value, bits that represent the minutes value, and bits that represent the seconds value.
[0098] In Example 15, the subject matter of Example 14 optionally includes subject matter where respective bits that represent the offset from the reference calendar year, the month value, the day value, the hour value, the minutes value, and the seconds value are arranged based on a data format for encoding respective values.
[0099] In Example 16, the subject matter of Example 15 optionally includes subject matter where the data format defines a data value range that represents the offset from the reference calendar year with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
[0100] In Example 17, the subject matter of Example 16 optionally includes subject matter where the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5 -bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5 -bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
[0101] In Example 18, the subject matter of any one or more of Examples 13-17 optionally include subject matter where the reference calendar year is defined by a data protocol.
[0102] In Example 19, the subject matter of any one or more of Examples 13-18 optionally include receiving, at the computing device, a communication signal that represents data including the 4-byte encoded data value.
[0103] In Example 20, the subject matter of Example 19 optionally includes subject matter where the data including the 4-byte encoded data value comprises: a user credential, a public key certificate, or an authentication cryptogram.
[0104] In Example 21, the subject matter of any one or more of Examples 19-20 optionally include subject matter where the 4-byte encoded data value is represented in the computing device as an unsigned 32-bit integer.
[0105] In Example 22, the subject matter of Example 21 optionally includes subject matter where the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
[0106] Example 23 is a non-transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform any of the methods for obtaining date and time information of Examples 13 to 22.
[0107] Example 24 is an apparatus, comprising: memory configured to store date and time information; and circuitry configured to perform any of the methods for obtaining date and time information of Examples 13 to 22.
[0108] The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, by way of illustration, specific embodiments that can be practiced. These embodiments may also be referred to herein as “examples.” Such embodiments or examples can include elements in addition to those shown or described. However, the present inventors also contemplate examples in which only those elements shown or described are provided. Moreover, the present inventors also contemplate examples using any combination or permutation of those elements shown or described (or one or more aspects thereof), either with respect to a particular example (or one or more aspects thereof), or with respect to other examples (or one or more aspects thereof) shown or described herein. That is, the above-described embodiments or examples or one or more aspects, features, or elements thereof can be used in combination with each other. [0109] As will be appreciated by one of skill in the art, the various embodiments of the present disclosure may be embodied as a method (including, for example, a computer- implemented process, a business process, and/or any other process), apparatus (including, for example, a system, machine, device, computer program product, and/or the like), or a combination of the foregoing. Accordingly, embodiments of the present disclosure or portions thereof may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, middleware, microcode, hardware description languages, etc.), or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product on a computer-readable medium or computer-readable storage medium, having computerexecutable program code embodied in the medium, that define processes or methods described herein. A processor or processors may perform the necessary tasks defined by the
computer-executable program code. In the context of this disclosure, a computer readable medium may be any medium that can contain, store, communicate, or transport the program for use by or in connection with the systems disclosed herein. As indicated above, the computer readable medium may be, for example but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device. More specific examples of suitable computer readable medium include, but are not limited to, an electrical connection having one or more wires or a tangible storage medium such as a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a compact disc read-only memory (CD-ROM), or other optical, magnetic, or solid state storage device. As noted above, computer-readable media includes, but is not to be confused with, computer-readable storage medium, which is intended to cover all physical, non- transitory, or similar embodiments of computer-readable media.
[0110] In the foregoing description various embodiments of the present disclosure have been presented for the purpose of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obvious modifications or variations are possible in light of the above teachings. The various embodiments were chosen and described to provide the best illustration of the principals of the disclosure and their practical application, and to enable one of ordinary skill in the art to utilize the various embodiments with various modifications as are suited to the particular use contemplated. All such modifications and variations are within the scope of the present disclosure as determined by the appended claims when interpreted in accordance with the breadth they are fairly, legally, and equitably entitled.
Claims
1. A method for encoding a timestamp, comprising: identifying date and time information to be encoded, the date and time information including: a calculated year value that represents a calendar year value as an offset from a reference calendar year; a month value; a day value; and a time value; generating 4-byte encoded data from the date and time information, the 4-byte encoded data having a sequence of bits including: bits to represent the calculated year value; bits to represent the month value; bits to represent the day value; and bits to represent the time value; and outputting the 4-byte encoded data.
2. The method of claim 1, wherein the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits to represent the time value include a sequence of bits to represent the hour value, bits to represent the minutes value, and bits to represent the seconds value.
3. The method of claim 2, wherein respective bits to represent the calculated year value, the month value, the day value, the hour value, the minutes value, and the seconds value are arranged based on a data format for encoding respective values.
4. The method of claim 3, wherein the data format defines a data value range that represents the calculated year value with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
5. The method of claim 3, wherein the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5-bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5-bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
6. The method of claim 1, wherein the reference calendar year is defined by a data protocol.
7. The method of claim 1, wherein outputting of the 4-byte encoded data includes transmitting a communication signal that represents data including the 4-byte encoded data.
8. The method of claim 7, wherein the data including the 4-byte encoded data comprises: a user credential, a public key certificate, or an authentication cryptogram.
9. The method of claim 1, wherein the 4-byte encoded data is output as an unsigned 32- bit integer.
10. The method of claim 9, wherein the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
11. A non-transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform any of the methods for encoding a timestamp of claims 1 to 10.
12. An apparatus, comprising: memory configured to store date and time information; and
circuitry configured to perform any of the methods for encoding a timestamp of claims 1 to 10.
13. A method for obtaining date and time information from an encoded timestamp, comprising: parsing a 4-byte encoded data value to identify a sequence of bits including: bits that represent an offset from a reference calendar year; bits that represent a month value; bits that represent a day value; and bits that represent a time value; determining date and time information from the sequence of bits, the date and time information including: a calendar year value determined from the bits that represent the offset from the reference calendar year, based on calculating the calendar year value from applying the offset to a value of the reference calendar year; the month value determined from the bits that represent the month value; the day value determined from the bits that represent the day value; and the time value determined from the bits that represent the time value; and storing, in a memory of a computing device, a timestamp based on the determined date and time information.
14. The method of claim 13, wherein the time value determined from the bits that represent the time value includes an hour value, a minutes value, and a seconds value, and wherein the bits that represent the time value include a sequence of bits that represent the hour value, bits that represent the minutes value, and bits that represent the seconds value.
15. The method of claim 14, wherein respective bits that represent the offset from the reference calendar year, the month value, the day value, the hour value, the minutes value, and the seconds value are arranged based on a data format for encoding respective values.
16. The method of claim 15, wherein the data format defines a data value range that represents the offset from the reference calendar year with 6-bit integer values of 0 to 62, and wherein an integer value of 63 indicates information relating to the calendar year value or date.
17. The method of claim 16, wherein the data format defines respective data value ranges that represent: a month with 4-bit integer values of 0 to 11, wherein integer values of 12 to 15 indicate information relating to the month value or date; a day with 5-bit integer values of 0 to 30, wherein an integer value of 31 indicates information relating to the day value or date; an hour with 5-bit integer values of 0 to 23, wherein integer values of 24 to 31 indicate information relating to the hour value or time; a minute with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the minutes value or time; and a second with 6-bit integer values of 0 to 59, wherein integer values of 60 to 63 indicate information relating to the seconds value or time.
18. The method of claim 13, wherein the reference calendar year is defined by a data protocol.
19. The method of claim 13, further comprising: receiving, at the computing device, a communication signal that represents data including the 4-byte encoded data value.
20. The method of claim 19, wherein the data including the 4-byte encoded data value comprises: a user credential, a public key certificate, or an authentication cryptogram.
21. The method of claim 19, wherein the 4-byte encoded data value is represented in the computing device as an unsigned 32-bit integer.
22. The method of claim 21, wherein the unsigned 32-bit integer is included as a value in a hexadecimal encoding of a byte string, and wherein a format of the hexadecimal encoding of the byte string is defined according to a data protocol.
23. A non-transitory computer readable medium comprising executable program code, that when executed by one or more processors of a computing device, causes the one or more processors to perform any of the methods for obtaining date and time information of claims 13 to 22.
24. An apparatus, comprising: memory configured to store date and time information; and circuitry configured to perform any of the methods for obtaining date and time information of claims 13 to 22.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/EP2023/079277 WO2025082609A1 (en) | 2023-10-20 | 2023-10-20 | Compact encoding for timestamps |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4795733A1 true EP4795733A1 (en) | 2026-08-26 |
Family
ID=88517478
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP23794023.4A Pending EP4795733A1 (en) | 2023-10-20 | 2023-10-20 | Compact encoding for timestamps |
Country Status (2)
| Country | Link |
|---|---|
| EP (1) | EP4795733A1 (en) |
| WO (1) | WO2025082609A1 (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10019465B2 (en) * | 2012-09-06 | 2018-07-10 | Teradata Us, Inc. | Compression of timing data of database systems and environments |
-
2023
- 2023-10-20 EP EP23794023.4A patent/EP4795733A1/en active Pending
- 2023-10-20 WO PCT/EP2023/079277 patent/WO2025082609A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2025082609A1 (en) | 2025-04-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240187247A1 (en) | Providing security in an intelligent electronic device | |
| EP2961094A1 (en) | System and method for generating a random number | |
| KR20150080579A (en) | Device authentication using a physically unclonable functions based key generation system | |
| US12300048B2 (en) | In-field encoding of access credentials | |
| EP4245016B1 (en) | Secure element arrays in internet-of-things systems | |
| EP2697949A1 (en) | Method and apparatus for providing secret delegation | |
| EP3926992A1 (en) | Electronic device, and authentication method in electronic device | |
| EP3977321A1 (en) | Provisioning biometrics tokens | |
| US20180198625A1 (en) | Method and authentication system for automatic re-authentication | |
| WO2025082609A1 (en) | Compact encoding for timestamps | |
| EP3651484A1 (en) | Tokenized mobile device update systems and methods | |
| US12069162B2 (en) | Fast bilateral key confirmation | |
| US20210050997A1 (en) | Information processing apparatus, information processing method, program, and information processing system | |
| CA3260166A1 (en) | Method and devices for communicating between an internet of things device and a remote computer system | |
| US12750362B2 (en) | Secure element arrays in internet-of-things systems | |
| WO2026082287A1 (en) | Defined key structure for key distribution and use | |
| KR20230093363A (en) | Secure element arrays in internet-of-things systems | |
| US20230078096A1 (en) | Offline delegation of authorization data | |
| CN110024360B (en) | Information processing apparatus and relay apparatus | |
| WO2026077960A1 (en) | Integration of visible light communication with access control systems | |
| CN205721117U (en) | A kind of wrist-watch of built-in electronic identity card | |
| Wisniewski et al. | Improving cross-border european eprescription and patient summary services through e-sens cross-sectorial building blocks | |
| WO2023183061A1 (en) | Systems for remote signing of applications | |
| Láng et al. | Anatomy of a Cloud-Connected Door Lock Prototype, Integrating NFC-Enabled Mobile Wallet Technologies | |
| WO2026087039A1 (en) | Second factor triggering for use of access control credentials |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: UNKNOWN |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20260506 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |