Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Classes | |
class | XBMCAddon::xbmcdrm::CryptoSession |
Kodi's DRM class. More... | |
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 (...) | |
| |
Buffer XBMCAddon::xbmcdrm::CryptoSession::Decrypt | ( | ... | ) |
Function: Decrypt(cipherKeyId, input, iv)
cipherKeyId | byte - Encryption key id (provided from a service handshake) |
input | byte - Cipher text to decrypt |
iv | byte - Initialization vector of cipher text |
Buffer XBMCAddon::xbmcdrm::CryptoSession::Encrypt | ( | ... | ) |
Function: Encrypt(cipherKeyId, input, iv)
cipherKeyId | byte - Encryption key id (provided from a service handshake) |
input | byte - Encrypted text |
iv | byte - Initialization vector of encrypted text |
Buffer XBMCAddon::xbmcdrm::CryptoSession::GetKeyRequest | ( | ... | ) |
Function: GetKeyRequest(init, mimeType, offlineKey, optionalParameters)
Generate a key request, used for request/response exchange between the app and a license server to obtain or release keys used to decrypt encrypted content. After the app has received the key request response from the license server, it should deliver to the response to the DRM instance using the method ProvideKeyResponse, to activate the keys.
init | byte - Initialization bytes container-specific data, its meaning is interpreted based on the mime type provided in the mimeType parameter. It could contain, for example, the content ID, key ID or other data required in generating the key request. |
mimeType | string - Type of media which is exchanged (e.g. "application/xml", "video/mp4") |
offlineKey | bool - Specifies the type of the request. The request may be to acquire keys for Streaming or Offline content |
optionalParameters | [opt] map - Will be included in the key request message to allow a client application to provide additional message parameters to the server |
String XBMCAddon::xbmcdrm::CryptoSession::GetPropertyString | ( | ... | ) |
Function: GetPropertyString(name)
Name | string - Name of the property to query |
String XBMCAddon::xbmcdrm::CryptoSession::ProvideKeyResponse | ( | ... | ) |
Function: ProvideKeyResponse(response)
When a key response is received from the license server, must be sent to the DRM instance by using provideKeyResponse. See also GetKeyRequest.
response | byte - Key data returned from the license server |
void XBMCAddon::xbmcdrm::CryptoSession::RemoveKeys | ( | ... | ) |
Function: RemoveKeys()
void XBMCAddon::xbmcdrm::CryptoSession::RestoreKeys | ( | ... | ) |
Function: RestoreKeys(keySetId)
keySetId | string - Identifies the saved key set to restore. This value must never be null. |
void XBMCAddon::xbmcdrm::CryptoSession::SetPropertyString | ( | ... | ) |
Function: SetPropertyString(name, value)
name | string - Name of the property. This value must never be null. |
value | string - Value of the property to set. This value must never be null. |
Buffer XBMCAddon::xbmcdrm::CryptoSession::Sign | ( | ... | ) |
Function: Sign(macKeyId, message)
macKeyId | byte - HMAC key id (provided from a service handshake) |
message | byte - Message text on which to base the signature |
bool XBMCAddon::xbmcdrm::CryptoSession::Verify | ( | ... | ) |
Function: Verify(macKeyId, message, signature)
macKeyId | byte - HMAC key id (provided from a service handshake) |
message | byte - Message text on which the signature is based |
signature | byte - The signature to verify |