Request sample code for hw_aes functions.

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
alexedge
Offline
Last seen:10 months 2 weeks ago
加入:2016-12-14 17:12
Request sample code for hw_aes functions.

Hi,

I'm using DA14695 and SDK 10.0.4.66 and have unsuccessfully searched for examples of the following functions being used:

hw_aes_hash_init

hw_aes_hash_cfg_aes_ecb

hw_aes_hash_store_keys

hw_aes_hash_start

Any help would be appreciated.

Thanks.

Device:
alexedge
Offline
Last seen:10 months 2 weeks ago
加入:2016-12-14 17:12
As a follow up to my question

As a follow up to my question, this works with the expected results:

const uint8_t key[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
const uint8_t input[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
uint8_t output[16];

if (ad_crypto_acquire_aes_hash(OS_MUTEX_FOREVER) != OS_MUTEX_TAKEN) {

}

ad_crypto_enable_aes_hash_event();

hw_aes_hash_cfg_aes_ecb(HW_AES_128);
hw_aes_hash_store_keys(HW_AES_128, key, HW_AES_PERFORM_KEY_EXPANSION);
hw_aes_hash_cfg_dma(input, output, 16);
hw_aes_hash_mark_input_block_as_last();
hw_aes_hash_encrypt();

ad_crypto_wait_aes_hash_event(OS_EVENT_FOREVER, NULL);

PW_Dialog
Offline
Last seen:3 months 6 days ago
Staff
加入:2019-04-03 02:54
Hi Alexedge,

Hi Alexedge,

An application example could be referred as well:

//www.xmece.com/sites/default/files/da1469x_aes_hash_sample_code.zip

alexedge
Offline
Last seen:10 months 2 weeks ago
加入:2016-12-14 17:12
Hi,

Hi,

that's great thanks.

Is there a way to list all examples files at the url as browsing://www.xmece.com/sites/default/files

doesn't work.

Alex.

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hi Alex,

Hi Alex,

//www.xmece.com/products/da1469x-product-family

If you navigate to the following URL, you can find the software examples half way down..

BR JE_Dialog

alexedge
Offline
Last seen:10 months 2 weeks ago
加入:2016-12-14 17:12
Hi JE_Dialog,

Hi JE_Dialog,

thanks for speedy reply.

Sorry should have found for myself but have added bookmark for future reference.

Regards,

Alex.