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

# 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
    00012
    00013 //
    00014 #if 0
    00015
    00016 #define dkcdTELECOM_CONFIRM_PACKET_MAX_LENGTH 0x7FFFFFFF
    00017
    00022 #define dkcdTELECOM_CONFIRM_PACKET_DEFAULT_PAUSE_SIZE 1966080
    00023
    00024 typedef struct dkc_TelecomConfirmPacketHeader{
    00026     uint8 sig[SHA512_BIN_BUFFER_SIZE];
    00027
    00029     uint32 length;
    00030 }DKC_TELECOM_CONFIRM_PACKET_HEADER;
    00031
    00032
    00038
    00039 typedef struct dkc_TelecomConfirmPacket{
    00041     size_t pause_size;
    00042     //フラグ
    00043     //UINT flag;
    00045     DKC_SHA512 *psig;
    00047     ULONG seed;
    00048
    00049
    00051
    00053     uint8 key512[SHA512_BIN_BUFFER_SIZE];
    00054     /*
    00056     size_t keysize;
    00058     uint8 *pkey;
    00060     uint8 key256[SHA256_BIN_BUFFER_SIZE];
    00061     uint8 key160[SHA160_BIN_BUFFER_SIZE];
    00062     */
    00063
    00065     UINT flag;
    00067     void *crypt_obj;
    00068     uint8 isNaturalKey;
    00069 }DKC_TELECOM_CONFIRM_PACKET;
    00070
    00071 /*
    00072 @param pause_size[in] 区切りサイズ
    00073 @param flag[in] enum edk_ProcessSignaturesのどれかを入れる
    00074 @param key[in] 暗号化キー(圧縮時も必ず入れてください）
    00075 @param keysize[in] キーのサイズ
    00076
    00077 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacket(size_t pause_size,UINT flag,const void *key,size_t keysize,BOOL isNaturalKey);
    00078 */
    00079
    00087 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacket(size_t pause_size,const void *key,size_t keysize,UINT flag,BOOL isNaturalKey);
    00088
    00089 DKC_EXTERN DKC_TELECOM_CONFIRM_PACKET* WINAPI dkcAllocTelecomConfirmPacketAuto(const void *key,size_t keysize);
    00090
    00091 DKC_EXTERN int WINAPI dkcFreeTelecomConfirmPacket(DKC_TELECOM_CONFIRM_PACKET **);
    00092
    00093
    00094
    00095 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketEncode(DKC_TELECOM_CONFIRM_PACKET *p,
    00096                                                                                  uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00097
    00098
    00099 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketDecode(DKC_TELECOM_CONFIRM_PACKET *p,
    00100                                                                                  uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00101
    00102
    00103 DKC_EXTERN size_t WINAPI dkcGetOutputSize(const uint8 *src);
    00104
    00105 /*
    00106 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketEncode(uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00107
    00108 DKC_EXTERN int WINAPI dkcTelecomConfirmPacketDecode(uint8 *dest,size_t destsize,const uint8 *src,size_t srcsize);
    00109 */
    00110
    00111
    00112 #if !defined( DKUTIL_C_TELECOM_CONFIRM_PACKET_C ) &&  defined(USE_DKC_INDEPENDENT_INCLUDE)
    00113 #   include "dkcTelecomConfirmPacket.c"
    00114 #endif
    00115
    00116 #endif //end of if0
    00117
    00118 #endif //end of include once