This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Write Ecc key or Rsa key to kmu

In v1.4.0 SDK, AES key can be written into kmu slot, but there is no related function for ECC key and RSA key in crypto/nrf_cc310_mbedcrypto/include/mbedtls/cc3xx_kmu.h file. Does the V1.4.0 SDK support writing ECC key or RSA key to kmu?

Parents
  • Hi,

    The answer is unfortunately "no". The KMU consists of 128 bit key slots. You can combine more slots in order to store larger keys, so that part is no problem. However, you cannot push ECC or RSA keys to the CryptoCell peripheral, so you would have to make the keys readable in order to use them, making in not so useful in this case.

  • Hej Einar,

    I am just trying to do the same thing, so my question is, are there plans to do this in the future?

    We are using DTLS over the Modem, but I need to do it via wired communication as well. I would hate do put my private key in a place where it can be read out. As things stand, it is securely inside the modem's key store, where it cannot be read. But that does not help me when not using LTE. I would also be fine with having a way to let the modem do it for me; I pass data there, tell it, which key from it's store to use, and let it return the ciphertext.

    Right now, all I will be able to do, is pass the key to mbedtls myself, which will mean that anyone with physical access to the device will be able to read it out, if they know what they are doing. I don't want to add an external secure module to our hardware, when we have a cryptocell ready in our main processor.

Reply
  • Hej Einar,

    I am just trying to do the same thing, so my question is, are there plans to do this in the future?

    We are using DTLS over the Modem, but I need to do it via wired communication as well. I would hate do put my private key in a place where it can be read out. As things stand, it is securely inside the modem's key store, where it cannot be read. But that does not help me when not using LTE. I would also be fine with having a way to let the modem do it for me; I pass data there, tell it, which key from it's store to use, and let it return the ciphertext.

    Right now, all I will be able to do, is pass the key to mbedtls myself, which will mean that anyone with physical access to the device will be able to read it out, if they know what they are doing. I don't want to add an external secure module to our hardware, when we have a cryptocell ready in our main processor.

Children
Related