Add wrapper functions for HMAC_CTX_*

Create a rust wrapper for HMAC_CTX_* functions to enable the iterative
HMAC APIs (calling update() for segments of the input rather than
collecting the whole input and calling hmac().

This patch is carried in AOSP because hmac.rs is not available upstream
yet, and the HMAC_CTX_* functions are recommended only for boringssl -
in openssl3 these functions are deprecated and the EVP_MAC functions are
recommended instead.

Bug: 267375624
Test: m libopenssl
Change-Id: I3d77403dd8dd607c8b55bf2be499e08895a76c19
9 files changed
tree: 4bdd3a22c4358bb13edeb1096585c9d030008b45
  1. .cargo/
  2. examples/
  3. patches/
  4. src/
  5. test/
  6. .cargo_vcs_info.json
  7. Android.bp
  8. build.rs
  9. Cargo.lock
  10. Cargo.toml
  11. Cargo.toml.orig
  12. cargo2android.json
  13. CHANGELOG.md
  14. LICENSE
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. OWNERS
  18. README.android
  19. README.md
  20. TEST_MAPPING
README.md

rust-openssl

crates.io

OpenSSL bindings for the Rust programming language.

Documentation.

Release Support

The current supported release of openssl is 0.10 and openssl-sys is 0.9.

New major versions will be published at most once per year. After a new release, the previous major version will be partially supported with bug fixes for 3 months, after which support will be dropped entirely.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed under the terms of both the Apache License, Version 2.0 and the MIT license without any additional terms or conditions.