mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
開発用のKey Table2と分かるように、リネーム。 git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1796 b08762b0-b915-fc4b-9d8c-17b2551a87ff
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
/*---------------------------------------------------------------------------*
|
|
Project: TwlIPL - HOTSW - include
|
|
File: blowfish.h
|
|
|
|
Copyright 2007-2008 Nintendo. 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.
|
|
*---------------------------------------------------------------------------*/
|
|
#ifndef HOTSW_GCD_BLOWFISH_H
|
|
#define HOTSW_GCD_BLOWFISH_H
|
|
|
|
|
|
#include <twl/types.h>
|
|
#include <firm/gcd/blowfish.h>
|
|
#include <hotswTypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*************************************************************************/
|
|
extern BLOWFISH_CTX HotSwBlowfishInitTableBufDS;
|
|
extern BLOWFISH_CTX HotSwBlowfishInitTableTWL_dev;
|
|
|
|
// Function Prototype ------------------------------------------------------------------------
|
|
|
|
// Blowfish KeyとTableの初期化
|
|
void InitBlowfishKeyAndTableDS(BLOWFISH_CTX *ctx, u32 *keyBufp, s32 keyLen);
|
|
|
|
// Key Table の生成
|
|
void MakeBlowfishTableDS(CardBootData *cbd, s32 keyLen);
|
|
|
|
// Key Table2 の生成
|
|
void MakeBlowfishTableTWL(CardBootData *cbd, s32 keyLen, u16 bondingOp);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif // HOTSW_GCD_BLOWFISH_H
|