Line 1,049: |
Line 1,049: |
| ! Description | | ! Description |
| |- | | |- |
− | | 0x0 || 0x4 || | + | | 0x0 || 0x4 || Must be value 1. |
| |- | | |- |
− | | 0x4 || 0x4 || The official wrapper code for [[#GeneratePrivateKeyAndCert]] throws an error if this is value 0. | + | | 0x4 || 0x4 || s32 Key size, in bytes. |
| |- | | |- |
− | | 0x8 || 0x8 || The official wrapper code for [[#GeneratePrivateKeyAndCert]] throws an error if this is value 0. | + | | 0x8 || 0x8 || Public exponent, must be non-zero. Only the low 4-bytes are used. |
| |- | | |- |
− | | 0x10 || 0x40 || NUL-terminated string. | + | | 0x10 || 0x40 || CN (Common Name) NUL-terminated string. |
| |- | | |- |
− | | 0x50 || 0x4 || The official wrapper code for [[#GeneratePrivateKeyAndCert]] throws an error if this is value 0 or >0x3F. It also verifies that this matches the output from: <code>strnlen(struct+0x10, 0x40)</code>. | + | | 0x50 || 0x4 || An error is thrown if this is value 0 or >0x3F. The official wrapper code for [[#GeneratePrivateKeyAndCert]] verifies that this matches the output from <code>strnlen(struct+0x10, 0x40)</code>, however the sysmodule version just throws an error if the strnlen output matches 0x40 (as in no NUL-terminator found). |
| |} | | |} |
| | | |