diagnosticsiot-for-automotive

Calculating key from seed for UDS service 27(Security access)


Is there any different method for calculating key for security access service except taking 2's complement.If it is so please explain


Solution

  • The algorithm for the key calculation of SecurityAccess service depends on the particular ECU specification. To make it hard to gain access without permission usually a algorithm which requires a shared-secret-key is used (only known by the ECU and by the applications who need access).

    Commonly used algorithms are i.e.

    If you asked this question to find out how the SecurityAccess on a particular ECU works, there is no way to know without the ECU specification or lots of reverse-engineering.

    If you asked this question to decide on a good algorithm to be used for a new ECU, it is highly advisable to use a widely adopted cryptographic algorithm instead of reinventing it because the established algorithms are designed and reviewed by field-experts (i.e. AES-256).