ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
Loading...
Searching...
No Matches
encrypt_aes256.hpp File Reference

Encrypt AES256 Utility Header. More...

#include <secure/common/common.hpp>
#include <vector>
#include <string>
#include <cstdint>
#include <algorithm>
+ Include dependency graph for encrypt_aes256.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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 복호화
 

Detailed Description

Encrypt AES256 Utility Header.

Function Documentation

◆ decryptAES256() [1/2]

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 사용

Parameters
input입력 (cipher text)
input_len입력 버퍼 길이
key복호화 키
iv
output출력 버퍼
output_len출력 길이
Returns
true
false

◆ decryptAES256() [2/2]

bool secure::encrypt::decryptAES256 ( const std::vector< char > & input,
const std::string & key,
std::string & output )

AES256 복호화

Parameters
input입력 (cipher text)
key복호화 키
output출력 메시지 (plain-text)
Returns
true
false

◆ encryptAES256() [1/2]

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 사용

Parameters
input
input_len
key
iv
output
output_len
Returns
true
false

◆ encryptAES256() [2/2]

bool secure::encrypt::encryptAES256 ( const std::string & input,
const std::string & key,
std::vector< char > & output )

AES256 암호화

key의 길이가 32보다 작을 경우, add_padding시
부족한 길이를 '='로 채워서 사용함

Parameters
[in]input원본 메시지
[in]key
[out]output
add_paddingkey 패딩 추가 여부
Returns
true
false