Merge oemcrypto-v17 to master
[ Merge of http://go/wvgerrit/144530 ] It's time to copy all the v17 work to our main branch. I had to re-run clang-format to match local style. Merge from commit b14f08374f9a48aed49850cc230daf384725b15f Fix allow_null for key control iv in L3 v17 Bug: 161477208 Test: GtsMediaTestCases on sunfish Change-Id: I97caa851e9e65eb0e42034d2f4a28dfb7499df0d
This commit is contained in:
@@ -2116,7 +2116,7 @@ OEMCryptoResult OEMCrypto_QueryKeyControl(OEMCrypto_SESSION session,
|
||||
* 256 bits it will be used for OEMCrypto_Generic_Sign() or
|
||||
* OEMCrypto_Generic_Verify() as specified in the key control block. If the key
|
||||
* will be used for OEMCrypto_Generic_Encrypt() or OEMCrypto_Generic_Decrypt()
|
||||
* then the cipher mode will always be OEMCrypto_CipherMode_CBC. Continue to
|
||||
* then the cipher mode will always be OEMCrypto_CipherMode_CBCS. Continue to
|
||||
* use this key for this session until OEMCrypto_SelectKey() is called again,
|
||||
* or until OEMCrypto_CloseSession() is called.
|
||||
*
|
||||
@@ -2292,15 +2292,15 @@ OEMCryptoResult OEMCrypto_SelectKey(OEMCrypto_SESSION session,
|
||||
* 'cbcs'. Starting with v16, OEMCrypto only supports 'cenc' and 'cbcs'. The
|
||||
* schemes 'cens' and 'cbc1' are not supported.
|
||||
*
|
||||
* The decryption mode, either OEMCrypto_CipherMode_CTR or
|
||||
* OEMCrypto_CipherMode_CBC, was already specified in the call to
|
||||
* The decryption mode, either OEMCrypto_CipherMode_CENC or
|
||||
* OEMCrypto_CipherMode_CBCS, was already specified in the call to
|
||||
* OEMCrypto_SelectKey(). The encryption pattern is specified by the fields in
|
||||
* the parameter pattern. A description of partial encryption patterns for
|
||||
* 'cbcs' can be found in the ISO-CENC standard, section 10.4.
|
||||
*
|
||||
* 'cenc' SCHEME:
|
||||
*
|
||||
* The 'cenc' scheme is OEMCrypto_CipherMode_CTR without an encryption
|
||||
* The 'cenc' scheme is OEMCrypto_CipherMode_CENC without an encryption
|
||||
* pattern. All the bytes in the encrypted portion of each subsample are
|
||||
* encrypted. In the pattern parameter, both the encrypt and skip fields will
|
||||
* be zero.
|
||||
@@ -2323,7 +2323,7 @@ OEMCryptoResult OEMCrypto_SelectKey(OEMCrypto_SESSION session,
|
||||
*
|
||||
* 'cbcs' SCHEME:
|
||||
*
|
||||
* The 'cbcs' scheme is OEMCrypto_CipherMode_CBC with an encryption pattern.
|
||||
* The 'cbcs' scheme is OEMCrypto_CipherMode_CBCS with an encryption pattern.
|
||||
* Only some of the bytes in the encrypted portion of each subsample are
|
||||
* encrypted. In the pattern parameter, the encrypt and skip fields will
|
||||
* usually be non-zero. This mode allows devices to decrypt FMP4 HLS content,
|
||||
|
||||
Reference in New Issue
Block a user