sasl2_sys/hmac_md5.rs
1// Copyright Materialize, Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License in the LICENSE file at the
6// root of this repository, or online at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! HMAC MD5 utilities.
17
18use super::md5::MD5_CTX;
19
20#[repr(C)]
21#[derive(Copy, Clone)]
22pub struct HMAC_MD5_CTX_s {
23 pub ictx: MD5_CTX,
24 pub octx: MD5_CTX,
25}
26
27pub type HMAC_MD5_CTX = HMAC_MD5_CTX_s;
28
29#[repr(C)]
30#[derive(Debug, Copy, Clone)]
31pub struct HMAC_MD5_STATE_s {
32 pub istate: [u32; 4],
33 pub ostate: [u32; 4],
34}
35
36pub type HMAC_MD5_STATE = HMAC_MD5_STATE_s;