在ESP32下,使用mbedtls库,测试sha、aes.的简单DEMO


在ESP32下,使用mbedtls库,测试sha1和sha256/224 aes_ecb、aes_cbc的简单DEMO
资源截图
代码片段和文件信息
/* blink Example

   This example code is in the Public Domain (or CC0 licensed at your option.)

   Unless required by applicable law or agreed to in writing this
   software is distributed on an “AS IS“ BASIS WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND either express or implied.
*/
#include 
#include “freertos/FreeRTOS.h“
#include “freertos/task.h“
#include “driver/gpio.h“
#include “sdkconfig.h“

/* Can run ‘make menuconfig‘ to choose the GPIO to blink
   or you can edit the following line and set a number here.
*/
#define blink_GPIO CONFIG_blink_GPIO

void blink_task(void *pvParameter)
{
    /* Configure the IOMUX register for pad blink_GPIO (some pads are
       muxed to GPIO on reset already but some default to other
       functions and need to be switched to GPIO. Consult the
       Technical Reference for a list of pads and their default
       functions.)
    */
    gpio_pad_select_gpio(blink_GPIO);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(blink_GPIO GPIO_MODE_OUTPUT);
    while(1) {
        /* blink off (output low) */
        gpio_set_level(blink_GPIO 0);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
        /* blink on (output high) */
        gpio_set_level(blink_GPIO 1);
        vTaskDelay(1000 / portTICK_PERIOD_MS);
    }
}

void app_main()
{
    xTaskCreate(&blink_task “blink_task“ configMINIMAL_STACK_SIZE NULL 5 NULL);
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         202  2019-08-03 10:56  README.md
     目录           0  2019-08-06 10:47  blink
     文件         234  2019-08-03 10:56  blinkCMakeLists.txt
     文件         177  2019-08-03 10:56  blinkMakefile
     文件         157  2019-08-03 10:56  blinkREADME.md
     目录           0  2019-08-06 10:47  blinkmain
     文件          87  2019-08-03 10:56  blinkmainCMakeLists.txt
     文件         313  2019-08-03 10:56  blinkmainKconfig.projbuild
     文件        1415  2019-08-03 10:56  blinkmainlink.c
     文件         145  2019-08-03 10:56  blinkmaincomponent.mk
     文件           3  2019-08-03 10:56  blinksdkconfig.defaults
     目录           0  2019-08-06 10:49  hello_world
     文件         235  2019-08-03 10:56  hello_worldCMakeLists.txt
     文件         183  2019-08-03 10:56  hello_worldMakefile
     文件         170  2019-08-03 10:56  hello_worldREADME.md
     目录           0  2019-08-06 11:16  hello_worlduild
     目录           0  2019-08-06 10:49  hello_worlduildapp_trace
     文件       17374  2019-08-06 10:49  hello_worlduildapp_traceapp_trace.d
     文件        2016  2019-08-06 10:49  hello_worlduildapp_traceapp_trace.o
     文件       14923  2019-08-06 10:49  hello_worlduildapp_traceapp_trace_util.d
     文件       16148  2019-08-06 10:49  hello_worlduildapp_traceapp_trace_util.o
     文件         289  2019-08-06 10:49  hello_worlduildapp_tracecomponent_project_vars.mk
     目录           0  2019-08-06 10:49  hello_worlduildapp_tracegcov
     文件       15871  2019-08-06 10:49  hello_worlduildapp_tracegcovgcov_rtio.d
     文件        2024  2019-08-06 10:49  hello_worlduildapp_tracegcovgcov_rtio.o
     文件       14743  2019-08-06 10:49  hello_worlduildapp_tracehost_file_io.d
     文件        2020  2019-08-06 10:49  hello_worlduildapp_tracehost_file_io.o
     文件       22804  2019-08-06 10:49  hello_worlduildapp_tracelibapp_trace.a
     目录           0  2019-08-06 10:49  hello_worlduildapp_update
     文件         294  2019-08-06 10:49  hello_worlduildapp_updatecomponent_project_vars.mk
     文件       18286  2019-08-06 10:49  hello_worlduildapp_updateesp_ota_ops.d
............此处省略1968个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)