SPL services: Difference between revisions
Add full interface name (imported from SwIPC) |
let's call 'em what they are |
||
Line 55: | Line 55: | ||
| 17 || [[#DecryptImportPrivkForExpMod1]] || Speculative name. Wrapper for [[SMC#LoadRsaPrivateKey|LoadRsaPrivateKey SMC]]. | | 17 || [[#DecryptImportPrivkForExpMod1]] || Speculative name. Wrapper for [[SMC#LoadRsaPrivateKey|LoadRsaPrivateKey SMC]]. | ||
|- | |- | ||
| 18 || [[# | | 18 || [[#UnwrapRsaWrappedTitleKey ]] || Speculative name. Wrapper for [[SMC#UnwrapRsaWrappedTitleKey|UnwrapRsaWrappedTitleKey SMC]]. | ||
|- | |- | ||
| 19 || [[# | | 19 || [[#LoadTitleKey]] || Wrapper for [[SMC#LoadTitleKey|LoadTitleKey SMC]]. | ||
|- | |- | ||
| 20 || [2.0.0+] [[# | | 20 || [2.0.0+] [[#UnwrapAesWrappedTitleKey ]] || Wrapper for [[SMC#UnwrapAesWrappedTitleKey|UnwrapAesWrappedTitleKey SMC]]. | ||
|- | |- | ||
| 21 || [2.0.0+] [[#LockAesEngine]] || | | 21 || [2.0.0+] [[#LockAesEngine]] || | ||
Line 253: | Line 253: | ||
Decrypts '''enc_privk_in_buf''' with a key generated from '''key_x''' and '''key_y''' and imports it for later usage. | Decrypts '''enc_privk_in_buf''' with a key generated from '''key_x''' and '''key_y''' and imports it for later usage. | ||
== | == UnwrapRsaWrappedTitleKey == | ||
Takes 3 type-9 (X descriptor) buffers ('''data_in_buf''', '''mod_in_buf''' and '''param0_in_buf'''). | Takes 3 type-9 (X descriptor) buffers ('''data_in_buf''', '''mod_in_buf''' and '''param0_in_buf'''). | ||
Decrypts '''data_in_buf''' using the private key imported with [[#DecryptImportPrivkForExpMod1]] and the supplied '''mod_in_buf''' and '''param0_in_buf'''. | Decrypts '''data_in_buf''' using the private key imported with [[#DecryptImportPrivkForExpMod1]] and the supplied '''mod_in_buf''' and '''param0_in_buf'''. | ||
Generates and returns a 16-byte sealed | Generates and returns a 16-byte sealed titlekey. | ||
== | == LoadTitleKey == | ||
Takes a u32 ('''keyslot''') and a 16-byte sealed | Takes a u32 ('''keyslot''') and a 16-byte sealed titlekey. | ||
Sets the specified '''keyslot''' with | Sets the specified '''keyslot''' with the titlekey. | ||
[2.0.0+] Verifies the engine is locked by current session. | [2.0.0+] Verifies the engine is locked by current session. | ||
== | == UnwrapAesWrappedTitleKey == | ||
Takes a 16-byte EKS ('''Encryption Key Source'''). | Takes a 16-byte EKS ('''Encryption Key Source'''). | ||
Returns a sealed | Returns a sealed titlekey. | ||
== LockAesEngine == | == LockAesEngine == |