/*---------------------------------------------------------------------------* Project: Horizon File: crypto_ShaBlock512BitContext.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 12449 $ *---------------------------------------------------------------------------*/ /* SHA-X (Blocksize = 512bit) に関する API の宣言 */ #ifndef NN_CRYPTO_CRYPTO_SHABLOCK512BITCONTEXT_H_ #define NN_CRYPTO_CRYPTO_SHABLOCK512BITCONTEXT_H_ #include #ifdef __cplusplus namespace nn{ namespace crypto{ /*! @brief SHA(BlockSize=512bit)計算用コンテキストオブジェクトです。 このクラスを直接インスタンス化することはできません。 継承先のクラスを使用してください。 */ class ShaBlock512BitContext : public HashContextBase { public: static const size_t BLOCK_SIZE = (512/8); // 512bit virtual void Update(const void* pData, size_t length); protected: u8 m_Block[BLOCK_SIZE]; u32 m_Pool; u32 m_BlocksLow; u32 m_BlocksHigh; void Fill(u8 input, size_t length); void AddPadding(); // 単独インスタンス化の禁止 ShaBlock512BitContext() {} ~ShaBlock512BitContext() {} }; }} // namespace nn::crypto #endif // __cplusplus #endif /* NN_CRYPTO_CRYPTO_SHABLOCK512BITCONTEXT_H_ */