
田园诗人之园
专注于linux嵌入式开发
田园诗人之园
我是一位平凡的诗人,也是一位平凡的工程师。
展开
-
Wireshark设置显示报文的时间
Wireshark默认情况下显示的时间是秒数,在分析交互报文的时候比较麻烦,可以通过如下的设置去显示咱们的常规习惯看的时间格式:试图 ------> 时间显示格式 -----> 日期和时间(1970-01-01 01:02:03.123456)下图是操作的截图是设置显示时间格式的图:...原创 2021-01-14 16:00:01 · 15448 阅读 · 1 评论 -
word中插入代码
我们软件开发得同志们要经常使用到要写一些文档的情况,但是文档如果是使用word去编辑,则很难很好的保持code得原始高亮格式,后来在网上查了很多,发现一个很好的工具:https://highlightcode.com/打开这个网址之后显示得界面,然后把自己要粘贴到word上得code拷贝过去,选择语言格式,然后点击"start hightlight"执行之后的结果:这个工具很好了解决了我在word种粘贴code得需求。...原创 2020-10-07 20:49:59 · 2097 阅读 · 3 评论 -
mbedtls之base64算法的学习
Recently, I have been looking at the differences between the processing of base64 encode and decode by RTOS nuttx and mbedtls. Here is the processing of base64 algorithm by mbedtls.static const unsig...原创 2020-04-02 10:03:23 · 4430 阅读 · 3 评论 -
mbedtls Thread Safety and Multi Threading
Mbedtls Thread Safety and Multi Threading: concurrency issuesIf you want to use multi threading in mbedtls, You must first open the Macro switch MBEDTS_THREADING_PTHREAD and MBEDTLS_THREADING_C.Or u...原创 2020-02-18 15:28:02 · 865 阅读 · 0 评论 -
Nuttx: how do we get the size of uesd and remain stack
In RTOS Nuttx,how do we get the size of the uesd and remaining stack.We init an app, we usually will set the stack size that will allow to be uesd.But we may also need the info that we used and rema...原创 2020-02-17 15:30:33 · 304 阅读 · 0 评论 -
mbedtls:How mbedtls work at PC and embeded device when getrandom
mbedtls:How mbedtls work at PC and embeded device when getrandommbedtls_ctr_drbg_context ctr_drbg;mbedtls_entropy_context entropy;mbedtls_entropy_init(&entropy);mbedtls_ctr_drbg_init(&ctr...原创 2020-02-13 11:17:31 · 303 阅读 · 0 评论 -
mbedtls:How mbedtls work at PC and embeded device when getrandom
mbedtls:How mbedtls work at PC and embeded device when getrandommbedtls_ctr_drbg_context ctr_drbg;mbedtls_entropy_context entropy;/*we need to init the entropy context*/mbedtls_entropy_init(&e...原创 2020-02-13 11:09:58 · 488 阅读 · 0 评论 -
mbedtls how to en/decrypt with aes ecb,cbc,ctr,cfb,ofb,xts
If you want to know the basic knowledge of ECB/CBC/CTR/PCBC/CFB/OFB, you can check the below wikihttps://en.wikipedia.org/wiki/Block_cipher_mode_of_operationThe source code path of how to use ecb/cb...原创 2020-02-07 23:55:35 · 1430 阅读 · 0 评论 -
mbedtls how to generate cmac
If you want to generate cmac, you must first open the Macro of CMAC.The modify as below show.weihanwu@weihanwu-OptiPlex-990:~/mbedtls/mbedtls/programs$ git ../include/mbedtls/config.hgit: '../inc...原创 2020-02-06 11:59:59 · 2023 阅读 · 4 评论 -
mbedtls how to generate a random data
mbedtls how to generate a random dataThe path of the source code base the newest mbedtls:mbedtls/programs/random/gen_random_ctr_drbg.cThe source code of how to gernarate a random data as below show...原创 2020-02-05 23:25:05 · 539 阅读 · 0 评论 -
Mbedtls how to generate a Certificate Request (CSR)
mbedtls how to generate a Certificate Request (CSR)The link of suggestion how to use mbedtls x509/cert_req to generate a Certificate Request:https://tls.mbed.org/kb/how-to/generate-a-certificate-req...原创 2020-02-05 23:09:27 · 2263 阅读 · 0 评论 -
mbedtls ecdsa使用样例
该code是基于最新的mbedtls所列出的,样例的代码路径如下所示mbedtls/crypto/programs/pkey/ecdsa.c具体的code如下所示#if !defined(MBEDTLS_CONFIG_FILE)#include "mbedtls/config.h"#else#include MBEDTLS_CONFIG_FILE#endif#if defined...原创 2020-02-04 00:59:35 · 3332 阅读 · 0 评论 -
dump the data of specific memory address
dump the data of specific addressdump as Bytevoid Dump_Specific_MemData(unsigned char *base, unsigned int len){ char str[3] = {0}; unsigned int offset = 0; while (offset < len) { sp...原创 2019-09-05 09:36:37 · 160 阅读 · 0 评论