shaka-packager/packager
Joey Parrish 7b33f2065f
feat: Port AES and RSA crypto to mbedtls (#1119)
mbedtls works very differently from BoringSSL, and many changes had to
be made in the details of AES decryption to accomodate this.

Beyond the basic changes required for mbedtls, part of the CTS padding
implementation had to be rewritten. I believe this is because of an
assumption that held for BoringSSL, but not for mbedtls. I was unable to
determine what it was, so I rewrote the CTS decryption using reference
materials. After this, tests passed.

The deterministc PRNG I used with mbedtls in the RSA tests differs
somewhat from the old one, so the expected vectors had to be
regenerated. The old determinstic tests were also disabled, and are now
re-enabled.

Since cryptography is sensitive code, and because there were far more
changes needed here than just updating some headers and utility function
calls, this has been split into its own PR for separate review from the
rest of the media/base porting work.

Issue #1047 (CMake porting)
Issue #346 (absl porting)
2022-11-02 08:34:06 -07:00
..
app chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
file refactor: Rename common.h to macros.h, now that it only contains macros (#1113) 2022-10-24 19:08:18 -07:00
hls chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
kv_pairs chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
media feat: Port AES and RSA crypto to mbedtls (#1119) 2022-11-02 08:34:06 -07:00
mpd chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
status fix: Fix status library headers and move test (#1118) 2022-10-24 19:09:10 -07:00
testing feat: First phase of CMake build system implementation (#1072) 2022-08-16 11:34:51 -07:00
third_party chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
tools feat: Add CMake module for building protobufs (#1112) 2022-10-26 10:07:01 -07:00
version chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
CMakeLists.txt feat: Add CMake module for building protobufs (#1112) 2022-10-26 10:07:01 -07:00
common.gypi chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
flag_saver.h chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
macros.h feat: Port AES and RSA crypto to mbedtls (#1119) 2022-11-02 08:34:06 -07:00
packager.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
packager.gyp chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
packager.h chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
packager_test.cc chore: Mass-update copyright headers (#1086) 2022-08-26 08:44:59 -07:00
protobuf.cmake feat: Add CMake module for building protobufs (#1112) 2022-10-26 10:07:01 -07:00