メインページ | アルファベット順一覧 | 構成 | ファイル一覧 | 構成メンバ | ファイルメンバ | 関連ページ

# dkcTelecomConfirmPacket.h

説明を見る。

    00001
    00006 #ifndef  DKUTIL_C_TELECOM_CONFIRM_PACKET_H
    00007 #define  DKUTIL_C_TELECOM_CONFIRM_PACKET_H
    00008
    00009 #include "dkcHash.h"
    00010 #include "dkcCryptograph.h"
    00011 #if 0
    00012
    00013
    00014
    00015 #define dkcdTELECOM_CONFIRM_PACKET_MAX_LENGTH 0x7FFFFFFF
    00016
    00021 #define dkcdTELECOM_CONFIRM_PACKET_DEFAULT_PAUSE_SIZE 1966080
    00022
    00023 typedef struct dkc_TelecomConfirmPacketHeader{
    00024     uint32 version;
    00026     uint8 header_sig[SHA512_BIN_BUFFER_SIZE];
    00028     uint8 all_sig[SHA512_BIN_BUFFER_SIZE];
    00030     uint32 length;
    00032     uint32 pause_size;
    00033 }DKC_TELECOM_CONFIRM_PACKET_HEADER;
    00034
    00035
    00041
    00042 typedef struct dkc_TelecomConfirmPacket{
    00044     size_t pause_size;
    00045     //フラグ
    00046     //UINT flag;
    00048     DKC_SHA512 *psig;
    00050     ULONG seed;
    00051
    00052
    00054
    00056     uint8 key512[SHA512_BIN_BUFFER_SIZE];
    00057     /*
    00059     size_t keysize;
    00061     uint8 *pkey;
    00063     uint8 key256[SHA256_BIN_BUFFER_SIZE];
    00064     uint8 key160[SHA160_BIN_BUFFER_SIZE];
    00065     */
    00066
    00068     UINT flag;
    00070     void *crypt_obj;
    00071     uint8 isNaturalKey;
    00072 }DKC_TELECOM_CONFIRM_PACKET;
    00073
    00074 /*
    00075 @param pause_size[in] 区切りサイズ
    00076 @param flag[in] enum edk_ProcessSignaturesのどれかを入れる
    00077 @param key[in] 暗号化キー(圧縮時も必ず入れてください）
    00078 @param keysize[in] キーのサイズ
    00079
    00080 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacket(size_t pause_size,UINT flag,const void *key,size_t keysize,BOOL isNaturalKey);
    00081 */
    00082
    00090 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacket(size_t pause_size,const void *key,size_t keysize,UINT flag,BOOL isNaturalKey);
    00091
    00092 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacketAuto(const void *key,size_t keysize);
    00093
    00094 DKC_EXTERN int WINAPI dkcFreeTelecomConfirmPacket(DKC_TELECOM_CONFIRM_PACKET **);
    00095
    00096
    00097
    00098 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketEncode(DKC_TELECOM_CONFIRM_PACKET *p,
    00099                                                                                  uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00100
    00101
    00102 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketDecode(DKC_TELECOM_CONFIRM_PACKET *p,
    00103                                                                                  uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00104
    00105
    00106 DKC_EXTERN size_t WINAPI dkcGetOutputSize(const uint8 *src);
    00107
    00108 /*
    00109 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketEncode(uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00110
    00111 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketDecode(uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00112 */
    00113
    00114
    00115 #if !defined( DKUTIL_C_TELECOM_CONFIRM_PACKET_C ) &&  defined(USE_DKC_INDEPENDENT_INCLUDE)
    00116 #   include "dkcTelecomConfirmPacket.c"
    00117 #endif
    00118
    00119 #endif
    00120
    00121 #endif //end of include once