Exports for User.
More...
|
| | VITASDK_BUILD_ASSERT_EQ (0x18, SceSblDmac5EncDecParam) |
| |
| | VITASDK_BUILD_ASSERT_EQ (0x18, SceSblDmac5HashTransformParam) |
| |
| int | sceSblDmac5EncDec (SceSblDmac5EncDecParam *param, SceUInt32 command) |
| | Execute DMAC5 encdec command.
|
| |
| int | sceSblDmac5EncDecKeyGen (const SceSblDmac5EncDecParam *param, SceUInt32 key_id, SceUInt32 command) |
| | Execute a user-mode DMAC5 cipher operation using an AuthMgr-derived key.
|
| |
| int | sceSblDmac5HashTransform (SceSblDmac5HashTransformParam *param, SceUInt32 command, SceUInt32 flags) |
| | Execute DMAC5 hash transform command.
|
| |
| int | sceSblDmac5HmacKeyGen (const SceSblDmac5HashTransformParam *param, SceUInt32 key_id, SceUInt32 command, SceUInt32 flags) |
| | Execute a user-mode keyed DMAC5 hash operation using an AuthMgr-derived key.
|
| |
Exports for User.
Using this library in your project
Include the header file in your project:
Link the library to the executable:
◆ SceSblDmac5EncDecParam
| struct SceSblDmac5EncDecParam |
| Data Fields |
|
const void * |
src |
Input buffer. |
|
void * |
dst |
Output buffer. |
|
SceSize |
length |
Length of the input data. |
|
const void * |
key |
Key data. |
|
SceSize |
keysize |
Key size in bits. |
|
void * |
iv |
Initialization vector. |
◆ SceSblDmac5HashTransformParam
| struct SceSblDmac5HashTransformParam |
◆ VITASDK_BUILD_ASSERT_EQ() [1/2]
◆ VITASDK_BUILD_ASSERT_EQ() [2/2]
◆ sceSblDmac5EncDec()
Execute DMAC5 encdec command.
- Parameters
-
| [in] | param | - Operation parameters. The destination and IV buffers they point to are written. |
| [in] | command | - The DMAC5 encdec command. |
- Returns
- 0 on success, else < 0.
◆ sceSblDmac5EncDecKeyGen()
Execute a user-mode DMAC5 cipher operation using an AuthMgr-derived key.
The calling process must be a system program. Key sizes of 128 and 256 bits are supported on FW 3.60. A 192-bit size passes this wrapper's validation but is rejected by the AuthMgr key loader. CBC and CTR operations read their 16-byte IV from SceSblDmac5EncDecParam::iv and replace it with the updated IV.
- Parameters
-
| [in] | param | - Required operation parameters. The structure is only read; the destination and IV buffers it points to are written. |
| [in] | key_id | - AuthMgr key identifier. |
| [in] | command | - DMAC5 cipher command word. |
- Returns
- 0 on success, < 0 on error.
◆ sceSblDmac5HashTransform()
Execute DMAC5 hash transform command.
- Parameters
-
| [in] | param | - Operation parameters. The destination and context buffers they point to may be written. |
| [in] | command | - The DMAC5 hash base command. |
| [in] | flags | - Bitwise OR of SceSblDmac5HashFlag values. Use 0 for a complete one-shot operation, 0x400 for the first streaming chunk, 0xC00 for an intermediate chunk, and 0x800 for the final chunk. |
- Returns
- 0 on success, else < 0.
◆ sceSblDmac5HmacKeyGen()
Execute a user-mode keyed DMAC5 hash operation using an AuthMgr-derived key.
The calling process must be a system program and SceSblDmac5HashTransformParam::src must be 0x40-byte aligned. The key size must be 128 or 256 bits. SHA-family commands use a 0x28-byte SceSblDmac5HashTransformContext; AES-CMAC uses a 0x10-byte SceSblDmac5AesCmacContext.
- Parameters
-
| [in] | param | - Required operation parameters. The structure is only read; the output and context buffers it points to may be written. |
| [in] | key_id | - AuthMgr key identifier. |
| [in] | command | - DMAC5 hash or MAC command word. |
| [in] | flags | - Bitwise OR of SceSblDmac5HashFlag values. |
- Returns
- 0 on success, < 0 on error.
◆ src [1/2]
| const void* SceSblDmac5EncDecParam::src |
◆ dst [1/2]
| void* SceSblDmac5EncDecParam::dst |
◆ length [1/2]
| SceSize SceSblDmac5EncDecParam::length |
Length of the input data.
◆ key [1/2]
| const void* SceSblDmac5EncDecParam::key |
◆ keysize [1/2]
| SceSize SceSblDmac5EncDecParam::keysize |
◆ iv
| void* SceSblDmac5EncDecParam::iv |
◆ src [2/2]
| const void* SceSblDmac5HashTransformParam::src |
◆ dst [2/2]
| void* SceSblDmac5HashTransformParam::dst |
◆ length [2/2]
| SceSize SceSblDmac5HashTransformParam::length |
Length of the input data.
◆ key [2/2]
| const void* SceSblDmac5HashTransformParam::key |
◆ keysize [2/2]
| SceSize SceSblDmac5HashTransformParam::keysize |
◆ ctx
| void* SceSblDmac5HashTransformParam::ctx |