security-framework-sys 0.1.10

Security Framework bindings
1
2
3
4
5
6
7
8
9
10
11
use libc::{c_void, size_t, c_int};

#[repr(C)]
pub struct __SecRandom(c_void);
pub type SecRandomRef = *const __SecRandom;

extern "C" {
    pub static kSecRandomDefault: SecRandomRef;

    pub fn SecRandomCopyBytes(rnd: SecRandomRef, count: size_t, bytes: *mut u8) -> c_int;
}