摘要: 一: 源码下载 mkdir op-tee cd op-tee repo init -u https://github.com/OP-TEE/manifest.git -m default.xml --repo-url=git://codeaurora.org/tools/repo.git sed - 阅读全文
posted @ 2020-01-07 17:09 JustRelax 阅读(1193) 评论(0) 推荐(0) 编辑
摘要: ase(1)SHA 256就是j将input data 分成64Bytes个block。分别对其计算SHA 有可能input data并非64Bytes对齐。所以下面分情况讨论: case 1: case 2: case 3: 初始化参数,以及运算规则: 计算过程: 阅读全文
posted @ 2018-05-13 12:20 JustRelax 阅读(4785) 评论(0) 推荐(0) 编辑
摘要: 1 参数 print sys.argv[1] print len(sys.argv) 2 按bit打印 3 read bit from data 4 write bit 5 generate 随机16进制整数 阅读全文
posted @ 2018-04-30 13:13 JustRelax 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 数组 arr_string=("sadf" "adsf"); arr_string_len=${#arr_string[@]} echo ${arr_string[1]} 2 echo 0x00000 到二进制文件 echo 0x88888888 | xxd -r -ps > file 如何换字 阅读全文
posted @ 2018-04-30 13:12 JustRelax 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python import sys, os, time import random import re import time import os from Crypto import Random def genRandomData(): tmp = random.randint(0,0xffffffff) print "0x%08x" %(tmp) re... 阅读全文
posted @ 2018-04-27 21:20 JustRelax 阅读(168) 评论(0) 推荐(0) 编辑
摘要: a.bin Split a.bin to c.bin d.bin at 32 bytes postion. dd if=a.bin of=c.bin ibs=32 count=1 Now, we got c.bin dd if=a.bin of=d.bin ibs=32 skip=1 Now, we 阅读全文
posted @ 2017-11-28 21:59 JustRelax 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 下面是自己的MinGW环境变量的配置: 先我的电脑属性栏中,找到高级系统设置: 计算机 》 右键 》属性 》高级系统设置 之后出现的“系统属性”栏中,右下角有“环境变量”,进去之后进行环境变量设置: 之后出现的“系统属性”栏中,右下角有“环境变量”,进去之后进行环境变量设置: 如果所示在用户变量中分 阅读全文
posted @ 2017-11-07 22:16 JustRelax 阅读(2273) 评论(1) 推荐(0) 编辑
摘要: SHA-256 算法输入报文的最大长度不超过2^64 bit,输入按512-bit 分组进行处理,产生 的输出是一个256-bit 的报文摘要。该算法处理包括以下几步: STEP1:附加填充比特。对报文进行填充使报文长度与448 模512 同余(长度=448 mod 512), 填充的比特数范围是1 阅读全文
posted @ 2017-09-16 11:06 JustRelax 阅读(3934) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python """PyQt4 port of the dialogs/findfiles example from Qt v4.x""" import sys,os import time from PySide import QtCore, QtGui from PySide.QtCore import * from PySide.QtGui import *... 阅读全文
posted @ 2017-08-19 13:04 JustRelax 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 源文件位置: newlib-2.0.0\newlib\libc\machine\xstormy16\tiny-malloc.c 下面花一张图来说明malloc 和 free的过程。 下图说明每一个block的结构: 阅读全文
posted @ 2017-05-23 22:13 JustRelax 阅读(512) 评论(0) 推荐(0) 编辑