|
Kodi Documentation
19.0
Kodi is an open source media player and entertainment hub.
|
Kodi's DRM class. More...
Classes | |
| class | XBMCAddon::xbmcdrm::CryptoSession |
Functions | |
| XBMCAddon::xbmcdrm::CryptoSession::GetKeyRequest (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::GetPropertyString (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::ProvideKeyResponse (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::RemoveKeys (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::RestoreKeys (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::SetPropertyString (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::Decrypt (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::Encrypt (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::Sign (...) | |
| |
| XBMCAddon::xbmcdrm::CryptoSession::Verify (...) | |
| |
Kodi's DRM class.
Class: xbmcdrm.CryptoSession(UUID, cipherAlgorithm, macAlgorithm) | UUID | String 16 byte UUID of the DRM system to use |
| cipherAlgorithm | String algorithm used for en / decryption |
| macAlgorithm | String algorithm used for sign / verify |
| RuntimeException | if the session can not be established |
| Buffer XBMCAddon::xbmcdrm::CryptoSession::Decrypt | ( | ... | ) |
Function: Decrypt(cipherKeyId, input, iv) Sets a system specific property value in the DRM system
| [byte] | cipherKeyId |
| [byte] | input |
| [byte] | iv |
| Buffer XBMCAddon::xbmcdrm::CryptoSession::Encrypt | ( | ... | ) |
Function: Encrypt(cipherKeyId, input, iv) Sets a system specific property value in the DRM system
| [byte] | cipherKeyId |
| [byte] | input |
| [byte] | iv |
| Buffer XBMCAddon::xbmcdrm::CryptoSession::GetKeyRequest | ( | ... | ) |
Function: GetKeyRequest(init, mimeType, offlineKey, optionalParameters) Generate a key request which is supposed to be send to the key server. The servers response is passed to provideKeyResponse to activate the keys.
| [byte] | init Initialization bytes / depends on key system |
| String | mimeType Type of media which is xchanged, e.g. application/xml, video/mp4 |
| bool | offlineKey Persistant (offline) or temporary (streaming) key |
| [map] | optionalParameters optional parameters / depends on key system |
| String XBMCAddon::xbmcdrm::CryptoSession::GetPropertyString | ( | ... | ) |
Function: GetPropertyString(name) Request a system specific property value of the DRM system
| String | Name name of the property to query |
| String XBMCAddon::xbmcdrm::CryptoSession::ProvideKeyResponse | ( | ... | ) |
Function: ProvideKeyResponse(response) Provide key data returned from key server. See getKeyRequest(...)
| [byte] | response Key data returned from key server |
| void XBMCAddon::xbmcdrm::CryptoSession::RemoveKeys | ( | ... | ) |
Function: RemoveKeys() removes all keys currently loaded in a session.
| None |
| void XBMCAddon::xbmcdrm::CryptoSession::RestoreKeys | ( | ... | ) |
Function: RestoreKeys(keySetId) restores keys stored during previous provideKeyResponse call.
| String | keySetId |
| void XBMCAddon::xbmcdrm::CryptoSession::SetPropertyString | ( | ... | ) |
Function: SetPropertyString(name, value) Sets a system specific property value in the DRM system
| String | name Name of the property to query |
| String | value Value of the property to query |
| Buffer XBMCAddon::xbmcdrm::CryptoSession::Sign | ( | ... | ) |
Function: Sign(macKeyId, message) Sets a system specific property value in the DRM system
| [byte] | macKeyId |
| [byte] | message |
| bool XBMCAddon::xbmcdrm::CryptoSession::Verify | ( | ... | ) |
Function: Verify(macKeyId, message, signature) Sets a system specific property value in the DRM system
| [byte] | macKeyId |
| [byte] | message |
| [byte] | signature |