From adfaf69d1a9ca0f29bbe98ea018cdeeb1051f0e0 Mon Sep 17 00:00:00 2001 From: Fred Gylys-Colwell Date: Tue, 21 Nov 2023 20:19:24 -0800 Subject: [PATCH] Clarify that FDPT hash covers the last sample Bug: 193266271 Change-Id: Ic769c05c6481d0d3f9eb08bce5fea2f39ac7ebe2 --- libwvdrmengine/oemcrypto/include/OEMCryptoCENC.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libwvdrmengine/oemcrypto/include/OEMCryptoCENC.h b/libwvdrmengine/oemcrypto/include/OEMCryptoCENC.h index 3ca90e25..29a3d8fb 100644 --- a/libwvdrmengine/oemcrypto/include/OEMCryptoCENC.h +++ b/libwvdrmengine/oemcrypto/include/OEMCryptoCENC.h @@ -5307,6 +5307,12 @@ uint32_t OEMCrypto_SupportsDecryptHash(void); * other error conditions, this returns OEMCrypto_ERROR_UNKNOWN_FAILURE. The * length of the hash will be 4 bytes (32 bits) for the default CRC32 hash. * + * Since version 16, the function OEMCrypto_DecryptCENC has allowed several + * samples to be decrypted in one function call using an array of + * samples. OEMCrypto may assume that the hash passed into this function is of + * the last sample in that array. In practice the test app only uses an array of + * length 1 for each call. + * * This may be called before the first call to OEMCrypto_GetKeyHandle. In that * case, this function cannot verify that the key control block allows hash * verification. The function DecryptCENC should verify that the key control bit