Infineon / optiga-trust-x

OPTIGA™ Trust X Software Framework
MIT License
37 stars 19 forks source link

OPTIGA-Crypt-API wiki document error for API optiga_crypt_ecc_generate_keypair #3

Closed tim20190215 closed 6 years ago

tim20190215 commented 6 years ago

In the wiki link the API optiga_crypt_ecc_generate_keypair() doc show only 5 parameters but the example code shows 6. The 3rd parameter (just after the key usage) is missing in the doc. below shows the example code.

    return_status = optiga_crypt_ecc_generate_keypair(OPTIGA_ECC_NIST_P_256,
                                                      (uint8_t)OPTIGA_KEY_USAGE_SIGN,
                                                      FALSE,
                                                      &optiga_key_id,
                                                      public_key,
                                                      &public_key_length);
ayushev commented 6 years ago

Fixed