WA-SDK  3.0.4.0
WA-SDK
wasdk_public.h 파일 참조
#include "wasdk_errorcode.h"
wasdk_public.h에 대한 include 의존 그래프
이 그래프는 이 파일을 직/간접적으로 include 하는 파일들을 보여줍니다.:

이 파일의 소스 코드 페이지로 가기

매크로

#define FUNCCALL
 
#define EXTERNC   extern
 
#define WA_SDK_API   EXTERNC
 
#define WASDK_FAIL   -1
 실패 더 자세히 ...
 
#define WASDK_SUCCESS   0
 성공 더 자세히 ...
 
#define MAX_SYMM_KEY_SIZE   32
 256 bit (AES256) 더 자세히 ...
 
#define MAX_SYMM_BLOCK_SIZE   16
 128 bit (SEED, AES128, AES256, ARIA, ...) 더 자세히 ...
 
#define MAX_ASYMM_KEY_SIZE   512
 4096 bit (RSA 4096) 더 자세히 ...
 
#define MAX_HASH_SIZE   64
 512 bit (SHA 512) 더 자세히 ...
 
#define WASDK_SAFE_FREE(_PTR_)   do { if (_PTR_) { free(_PTR_); (_PTR_) = NULL; } } while (0)
 

열거형 타입

enum  ESymmetricOperationMode {
  ESOM_UNDEFINED = -1 , ESOM_ECB , ESOM_CBC , ESOM_CFB ,
  ESOM_CFB_BYTE , ESOM_OFB , ESOM_OFB_BYTE , ESOM_CTS ,
  ESOM_CFB1 , ESOM_CTR , ESOM_MCFB , ESOM_GCM ,
  ESOM_CCM , ESymmetricOperationMode_COUNT
}
 비밀키 암호화 운영모드 더 자세히 ...
 
enum  ESymmetricAlgorithm {
  ESA_UNDEFINED = -1 , ESA_SEED , ESA_AES128 , ESA_AES256 ,
  ESA_ARIA , ESA_ARIA192 , ESA_ARIA256 , ESA_DES ,
  ESA_TDES , ESA_IDEA , ESA_LEA128 , ESA_LEA192 ,
  ESA_LEA256 , ESymmetricAlgorithm_COUNT
}
 대칭키 암호화 알고리즘 더 자세히 ...
 
enum  EAsymmetricAlgorithm {
  EAA_UNDEFINED = -1 , EAA_RSA , EAA_RSA21 , EAA_KCDSA0 ,
  EAA_KCDSA1 , EAA_ECDSA , EAA_ECKCDSA , EAA_DSA ,
  EAsymmetricAlgorithm_COUNT
}
 비대칭키 알고리즘 (전자서명, 암호화) 더 자세히 ...
 
enum  EHashAlgorithm {
  EHA_UNDEFINED = -1 , EHA_SHA1_OLD , EHA_SHA1 , EHA_SHA224 ,
  EHA_SHA256 , EHA_SHA384 , EHA_SHA512 , EHA_HAS160 ,
  EHA_MD2 , EHA_MD5 , EHashAlgorithm_COUNT
}
 해시 알고리즘 더 자세히 ...
 
enum  ERsaEncryptionScheme {
  ERES_UNDEFINED = -1 , ERES_OAEP_OLD , ERES_PKCS1_V15 , ERES_OAEP_V20 ,
  ERES_OAEP_V21 , ERsaEncryptionScheme_COUNT
}
 PKCS1 RSA 암호화에 사용되는 Encryption Scheme 더 자세히 ...
 
enum  EEncodingFormat {
  EEF_UNKNOWN = -1 , EEF_Binary , EEF_Base64 , EEF_Base64Url ,
  EEF_Base64UrlWithPadding , EEF_HexUpper , EEF_HexLower , EEncodingFormat_COUNT
}
 데이터 인코딩 형식 더 자세히 ...
 
enum  ECompareResult { ECR_Unknown = -2 , ECR_LessThan = -1 , ECR_Equal = 0 , ECR_GreaterThan = 1 }
 비교 결과 더 자세히 ...
 

함수

WA_SDK_API EErrorCode FUNCCALL wasdk_init_without_license (void)
 라이선스 확인 없이 모듈 초기화만 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_init (void)
 모듈 초기화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_init_with_ini (const char *ini, int ini_len)
 INI 설정을 이용하여 모듈 초기화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_init_with_ini_file (const char *ini_path)
 INI 설정 파일을 이용하여 모듈 초기화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_finalize (void)
 모듈을 종료한다. 더 자세히 ...
 
WA_SDK_API int FUNCCALL wasdk_get_detail_errorcode (void)
 상세한 에러코드를 리턴한다. 더 자세히 ...
 
WA_SDK_API int FUNCCALL wasdk_current_state (void)
 모듈의 현재상태를 가져온다. (디버깅 용 정보) 더 자세히 ...
 
WA_SDK_API const char *FUNCCALL wasdk_version (void)
 모듈의 버전을 가져온다. 더 자세히 ...
 
WA_SDK_API const char *FUNCCALL wasdk_product_info (void)
 모듈의 정보를 가져온다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_get_license_info (char *outstring)
 라이선스 정보를 가져온다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_set_verified_service (void)
 암호모듈 유한상태모델(FSM)의 현재 상태를 검증 서비스 상태로 변경한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_set_not_verified_service (void)
 암호모듈 유한상태모델(FSM)의 현재 상태를 비검증 서비스 상태로 변경한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_base64_encoding (char *b64, int b64BufSize, const unsigned char *data, int dataSize)
 Base64 인코딩 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_base64_decoding (unsigned char *data, int *dataSize, int dataBufSize, const char *b64)
 Base64 디코딩 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_generate_random (unsigned char *random, int randomSize)
 RNG(Random Number Generator)를 사용하여 랜덤값을 생성한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_generate_keypair (unsigned char *publicKey, int *publicKeySize, int publicKeyBufSize, unsigned char *privateKey, int *privateKeySize, int privateKeyBufSize, EAsymmetricAlgorithm asymmAlg, int keySizeInBit)
 키쌍을 생성한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_check_keypair (const unsigned char *publicKey, int publicKeySize, const unsigned char *privateKey, int privateKeySize, EAsymmetricAlgorithm asymmAlg)
 RSA 키쌍을 검증한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_generate_keypair_ec (unsigned char *publicKey, int *publicKeySize, int publicKeyBufSize, unsigned char *privateKey, int *privateKeySize, int privateKeyBufSize, EAsymmetricAlgorithm asymmAlg, const char *curveName)
 Elliptic Curve 키쌍을 생성한다. (ECDSA, ECKCDSA) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_check_keypair_ec (const unsigned char *publicKey, int publicKeySize, const unsigned char *privateKey, int privateKeySize, EAsymmetricAlgorithm asymmAlg, const char *curveName)
 Elliptic Curve 키쌍을 검증한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_generate_iv_from_seed (unsigned char *iv, int *ivSize, int ivBufSize, const unsigned char *ivSeed, int ivSeedSize, ESymmetricAlgorithm symmAlg, EHashAlgorithm hashAlg)
 IV SEED를 입력받아 IV를 생성한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hash_encrypt (unsigned char *hashValue, int *hashValueSize, int hashValueBufSize, const unsigned char *plaintext, int plaintextSize, EHashAlgorithm hashAlg)
 해시 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hmac_encrypt (unsigned char *hmacValue, int *hmacValueSize, int hmacValueBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *key, int keySize, EHashAlgorithm hashAlg)
 HMAC (Hashed MAC) 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_symmetric_encrypt (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *key, int keySize, const unsigned char *iv, int ivSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode)
 비밀키 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_symmetric_encrypt_ex (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *key, int keySize, const unsigned char *iv, int ivSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, unsigned char padFlag)
 비밀키 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_symmetric_decrypt (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, const unsigned char *key, int keySize, const unsigned char *iv, int ivSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode)
 비밀키 복호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_symmetric_decrypt_ex (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, const unsigned char *key, int keySize, const unsigned char *iv, int ivSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, unsigned char padFlag)
 비밀키 복호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_rsa_encrypt (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *publicKey, int publicKeySize, EHashAlgorithm hashAlg, ERsaEncryptionScheme rsaEncryptionScheme)
 RSA 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_rsa_decrypt (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, const unsigned char *privateKey, int privateKeySize, EHashAlgorithm hashAlg, ERsaEncryptionScheme rsaEncryptionScheme)
 RSA 복호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_rsa_encrypt_by_cert (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *cert, int certSize, EHashAlgorithm hashAlg)
 RSA 암호화를 실행한다. (인증서의 공개키 사용) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_rsa_decrypt_by_pkcs8 (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, const unsigned char *privateKey, int privateKeySize, EHashAlgorithm hashAlg)
 RSA 복호화를 실행한다. (PKCS8 형식의 개인키 사용) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_rsa_decrypt_by_pkcs8_ptr (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, void *privateKeyInfoPtr, EHashAlgorithm hashAlg)
 RSA 복호화를 실행한다. (외부에서 생성된 CIS PKCS8 형식의 개인키 포인터 사용) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_encrypt (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *customSessionKey, int sessionKeySize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, EHashAlgorithm hashAlg, const unsigned char *publicKey, int publicKeySize, ERsaEncryptionScheme rsaEncryptionScheme)
 하이브리드 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_decrypt (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, unsigned char *sessionKey, int *sessionKeySize, int sessionKeyBufSize, const unsigned char *encrypted, int encryptedSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, EHashAlgorithm hashAlg, const unsigned char *privateKey, int privateKeySize, ERsaEncryptionScheme rsaEncryptionScheme)
 하이브리드 복호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_encrypt_by_cert (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *customSessionKey, int sessionKeySize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, EHashAlgorithm hashAlg, const unsigned char *certificate, int certificateSize)
 하이브리드 암호화를 실행한다. 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_encrypt_ivseed (unsigned char *encrypted, int *encryptedSize, int encryptedBufSize, const unsigned char *plaintext, int plaintextSize, const unsigned char *customSessionKey, int sessionKeySize, const unsigned char *customIvSeed, int ivSeedSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, EHashAlgorithm hashAlg, const unsigned char *publicKey, int publicKeySize, ERsaEncryptionScheme rsaEncryptionScheme)
 하이브리드 암호화를 실행한다. (IV SEED 포함) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_decrypt_ivseed (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, unsigned char *sessionKey, int *sessionKeySize, int sessionKeyBufSize, int ivSeedSize, const unsigned char *encrypted, int encryptedSize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode, EHashAlgorithm hashAlg, const unsigned char *privateKey, int privateKeySize, ERsaEncryptionScheme rsaEncryptionScheme)
 하이브리드 복호화를 실행한다. (IV SEED 포함) 더 자세히 ...
 
WA_SDK_API EErrorCode FUNCCALL wasdk_hybrid_decrypt_by_sessionkey (unsigned char *decrypted, int *decryptedSize, int decryptedBufSize, const unsigned char *encrypted, int encryptedSize, const unsigned char *sessionKey, int sessionKeySize, ESymmetricAlgorithm symmAlg, ESymmetricOperationMode opMode)
 주어진 세션키로 하이브리드 데이터의 암호문 부분을 복호화한다. 더 자세히 ...
 
WA_SDK_API void FUNCCALL wasdk_free (void *ptr)
 WA-SDK 에서 생성된 메모리를 해제한다. (다른 메모리 영역) 더 자세히 ...
 
WA_SDK_API const char *FUNCCALL wasdk_error_message (EErrorCode errorCode)
 에러코드에 해당하는 에러 메시지를 가져온다. 더 자세히 ...
 

매크로 문서화

◆ FUNCCALL

#define FUNCCALL

◆ EXTERNC

#define EXTERNC   extern

◆ WA_SDK_API

#define WA_SDK_API   EXTERNC