Debian Codegraph @

debian/rust-vendor/openssl-sys/src/handwritten/poly1305.rs

raw
1 use super::super::*;
2 use std::ffi::c_uchar;
3
4 cfg_if! {
5 if #[cfg(libressl)] {
6 #[repr(C)]
7 #[derive(Debug, Copy, Clone)]
8 pub struct poly1305_context {
9 pub aligner: usize,
10 pub opaque: [c_uchar; 136usize],
11 }
12 pub type poly1305_state = poly1305_context;
13 extern "C" {
14 pub fn CRYPTO_poly1305_init(ctx: *mut poly1305_context, key: *const c_uchar);
15 pub fn CRYPTO_poly1305_update(
16 ctx: *mut poly1305_context,
17 in_: *const c_uchar,
18 len: usize,
19 );
20 pub fn CRYPTO_poly1305_finish(ctx: *mut poly1305_context, mac: *mut c_uchar);
21 }
22 }
23 }