Search Legislation

Council Regulation (EEC) No 3821/85Show full title

Council Regulation (EEC) No 3821/85 of 20 December 1985 on recording equipment in road transport

 Help about what version

What Version

  • Latest available (Revised)
  • Original (As adopted by EU)
 Help about advanced features

Advanced Features

Close

This is a legislation item that originated from the EU

After exit day there will be three versions of this legislation to consult for different purposes. The legislation.gov.uk version is the version that applies in the UK. The EU Version currently on EUR-lex is the version that currently applies in the EU i.e you may need this if you operate a business in the EU.

The web archive version is the official version of this legislation item as it stood on exit day before being published to legislation.gov.uk and any subsequent UK changes and effects applied. The web archive also captured associated case law and other language formats from EUR-Lex.

Changes to legislation:

There are currently no known outstanding effects for the Council Regulation (EEC) No 3821/85, Division 3.6.2.2. . Help about Changes to Legislation

Close

Changes to Legislation

Revised legislation carried on this site may not be fully up to date. At the current time any known changes or effects made by subsequent legislation have been applied to the text of the legislation you are viewing by the editorial team. Please see ‘Frequently Asked Questions’ for details regarding the timescales for which new effects are identified and recorded on this site.

[F1 [F23.6.2.2. Command with secure messaging U.K.

This command enables the IDF to read data from the EF currently selected with secure messaging, in order to verify the integrity of the data received and to protect the confidentiality of the data in the case the EF is marked as Encrypted .

[TCS_327] Command Message
Byte Length Value Description
CLA 1 ′0Ch′ Secure Messaging asked
INS 1 ′B0h′ INS
P1 1 ′XXh′ P1 (offset in bytes from the beginning of the file): Most Significant Byte
P2 1 ′XXh′ P2 (offset in bytes from the beginning of the file): Least Significant Byte
Lc 1 ′09h′ Length of input data for secure messaging
#6 1 ′97h′ T LE : Tag for expected length specification
#7 1 ′01h′ L LE : Length of expected length
#8 1 ′NNh′ Expected length specification (original Le): Number of Bytes to be read
#9 1 ′8Eh′ T CC : Tag for cryptographic checksum
#10 1 ′04h′ L CC : Length of following cryptographic checksum
#11-#14 4 ′XX..XXh′ Cryptographic checksum (4 most significant bytes)
Le 1 ′00h′ As specified in ISO/IEC 7816-4

[TCS_328] Response Message if EF is not marked as Encrypted and if Secure Messaging input format is correct:

Byte Length Value Description
#1 1 ′81h′ T PV : Tag for plain value data
#2 L ′NNh′ or ′81 NNh′

L PV : length of returned data (= original Le)

L is 2 bytes if L PV >127 bytes

#(2+L)-#(1+L+NN) NN ′XX..XXh′ Plain Data value
#(2+L+NN) 1 ′8Eh′ T CC : Tag for cryptographic checksum
#(3+L+NN) 1 ′04h′ L CC : Length of following cryptographic checksum
#(4+L+NN)-#(7+L+NN) 4 ′XX..XXh′ Cryptographic checksum (4 most significant bytes)
SW 2 ′XXXXh′ Status Words (SW1, SW2)

[TCS_329] Response Message if EF is marked as Encrypted and if Secure Messaging input format is correct:

Byte Length Value Description
#1 1 ′87h′ T PI CG : Tag for encrypted data (cryptogram)
#2 L ′MMh′ or ′81 MMh′

L PI CG : length of returned encrypted data (different of original Le of the command due to padding)

L is 2 byte if L PI CG > 127 bytes

#(2+L)-#(1+L+MM) MM ′01XX..XXh′ Encrypted data: padding indicator and cryptogram
#(2+L+MM) 1 ′8Eh′ T CC : tag for cryptographic checksum
#(3+L+MM) 1 ′04h′ L CC : length of following cryptographic checksum
#(4+L+MM)-#(7+L+MM) 4 ′XX..XXh′ Cryptographic checksum (4 most significant bytes)
SW 2 ′XXXXh′ Status words (SW1, SW2)

The encrypted data returned contain a first byte indicating the used padding mode. For the tachograph application, the padding indicator always takes the value '01h', indicating that the used padding mode is the one specified in ISO/IEC 7816-4 (one byte with value ′80h′ followed by some null bytes: ISO/IEC 9797 method 2).

The regular processing states, described for the READ BINARY command with no secure messaging (see point 3.6.2.1), can be returned using the response message structures described above, under a ′99h′ Tag (as described in TCS 335).

Additionally, some errors specifically related to secure messaging can happen. In that case, the processing state is simply returned, with no secure messaging structure involved:

[TCS_330] Response Message if incorrect Secure Messaging input format
Byte Length Value Description
SW 2 ′XXXXh′ Status words (SW1, SW2)
  • If no current session key is available, the processing state ′6A88′ is returned. It happens either if the session key has not already been generated or if the session key validity has expired (in this case the IFD must re-run a mutual authentication process to set a new session key).

  • If some expected data objects (as specified above) are missing in the secure messaging format, the processing state ′6987′ is returned: this error happens if an expected tag is missing or if the command body is not properly constructed.

  • If some data objects are incorrect, the processing state returned is ′6988′: this error happens if all the required tags are present but some lengths are different from the ones expected.

  • If the verification of the cryptographic checksum fails, the processing state returned is ′6688′.] ]

Back to top

Options/Help

Print Options

You have chosen to open the Whole Regulation

The Whole Regulation you have selected contains over 200 provisions and might take some time to download. You may also experience some issues with your browser, such as an alert box that a script is taking a long time to run.

Would you like to continue?

You have chosen to open Schedules only

The Schedules you have selected contains over 200 provisions and might take some time to download. You may also experience some issues with your browser, such as an alert box that a script is taking a long time to run.

Would you like to continue?

Close

Legislation is available in different versions:

Latest Available (revised):The latest available updated version of the legislation incorporating changes made by subsequent legislation and applied by our editorial team. Changes we have not yet applied to the text, can be found in the ‘Changes to Legislation’ area.

Original (As adopted by EU): The original version of the legislation as it stood when it was first adopted in the EU. No changes have been applied to the text.

Close

See additional information alongside the content

Geographical Extent: Indicates the geographical area that this provision applies to. For further information see ‘Frequently Asked Questions’.

Show Timeline of Changes: See how this legislation has or could change over time. Turning this feature on will show extra navigation options to go to these specific points in time. Return to the latest available version by using the controls above in the What Version box.

Close

Opening Options

Different options to open legislation in order to view more content on screen at once

Close

More Resources

Access essential accompanying documents and information for this legislation item from this tab. Dependent on the legislation item being viewed this may include:

  • the original print PDF of the as adopted version that was used for the EU Official Journal
  • lists of changes made by and/or affecting this legislation item
  • all formats of all associated documents
  • correction slips
  • links to related legislation and further information resources
Close

Timeline of Changes

This timeline shows the different versions taken from EUR-Lex before exit day and during the implementation period as well as any subsequent versions created after the implementation period as a result of changes made by UK legislation.

The dates for the EU versions are taken from the document dates on EUR-Lex and may not always coincide with when the changes came into force for the document.

For any versions created after the implementation period as a result of changes made by UK legislation the date will coincide with the earliest date on which the change (e.g an insertion, a repeal or a substitution) that was applied came into force. For further information see our guide to revised legislation on Understanding Legislation.

Close

More Resources

Use this menu to access essential accompanying documents and information for this legislation item. Dependent on the legislation item being viewed this may include:

  • the original print PDF of the as adopted version that was used for the print copy
  • correction slips

Click 'View More' or select 'More Resources' tab for additional information including:

  • lists of changes made by and/or affecting this legislation item
  • confers power and blanket amendment details
  • all formats of all associated documents
  • links to related legislation and further information resources