Closed danielweck closed 8 years ago
Secondary issue, deprecation of the special OpenSSL dependency (headers + prebuilt static libs):
https://github.com/readium/readium-sdk/tree/develop/ePub3/ThirdParty/openssl-android
See README:
https://github.com/readium/readium-sdk/blob/develop/ePub3/ThirdParty/openssl-android/lib/README.md
Source tree:
Note that only Android uses the OpenSSL lib. iOS and OSX use the same API syntax, but rely on the platform lib (Windows uses a different syntax altogether):
https://github.com/readium/readium-sdk/blob/develop/ePub3/ePub/font_obfuscation.cpp#L125
SHA_CTX ctx;
SHA1_Init(&ctx);
SHA1_Update(&ctx, str.data(), str.length());
SHA1_Final(_key, &ctx);
CC @clebeaupin
Fixed in PR https://github.com/readium/readium-sdk/pull/247
ReadiumSDK: https://github.com/readium/readium-sdk/tree/develop/ePub3/ThirdParty/openssl-android
versus
LCP: https://github.com/readium/readium-lcp-client/tree/android/src/third-parties/cryptopp