AES-master
所属分类:加密解密
开发工具:matlab
文件大小:111KB
下载次数:27
上传日期:2017-04-05 16:01:13
上 传 者:
shenxiaochen
说明: AES加密解密算法在matlab上的实现,运行无错误,可直接在matlab上进行演示。
(AES matlab)
文件列表:
AES.cpp (18221, 2017-03-27)
AES.h (14633, 2017-03-27)
AES_config.h (973, 2017-03-27)
Doxyfile (102943, 2017-03-27)
Makefile (1567, 2017-03-27)
examples (0, 2017-03-27)
examples\aes (0, 2017-03-27)
examples\aes\aes.pde (1305, 2017-03-27)
examples\test_vectors (0, 2017-03-27)
examples\test_vectors\RESOURCES (389, 2017-03-27)
examples\test_vectors\known_answers.txt (168445, 2017-03-27)
examples\test_vectors\test_vectors.pde (4425, 2017-03-27)
examples_Rpi (0, 2017-03-27)
examples_Rpi\Makefile (959, 2017-03-27)
examples_Rpi\RESOURCES (389, 2017-03-27)
examples_Rpi\aes.cpp (1112, 2017-03-27)
examples_Rpi\known_answers.txt (168445, 2017-03-27)
examples_Rpi\test_vectors.cpp (4331, 2017-03-27)
keywords.txt (121, 2017-03-27)
printf.h (1196, 2017-03-27)
### 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
or
make clean
make
```
How to start a sketch
```
cd examples_Rpi
sudo ./
```
This is a derived work from Brian Gladman's AES implementation for byte-oriented
processors, here's the licence terms:
/*
---------------------------------------------------------------------------
Copyright (c) 19***-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.
*/
近期下载者:
相关文件:
收藏者: