- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
#include "hex.h"
#include "aes.h"
#include <stdio.h>
#define KEY (0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c)
#define DATA (0x32, 0x43, 0xf6, 0xa8, 0x88, 0x5a, 0x30, 0x8d, 0x31, 0x31, 0x98, 0xa2, 0xe0, 0x37, 0x07, 0x34)
unsigned char enc[] = { BPP_AES_ENCRYPT_ARRAY(KEY, DATA) };
int main() {
for (int i=0; i<sizeof(enc); ++i) {
printf("%02X ", enc[i]);
}
printf("\n");
return 0;
TeaBag 15.05.2017 09:34 # −5
TeaBag 15.05.2017 09:39 # −5
CrashTesterAnusov 15.05.2017 11:12 # −5
Fike 16.05.2017 01:11 # +1
AnalPenetrator 16.05.2017 08:30 # −6
kipar 17.05.2017 10:34 # +3
Надо
делать сразу после зашифровки.
CrashTesterAnusov 17.05.2017 13:25 # −5
И память не забыть занулить.
TeaBag 19.05.2017 11:42 # −6