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

Using the device root key (KDR[0..3]) directly for AES Encryption?

Are there any examples to use the device root key directly in the cryptographic functions?

Parents Reply
  • chirag-parmar said:
    Although, deriving the key means that the key will be copied into a buffer right? This would leave a footprint of the key on the RAM. Which beats the entire purpose of having KDR registers in the cryptocell. Am i right?

    Yes and no. It is not copied into normal RAM, but kept internally in a secure RAM block in CC310. It is not possible to access the key, only refer to it so that it can be used for crypto operations in CC310. There is one related fact you should be aware of, though. CryptoCell only has secure RAM, not secure flash. That means that you have to store the root key in normal flash for it to be persistent, as described in this post.

    chirag-parmar said:
    Also the register documentation here says that I can select a key using the HOST_CRYPTOKEY_SEL. I was looking for a documentation/example for this exact feature.

    We do not have any examples or documentation, unfortunately. The only reference is the CC310 API documentation.

Children
Related