Reworking bssl_crypto: HMAC
Change-Id: If67ca7892f418f1b80ba8e8425bdefa14921e8a2
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/65171
Commit-Queue: Adam Langley <agl@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
diff --git a/rust/bssl-crypto/src/lib.rs b/rust/bssl-crypto/src/lib.rs
index c16a68b..8853238 100644
--- a/rust/bssl-crypto/src/lib.rs
+++ b/rust/bssl-crypto/src/lib.rs
@@ -49,7 +49,6 @@
pub mod hkdf;
-/// HMAC, a hash-based message authentication code.
pub mod hmac;
/// Random number generation.
@@ -70,6 +69,11 @@
#[cfg(test)]
mod test_helpers;
+/// Error type for when a "signature" (either a public-key signature or a MAC)
+/// is incorrect.
+#[derive(Debug)]
+pub struct InvalidSignatureError;
+
/// FfiSlice exists to provide `as_ffi_ptr` on slices. Calling `as_ptr` on an
/// empty Rust slice may return the alignment of the type, rather than NULL, as
/// the pointer. When passing pointers into C/C++ code, that is not a valid