BT4PT-TimeBasedOneTimePasswordV1-0

BT4PT Time-Based One-Time Password - DRAFT.

Module Info

Reference
BT4PT-TimeBasedOneTimePasswordV1-0
Numeric OID
1.3.6.1.4.1.17218.1.2.16.1.0

Assignments

TotpValue

This structure carries a Time-Based One-Time Password, inserted into a static envelope by the application presenting it, as specified in .

It is a device data element, and SHALL only appear as the last data element of the deviceData field of the DeviceSignedData of an envelope that is not device-bound (see ). It SHALL NOT be marked as critical.

Its value is in one of the two following forms, according to the data element identifier:

  • OTP1, the text form: the password itself, being exactly as many bytes as the digits of the corresponding TotpKey, each byte being the ASCII encoding of a decimal digit (30h to 39h).
  • OTP1Q, the Base-41 form: optionally a single null byte, followed by 2k bytes, where k is the digits of the corresponding TotpKey divided by 3 and rounded up. The Base-41 encoding of these 2k bytes, as specified in , is 3k characters, consisting of 3k - digits instances of the character 0, followed by the password. The null byte is present only where needed to give the encoding of the envelope an even length.
OCTET STRING

This type is constrained in the following way:

Size

The length of the value must be greater than or equal to: 4

The length of the value must be less than or equal to: 10

TotpKey

This structure carries the key and parameters with which the Time-Based One-Time Passwords of an envelope are generated and verified, as specified in .

As any party holding it is able to generate valid passwords for the envelope, it SHALL only appear within an Encrypted Data element, and SHALL NOT appear in plaintext in an envelope.

SEQUENCE

This sequence contains the following fields:

key

The secret key, as used in the HMAC computation of . It SHALL be generated by a cryptographically secure pseudo-random number generator for each envelope, and SHALL NOT be used for any other envelope.

OCTET STRING

This type is constrained in the following way:

Size

The length of the value must be greater than or equal to: 20

The length of the value must be less than or equal to: 64

algorithm Default value defined

The hash function used in the HMAC computation.

TotpAlgorithm

This field, when unset, defaults to the following value: sha1

digits Default value defined

The number of decimal digits of each password.

INTEGER

This type is constrained in the following way:

Range

The value must be greater than or equal to: 6

The value must be less than or equal to: 10

This field, when unset, defaults to the following value: 8

period

The time step, in milliseconds, during which each password is valid.

INTEGER

This type is constrained in the following way:

Range

The value must be greater than or equal to: 100

The value must be less than or equal to: 3600000

TotpAlgorithm

The hash functions of usable in the HMAC computation of a Time-Based One-Time Password.

ENUMERATED

The value of this enumeration may have one of the following values:

sha1

Value: 0

sha256

Value: 1

sha512

Value: 2