dhuertas / aes Goto Github PK
View Code? Open in Web Editor NEWAES algorithm implementation in C
License: MIT License
AES algorithm implementation in C
License: MIT License
你好,多谢你的代码,很久之前就在用你的AES源码,刚刚看到gmult.c这个文件,我不清楚是来干嘛的,我是小白,请问这个有什么作用,以前我记得是没有的,谢谢。
Hi,
I notice that a transposition is applied to the input in this code. Just as follows,
for (i = 0; i < 4; i++) {
for (j = 0; j < Nb; j++) {
state[Nb*i+j] = in[i+4*j];
}
}
I think this is used because the state of AES is column-major, as shown below. It is different with the array in C. But I do not think it is useful. Actually, this piece of code may cause some misunderstanding.
// state of AES
s0 s4 s8 s12
s1 s5 s9 s13
s2 s6 s10 s14
s3 s7 s11 s15
Hi there
What is the licence of this project? MIT? GPL? LGPL? BSD?
Niek
I WAS LOOKING FOR A CODE TO PERFORM AES ENCRYPTION IN C. I CAME ACROSS A DOCUMENT STATING THAT THERE ARE DIFFERENT MODES OF AES (for eg:CBC,ECB). PLEASE TELL ME WHICH MODE OF AES IS BEING IMPLEMENTED THROUGH THIS CODE? IF I RUN THIS CODE IN A MICROCONTROLLER FOR MY PROJECT, WHICH RUNS AT 168Mhz CLOCK, HOW MUCH TIME WILL THE AES ENCRYPTION PART ALONE WILL TAKE TO COMPLETE THE PROCESS. LOOKING FORWARD FOR YOUR REPLY.
THANKS & REGARDS
hello! i have a question, why you have two implementation of main function in aes.c and main.c? in codeblock throw an error
fine job
Hi.
is possible decrypt the generate files using openssl cmdline tool ?
Hi all,
I need help in encrypting more than 16 bytes of data at a time and number of bytes is not multiple of 4.
Please help me how can I do it.
If I pass data more than 16 bytes, it is encrypting and decrypting only 16 bytes of data. I am using 256-bit key.
<-- Plaintext message: -->
30 81 87 02 01 00 30 13 06 07 2a 86 48 ce 3d 02 01 06 08 2a 86 48 ce 3d 03 01 07 04 6d 30 6b 02 01 01 04 20 de 44 7e 52 39 ad cc 4a 15 b5 16 41 36 17 18 a3 9a 9a 9a 8b 19 5e 1e 74 cd f5 8e 86 f4 cb a9 d5 a1 44 03 42 00 04 af 10 95 51 b7 a5 4f e7 9b 94 71 e6 a3 8f fc 27 0a b3 a1 11 f8 12 cd 11 34 6d df 40 c1 2a ce 75 23 e3 8c 9d 37 d6 10 cf 4d 13 28 86 fd fb de 3f e8 66 64 64 7b 35 22 c1 53 99 ff 29 44 5e 8b ef
Ciphered message:
79 5b d0 b0 45 30 2c 84 fa 4d 89 57 f2 52 1b e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Original message (after inv cipher):
30 81 87 02 01 00 30 13 06 07 2a 86 48 ce 3d 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
How to encrypt a file, if the number of its size is not an integer multiple of 16?
Sorry
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.