CTR Pia
4.11.3
Game Communication Engine
|
This class represents signature setting information and includes an internal signature key buffer. More...
Public Types |
Public Member Functions | |
SignatureSettingWithKeyBuffer (Mode mode) | |
Instantiates an object. Initializes the object instance using the specified signature algorithm. More... | |
SignatureSettingWithKeyBuffer () | |
Instantiates an object. The instance is initialized using the predefined signature algorithm (HMAC-MD5). More... | |
u8 * | GetKeyBufferPtr () |
Gets a pointer to the key data buffer. More... | |
const void * | GetKeyData () const |
Gets the address of the key data that is currently specified. More... | |
size_t | GetKeySize () const |
Gets the size of the key data that is currently specified. More... | |
Mode | GetMode () const |
Gets the signature algorithm that is currently specified. More... | |
nn::Result | SetMode (Mode mode) |
Sets the signature algorithm. More... | |
Static Public Attributes | |
static const SignatureSetting | NO_SIGNATURE |
Specifies an instance of the signature setting class that has no signature. | |
static const u32 | SIGNATURE_KEY_DATA_SIZE_MAX = 32 |
Maximum number of bytes for the key data used for the signature. | |
This class represents signature setting information and includes an internal signature key buffer.
KeySize | Specifies the key size (in bytes). A buffer of this size is configured. |
|
inherited |
|
inlineexplicit |
Instantiates an object. Initializes the object instance using the specified signature algorithm.
Write the key to the address retrieved by using the GetKeyBufferPrt
function.
[in] | mode | Specifies the type of signature algorithm. |
|
inline |
Instantiates an object. The instance is initialized using the predefined signature algorithm (HMAC-MD5).
Write the key to the address retrieved by using the GetKeyBufferPrt
function.
|
inline |
Gets a pointer to the key data buffer.
|
inlineinherited |
Gets the address of the key data that is currently specified.
|
inlineinherited |
Gets the size of the key data that is currently specified.
|
inlineinherited |
Gets the signature algorithm that is currently specified.
|
inline |
Sets the signature algorithm.
[in] | mode | Specifies the type of signature algorithm. |
Result
that indicates success if configured correctly. ResultInvalidArgument
Indicates an invalid argument. Programming error. Fix your program so that this error is not returned.