CTR-Pia
5.4.3
Game Communication Engine
メインページ
ネームスペース一覧
クラス構成
クラス索引
関連ページ
Result 検索
全て
クラス
ネームスペース
関数
変数
型定義
列挙型
列挙型の値
ページ
common_CryptoSetting.h
1
/*--------------------------------------------------------------------------------*
2
Copyright (C)Nintendo All rights reserved.
3
4
These coded instructions, statements, and computer programs contain proprietary
5
information of Nintendo and/or its licensed developers and are protected by
6
national and international copyright laws. They may not be disclosed to third
7
parties or copied or duplicated in any form, in whole or in part, without the
8
prior written consent of Nintendo.
9
10
The content herein is highly confidential and should be handled accordingly.
11
*--------------------------------------------------------------------------------*/
12
13
14
#pragma once
15
16
#include <nn/pia/common/common_Definitions.h>
17
#include <nn/pia/common/common_Crypto.h>
18
19
namespace
nn
20
{
21
namespace
pia
22
{
23
namespace
common
24
{
25
26
27
/*!
28
@brief 暗号化の設定構造体です。
29
30
*/
31
struct
CryptoSetting
32
{
33
public
:
34
/*!
35
@brief デフォルトコンストラクタです。
36
@details 暗号アルゴリズムは暗号なし、暗号鍵はゼロに初期化されます。
37
*/
38
CryptoSetting
();
39
40
41
public
:
42
/*!
43
@brief 暗号アルゴリズムの種類を表します。
44
*/
45
enum
Mode
46
{
47
Mode_Nothing
= Crypto::Mode_Nothing,
//!< 無し
48
Mode_Aes128
= Crypto::Mode_Aes128
//!< AES-128
49
};
50
51
/*!
52
@brief 鍵のサイズです。
53
*/
54
static
const
uint32_t
KeySize
= 16;
55
56
/*!
57
@brief 暗号アルゴリズムの種類です。
58
*/
59
Mode
m_Mode
;
60
61
/*!
62
@brief 暗号鍵です。
63
@details 暗号なし(Mode_Nothing)の場合は設定不要です。
64
*/
65
uint8_t
m_Key
[
KeySize
];
66
};
67
}
68
}
69
}
// end of namespace nn::pia::common
Include
nn
pia
common
common_CryptoSetting.h
© 2016 Nintendo Co., Ltd. All rights reserved. 記載されている会社名、製品名等は、各社の登録商標または商標です。