// MakeSHA512.h: CMakeSHA512 クラスのインターフェイス
//
//////////////////////////////////////////////////////////////////////

#pragma once

#include "MakeHashAlgorithm.h"

class CMakeSHA512 : public CMakeHashAlgorithm
{
public:
    CMakeSHA512();
    ~CMakeSHA512();

    virtual char* GetHashName(char *pBuffer=NULL) { return (pBuffer) ? strcpy(pBuffer,"SHA512") : "SHA512"; }
    virtual DWORD GetHashValueSize() { return 64; }
    virtual DWORD GetHashBlockSize() { return 128; }
    virtual void Initialize();

    virtual BOOL Test();

private:
    virtual DWORD ComputeHashHelper(const void *pBuffer, DWORD len)
            { return ComputeHashHelper(pBuffer, m_pHash, len); }
    virtual DWORD ComputeHashHelper(const void *pBuffer, void *msg_digest, DWORD len);
    virtual void ComputeHashFinalHelper(void *msg_digest);

private:
    QWORD m_pHash[8];
};
