forked from aosp-mirror/platform_system_core
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcrypto_utils: Use accessors to manipulate RSA keys.
This removes a blocker to BoringSSL marking the RSA struct opaque. Sadly, OpenSSL's RSA_set0_key setter is a little tedious to use correctly with error-handling, but it works. Along the way, replace the byte reversing code with BoringSSL's native little-endian BIGNUM conversion functions. Test: libcrypto_utils_test passes Change-Id: I298a6360d76fc7793462cd55bd57bc673c4975b3
- Loading branch information
Showing
2 changed files
with
24 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../.clang-format-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters