/*---------------------------------------------------------------------------* Project: Horizon File: crypto_Hmac.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 $ *---------------------------------------------------------------------------*/ /*! @file @brief HMAC に関する API の宣言 */ #ifndef NN_CRYPTO_CRYPTO_HMAC_H_ #define NN_CRYPTO_CRYPTO_HMAC_H_ #ifdef __cplusplus namespace nn{ namespace crypto{ /*! @brief HMAC-SHA1 を計算します。 @param[out] pOut HMAC 値を格納する場所へのポインタ @param[in] pData 入力データのポインタ @param[in] length 入力データ長 @param[in] pKeyData 鍵データへのポインタ @param[in] keyLength 鍵データ長 @return 無し。(pOut に HMAC-SHA1 計算結果が格納されます。) */ void CalculateHmacSha1( void* pOut, const void* pData, size_t length, const void* pKeyData, size_t keyLength ); /*! @brief HMAC-SHA256 を計算します。 @param[out] pOut HMAC 値を格納する場所へのポインタ @param[in] pData 入力データのポインタ @param[in] length 入力データ長 @param[in] pKeyData 鍵データへのポインタ @param[in] keyLength 鍵データ長 @return 無し。(pOut に HMAC-SHA256 計算結果が格納されます。) */ void CalculateHmacSha256( void* pOut, const void* pData, size_t length, const void* pKeyData, size_t keyLength ); }} // namespace nn::crypto #endif // __cplusplus #endif /* NN_CRYPTO_CRYPTO_HMAC_H_ */