Forums - Aes Encryption and Decryption

6 posts / 0 new
Last post
Aes Encryption and Decryption
sayusekhar
Join Date: 4 Jun 16
Posts: 3
Posted: Thu, 2016-07-14 08:01

. We analysed that CSR has an API SMEncryptRawAes to encrypt 128 bits of data.

However we could not find a corresponding decrypt API. Is there an API which can decrypt data?

  • Up0
  • Down0
cbs
Profile picture
Join Date: 4 Mar 15
Location: IoT consultant, Cambridgeshire, UK
Posts: 21
Posted: Fri, 2016-07-15 01:46

No, The AES engine supports AES-ECB "Electronic Code Book" which is a secure one-way function.

However, there are many AES cryptography modes that are based on AES-ECB such as AES-CTR AES-OFB and AES-CFB. Essentiually the idea of each of these is that you use AES-ECB to generate a "key stream" which you XOR with your plaintext. The other end generates the same "key stream" with AES-ECB and uses the XOR operation to get back to plaintext.

Hope that helps!

Chris

 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Fri, 2016-07-29 08:49

It not clear your use case, why you need Aes Encryption and Decryption with CSR1010  ?

 
  • Up0
  • Down0
sayusekhar
Join Date: 4 Jun 16
Posts: 3
Posted: Mon, 2016-08-08 03:43

Hi Dr Zur,

The data we get in our prototype is encrypted at the application level using known keys.  

That is the reason we needed to have decryption API.

 

Regards,

Sayu Sekhar.

  • Up0
  • Down0
sayusekhar
Join Date: 4 Jun 16
Posts: 3
Posted: Mon, 2016-08-08 03:43

Hi Dr Zur,

The data we get in our prototype is encrypted at the application level using known keys.  

That is the reason we needed to have decryption API.

 

Regards,

Sayu Sekhar.

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Mon, 2016-08-08 06:52

Since you need  to encrypt and decrypt the data , you can use any open source code for that. 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.