-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEDConAPI.h
More file actions
51 lines (42 loc) · 1.53 KB
/
EDConAPI.h
File metadata and controls
51 lines (42 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include "framework.h"
namespace EDCon_API {
/**
* @brief 파일을 암호화하여 결과를 새로운 파일로 저장하는 함수
*
* @param pEncKey 암호화에 사용할 키
* @param pSrcPath 원본 파일 경로
* @param pDstPath 암호화된 결과를 저장할 파일 경로
* @return 성공 시 0, 실패 시 -1 반환
*/
WINSYSEDCON_API int EncryptToFile(const char* pEncKey, const char* pSrcPath, const char* pDstPath);
/**
* @brief 파일을 복호화하여 결과를 새로운 파일로 저장하는 함수
*
* @param pDecKey 복호화에 사용할 키
* @param pSrcPath 암호화된 파일 경로
* @param pDstPath 복호화된 결과를 저장할 파일 경로
* @return 성공 시 0, 실패 시 -1 반환
*/
WINSYSEDCON_API int DecryptToFile(const char* pDecKey, const char* pSrcPath, const char* pDstPath);
/**
* @brief 파일을 암호화하여 결과를 메모리에 저장하는 함수
*
* @param pEncKey 암호화에 사용할 키
* @param pSrcPath 원본 파일 경로
* @param pDst 암호화된 결과를 저장할 메모리 버퍼 포인터
* @param nLenDst 메모리 버퍼의 길이
* @return 성공 시 0, 실패 시 -1 반환
*/
WINSYSEDCON_API int EncryptToMemory(const char* pEncKey, const char* pSrcPath, void* pDst, int nLenDst, int * pnLenEnc);
/**
* @brief 파일을 복호화하여 결과를 메모리에 저장하는 함수
*
* @param pDecKey 복호화에 사용할 키
* @param pSrcPath 암호화된 파일 경로
* @param pDst 복호화된 결과를 저장할 메모리 버퍼 포인터
* @param nLenDst 메모리 버퍼의 길이
* @return 성공 시 0, 실패 시 -1 반환
*/
WINSYSEDCON_API int DecryptToMemory(const char* pDecKey, const char* pSrcPath, void* pDst, int nLenDst, int * pnLenDec);
}