AES 암호화의 2 개로 분리 된 버전처럼 작아야합니다. 내가 봤 거든 AES - Advanced Encryption Standard (소스 코드),하지만 코드는 Windows 용으로 작성된 것 같아 멀티 플랫폼 하나가 필요합니다.AES 암호화 코드
Linux에서 알 수없는 사용 된 기능에 대한 알려진 AES encrpytion의 다른 작은 버전이 있습니까?
내 컴파일러는 그 알 수없는 함수는 말한다 :
./aes/AES.cpp:198:17: error: ‘_rotl’ was not declared in this scope
./aes/AES.cpp:608:20: error: ‘_rotr’ was not declared in this scope
또한 가지고 : 것과
./aes/AES.cpp:764:34: error: ‘memset’ was not declared in this scope
./aes/AES.cpp:770:36: error: ‘memcpy’ was not declared in this scope
알려진해야한다, 그 포함 고려 :
#include "AES.hpp"
#include <assert.h>
#include <stdio.h>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
'memset'과'memcpy'를 얻기 위해서는''을 포함시켜야합니다. –
avakar
회전 내장 함수는 C 코드 또는 플랫폼에 적합한 대체 코드로 교체하면됩니다. –
** 키 관리 문제를 먼저 해결 ** : http://blogs.msdn.com/b/ericlippert/archive/2011/09/27/keep-it-secret-keep-it-safe.aspx –