ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
|
Encrypt AES256 Utility Source. More...
#include "encrypt_aes256.hpp"
#include "encrypt_str_utils.hpp"
#include <openssl/evp.h>
#include <cstring>
Functions | |
bool | secure::encrypt::encryptAES256 (const std::string &input, const std::string &key, std::vector< char > &output) |
AES256 암호화 | |
bool | secure::encrypt::encryptAES256 (const char *input, size_t input_len, const char *key, const char *iv, char *output, int &output_len) |
AES256 함호화 | |
bool | secure::encrypt::decryptAES256 (const std::vector< char > &input, const std::string &key, std::string &output) |
AES256 복호화 | |
bool | secure::encrypt::decryptAES256 (const char *input, size_t input_len, const char *key, const char *iv, char *output, int &output_len) |
AES256 복호화 | |
Encrypt AES256 Utility Source.
bool secure::encrypt::decryptAES256 | ( | const char * | input, |
size_t | input_len, | ||
const char * | key, | ||
const char * | iv, | ||
char * | output, | ||
int & | output_len ) |
AES256 복호화
raw-pointer 사용
input | 입력 (cipher text) |
input_len | 입력 버퍼 길이 |
key | 복호화 키 |
iv | |
output | 출력 버퍼 |
output_len | 출력 길이 |
bool secure::encrypt::decryptAES256 | ( | const std::vector< char > & | input, |
const std::string & | key, | ||
std::string & | output ) |
AES256 복호화
input | 입력 (cipher text) |
key | 복호화 키 |
output | 출력 메시지 (plain-text) |
bool secure::encrypt::encryptAES256 | ( | const char * | input, |
size_t | input_len, | ||
const char * | key, | ||
const char * | iv, | ||
char * | output, | ||
int & | output_len ) |
AES256 함호화
raw-pointer 사용
input | |
input_len | |
key | |
iv | |
output | |
output_len |
bool secure::encrypt::encryptAES256 | ( | const std::string & | input, |
const std::string & | key, | ||
std::vector< char > & | output ) |
AES256 암호화
key의 길이가 32보다 작을 경우, add_padding시
부족한 길이를 '='로 채워서 사용함
[in] | input | 원본 메시지 |
[in] | key | |
[out] | output | |
add_padding | key 패딩 추가 여부 |