### Arduino
Just run the sketch after loading the libraries.
### Raspberry pi
install
```
sudo make install
cd examples_Rpi
make
```
What to do after changes to the library
```
sudo make clean
sudo make install
cd examples_Rpi
make clean
make
```
What to do after changes to a sketch
```
cd examples_Rpi
make <sketch>
or
make clean
make
```
How to start a sketch
```
cd examples_Rpi
sudo ./<sketch>
```
This is a derived work from Brian Gladman's AES implementation for byte-oriented
processors, here's the licence terms:
/*
---------------------------------------------------------------------------
Copyright (c) 1998-2008, Brian Gladman, Worcester, UK. All rights reserved.
LICENSE TERMS
The redistribution and use of this software (with or without changes)
is allowed without the payment of fees or royalties provided that:
1. source code distributions include the above copyright notice, this
list of conditions and the following disclaimer;
2. binary distributions include the above copyright notice, this list
of conditions and the following disclaimer in their documentation;
3. the name of the copyright holder is not used to endorse products
built using this software without specific written permission.
DISCLAIMER
This software is provided 'as is' with no explicit or implied warranties
in respect of its properties, including, but not limited to, correctness
and/or fitness for purpose.
---------------------------------------------------------------------------
Issue 09/09/2006
This is an AES implementation that uses only 8-bit byte operations on the
cipher state (there are options to use 32-bit types if available).
The combination of mix columns and byte substitution used here is based on
that developed by Karl Malbrain. His contribution is acknowledged.
*/
/* This version derived by Mark Tillotson 2012-01-23, tidied up, slimmed down
and tailored to 8-bit microcontroller abilities and Arduino datatypes.
The s-box and inverse s-box were retained as tables (0.5kB PROGMEM) but all
the other transformations are coded to save table space. Many efficiency
improvments to the routines mix_sub_columns() and inv_mix_sub_columns()
(mainly common sub-expression elimination).
Only the routines with precalculated subkey schedule are retained (together
with set_key() - this does however mean each AES object takes 240 bytes of
RAM, alas)
The CBC routines side-effect the iv argument (so that successive calls work
together correctly).
All the encryption and decryption routines work with plain == cipher for
in-place encryption, note.
*/
没有合适的资源?快使用搜索试试~ 我知道了~
用于微控制器 的 AES (Arduino 和 Raspberry pi)_C++_代码_相关文件_下载
共21个文件
md:4个
txt:4个
cpp:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 168 浏览量
2022-07-06
17:05:06
上传
评论
收藏 126KB ZIP 举报
温馨提示
加载库后只需运行草图。 是一个 AES 实现,仅对密码状态使用 8 位字节操作(如果可用,可以选择使用 32 位类型)。 这里使用的混合列和字节替换的组合是基于 Karl Malbrain 开发的。他的贡献得到承认。*/ /* 此版本由 Mark Tillotson 2012-01-23 派生,经过整理、精简并针对 8 位微控制器功能和 Arduino 数据类型量身定制。 s-box 和反向 s-box 保留为表 (0.5kB PROGMEM),但所有其他转换都经过编码以节省表空间。例程 mix_sub_columns() 和 inv_mix_sub_columns() 的许多效率改进(主要是常见的子表达式消除)。 仅保留具有预先计算的子密钥计划的例程(连同 set_key() - 这确实意味着每个 AES 对象占用 240 字节的 RAM,唉) CBC 例程对 iv 参数产生副作用(以便连续调用正确地一起工作)。 注意,所有加密和解密例程都使用纯 == 密码进行就地加密。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
AES-master (1).zip (21个子文件)
AES
README.MD 3KB
printf.h 1KB
.github
ISSUE_TEMPLATE
bug_report.md 799B
feature_request.md 560B
AES.h 14KB
examples_Rpi
test_vectors.cpp 4KB
known_answers.txt 164KB
Makefile 959B
aes.cpp 1KB
RESOURCES 389B
keywords.txt 121B
Doxyfile 101KB
AES.cpp 18KB
examples
aes
aes.pde 2KB
test_vectors
test_vectors.pde 4KB
known_answers.txt 164KB
RESOURCES 389B
Makefile 2KB
CODE_OF_CONDUCT.md 3KB
AES_config.h 1KB
LICENSE.txt 34KB
共 21 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功