• 大小: 15.2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-20
  • 语言: 其他
  • 标签: ESP32  mbedtls  sha  aes  

资源简介

在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  blink\CMakeLists.txt
     文件         177  2019-08-03 10:56  blink\Makefile
     文件         157  2019-08-03 10:56  blink\README.md
     目录           0  2019-08-06 10:47  blink\main\
     文件          87  2019-08-03 10:56  blink\main\CMakeLists.txt
     文件         313  2019-08-03 10:56  blink\main\Kconfig.projbuild
     文件        1415  2019-08-03 10:56  blink\main\blink.c
     文件         145  2019-08-03 10:56  blink\main\component.mk
     文件           3  2019-08-03 10:56  blink\sdkconfig.defaults
     目录           0  2019-08-06 10:49  hello_world\
     文件         235  2019-08-03 10:56  hello_world\CMakeLists.txt
     文件         183  2019-08-03 10:56  hello_world\Makefile
     文件         170  2019-08-03 10:56  hello_world\README.md
     目录           0  2019-08-06 11:16  hello_world\build\
     目录           0  2019-08-06 10:49  hello_world\build\app_trace\
     文件       17374  2019-08-06 10:49  hello_world\build\app_trace\app_trace.d
     文件        2016  2019-08-06 10:49  hello_world\build\app_trace\app_trace.o
     文件       14923  2019-08-06 10:49  hello_world\build\app_trace\app_trace_util.d
     文件       16148  2019-08-06 10:49  hello_world\build\app_trace\app_trace_util.o
     文件         289  2019-08-06 10:49  hello_world\build\app_trace\component_project_vars.mk
     目录           0  2019-08-06 10:49  hello_world\build\app_trace\gcov\
     文件       15871  2019-08-06 10:49  hello_world\build\app_trace\gcov\gcov_rtio.d
     文件        2024  2019-08-06 10:49  hello_world\build\app_trace\gcov\gcov_rtio.o
     文件       14743  2019-08-06 10:49  hello_world\build\app_trace\host_file_io.d
     文件        2020  2019-08-06 10:49  hello_world\build\app_trace\host_file_io.o
     文件       22804  2019-08-06 10:49  hello_world\build\app_trace\libapp_trace.a
     目录           0  2019-08-06 10:49  hello_world\build\app_update\
     文件         294  2019-08-06 10:49  hello_world\build\app_update\component_project_vars.mk
     文件       18286  2019-08-06 10:49  hello_world\build\app_update\esp_ota_ops.d
............此处省略1968个文件信息

评论

共有 条评论