/*---------------------------------------------------------------------------* Project: Horizon File: crypto_HashContextBase.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: 34562 $ *--------------------------------------------------------------------------- */ #ifndef NN_CRYPTO_CRYPTO_HASHCONTEXTBASE_H_ #define NN_CRYPTO_CRYPTO_HASHCONTEXTBASE_H_ #include #include #ifdef __cplusplus namespace nn{ namespace crypto{ /* Please see man pages for details */ class HashContextBase { public: /* */ virtual void Initialize() {} /* */ virtual void Finalize() {} /* */ virtual void Update(const void* pData, size_t length) { NN_UNUSED_VAR(pData); NN_UNUSED_VAR(length); } /* */ virtual size_t GetHashLength() { return 0; } /* */ virtual void GetHash(void* pOut) { NN_UNUSED_VAR(pOut); } protected: // Prohibit independent instantiation HashContextBase() {} virtual ~HashContextBase() {} // Process block internally virtual void ProcessBlock() {} private: }; }} // namespace nn::crypto #endif // __cplusplus #endif /* NN_CRYPTO_CRYPTO_HASHCONTEXTBASE_H_ */