WA-SDK  3.0.4.0
WA-SDK
issacapi_pe.h
이 파일의 문서화 페이지로 가기
1 /*
2  Copyright (C) 2002 PENTA SECURITY SYSTEMS, INC.
3  All rights reserved
4 
5  THIS IS UNPUBLISHED PROPRIETARY
6  SOURCE CODE OF PENTA SECURITY SYSTEMS, INC.
7 
8  The copyright notice above does not evidence any actual or intended
9  publication of such source code.
10 
11  Filename : issacapi_pe.h
12 */
13 
14 #ifndef _issacapi_pe_h
15 #define _issacapi_pe_h
16 
17 #include "issacapi.h"
18 
23 
34  void *ciphertext,
35  int *ciphertext_len,
36  int ciphertext_alloc_len,
37  const void *plaintext,
38  int plaintext_len,
39  CERTIFICATE *recipient_cert,
40  int cipher_id
41 );
42 
55  void *ciphertext,
56  int *ciphertext_len,
57  int ciphertext_alloc_len,
58  const void *plaintext,
59  int plaintext_len,
60  CERTIFICATES *recipient_certs,
61  int cipher_id
62 );
63 
74  void *ciphertext,
75  int *ciphertext_len,
76  void *key,
77  int *keylen,
78  void *iv,
79  int *ivlen,
80  int ciphertext_alloc_len,
81  const void *plaintext,
82  int plaintext_len,
83  CERTIFICATES *recipient_certs,
84  int cipher_id
85 );
86 
100  const char *ciphertext_file,
101  const char *plaintext_file,
102  CERTIFICATE *recipient_cert,
103  int cipher_id
104 );
105 
119  const char *ciphertext_file,
120  const char *plaintext_file,
121  CERTIFICATES *recipient_certs,
122  int cipher_id
123 );
124 
136  void *plaintext,
137  int *plaintext_len,
138  int plaintext_alloc_len,
139  const void *ciphertext,
140  int ciphertext_len,
141  PRIVATEKEY *privatekey
142 );
143 
153  void *plaintext,
154  int *plaintext_len,
155  int plaintext_alloc_len,
156  const void *ciphertext,
157  int ciphertext_len,
158  CERTIFICATE *cert,
159  PRIVATEKEY *privatekey
160 );
161 
173  const char *plaintext_file,
174  const char *ciphertext_file,
175  PRIVATEKEY *privatekey
176 );
177 
188  const char *plaintext_file,
189  const char *ciphertext_file,
190  CERTIFICATE *cert,
191  PRIVATEKEY *privatekey
192 );
193 
202  void *key,
203  int *keylen,
204  void *iv,
205  int *ivlen,
206  const void *ciphertext,
207  int ciphertext_len,
208  CERTIFICATE *cert,
209  PRIVATEKEY *privatekey
210 );
211 
218  void *header,
219  const void *ciphertext,
220  int ciphertext_len
221 );
222 
229  void *ciphertext,
230  int *ciphertext_len,
231  const void *header
232 );
233 
242  void *cipher,
243  int *cipherLen,
244  const void *plain,
245  int plainLen,
246  PUBLICKEY *publicKey
247 );
248 
257  void *plain,
258  int *plainLen,
259  void *cipher,
260  int cipherLen,
261  PRIVATEKEY *privateKey
262 );
263 
271  void *cipher,
272  int *cipherLen,
273  const void *plain,
274  int plainLen,
275  PUBLICKEY *publicKey
276 );
277 
285  void *plain,
286  int *plainLen,
287  void *cipher,
288  int cipherLen,
289  PRIVATEKEY *privateKey
290 );
291 
293 
294 
295 #endif /* _issacapi_pe.h */
296 
unsigned int ISSAC_RETURN
ISSAC-API 실행 결과 [ ISSACAPI_BASIC_RETURN, ISSACAPI_ERRORS, ISSAC_LICENSE_ERR ]
Definition: issacapi_bs_definitions.h:32
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_Decrypt(void *plaintext, int *plaintext_len, int plaintext_alloc_len, const void *ciphertext, int ciphertext_len, PRIVATEKEY *privatekey)
암호문(EnvelopedData)을 복호화하여 원문을 가져온다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_EncryptExGetKey(void *ciphertext, int *ciphertext_len, void *key, int *keylen, void *iv, int *ivlen, int ciphertext_alloc_len, const void *plaintext, int plaintext_len, CERTIFICATES *recipient_certs, int cipher_id)
여러 수신자들의 인증서를 이용해 데이터를 암호화(EnvelopedData)하고, 암호화에 사용된 비밀키와 초기값을 출력한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_EncryptEx_File(const char *ciphertext_file, const char *plaintext_file, CERTIFICATES *recipient_certs, int cipher_id)
원문 파일을 여러 수신자들의 인증서로 암호화하여 암호문(EnvelopedData) 파일로 출력한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_RSA15_RSAES_Decrypt(void *plain, int *plainLen, void *cipher, int cipherLen, PRIVATEKEY *privateKey)
RSA v1.5 RSAES 방식의 암호문을 복호화한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_RSA15_EncryptRawBytes(void *cipher, int *cipherLen, const void *plain, int plainLen, PUBLICKEY *publicKey)
RSA로 평문을 암호화한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_GetSessionKey(void *key, int *keylen, void *iv, int *ivlen, const void *ciphertext, int ciphertext_len, CERTIFICATE *cert, PRIVATEKEY *privatekey)
암호문(EnvelopedData)에서 비밀키와 초기값을 추출한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_RSA15_DecryptRawBytes(void *plain, int *plainLen, void *cipher, int cipherLen, PRIVATEKEY *privateKey)
RSA v1.5 RSAES 방식의 암호문을 복호화한다. (ISSAC_RSA15_RSAES_Decrypt() 와 동일)
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_RemoveHeader(void *ciphertext, int *ciphertext_len, const void *header)
PKCS#7 메시지에서 PKCS#7 태그를 삭제하여 EnvelopedData 를 추출한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_Encrypt_File(const char *ciphertext_file, const char *plaintext_file, CERTIFICATE *recipient_cert, int cipher_id)
원문 파일을 수신자의 인증서로 암호화하여 암호문(EnvelopedData) 파일로 출력한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_RSA15_RSAES_Encrypt(void *cipher, int *cipherLen, const void *plain, int plainLen, PUBLICKEY *publicKey)
RSA v1.5 RSAES 방식으로 평문을 암호화한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_DecryptEx(void *plaintext, int *plaintext_len, int plaintext_alloc_len, const void *ciphertext, int ciphertext_len, CERTIFICATE *cert, PRIVATEKEY *privatekey)
암호문(EnvelopedData)을 복호화하여 원문을 가져온다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_Encrypt(void *ciphertext, int *ciphertext_len, int ciphertext_alloc_len, const void *plaintext, int plaintext_len, CERTIFICATE *recipient_cert, int cipher_id)
수신자의 인증서로 데이터를 암호화(EnvelopedData)한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_EncryptEx(void *ciphertext, int *ciphertext_len, int ciphertext_alloc_len, const void *plaintext, int plaintext_len, CERTIFICATES *recipient_certs, int cipher_id)
여러 수신자들의 인증서를 이용해 데이터를 암호화(EnvelopedData)한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_AppendHeader(void *header, const void *ciphertext, int ciphertext_len)
EnvelopedData 에 PKCS#7 태그를 추가하여 PKCS#7 메시지를 생성한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_DecryptEx_File(const char *plaintext_file, const char *ciphertext_file, CERTIFICATE *cert, PRIVATEKEY *privatekey)
암호문 파일을 복호화하여 원문 파일을 출력한다.
WA_SDK_API ISSAC_RETURN FUNCCALL ISSAC_PE_Decrypt_File(const char *plaintext_file, const char *ciphertext_file, PRIVATEKEY *privatekey)
암호문 파일을 복호화하여 원문 파일을 출력한다.
인증서에 대한 컨텍스트
Definition: issacapi_bs_definitions.h:106
인증서 집합에 대한 컨텍스트
Definition: issacapi_bs_definitions.h:114
PKCS#8 형식의 개인키에 대한 컨텍스트
Definition: issacapi_bs_definitions.h:152
공개키에 대한 컨텍스트
Definition: issacapi_bs_definitions.h:158
#define FUNCCALL
Definition: wasdk_public.h:9
#define WA_SDK_API
Definition: wasdk_public.h:27