Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwiggers committed Feb 4, 2025
1 parent 17d1ece commit 50b6e6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pqcrypto-internals/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pqcrypto-internals"
version = "0.2.7"
version = "0.2.8"
edition = "2021"
description = "bindings to common cryptography"
license = "MIT OR Apache-2.0"
Expand Down
9 changes: 9 additions & 0 deletions pqcrypto-internals/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ use core::slice;
///
/// # Safety
/// Assumes inputs are valid and may panic over FFI boundary if rng failed.
///
/// # Example
/// ```rust
/// use pqcrypto_internals::*;
/// let mut buf = [0u8;10];
/// unsafe {
/// PQCRYPTO_RUST_randombytes(buf.as_mut_ptr(), buf.len());
/// }
/// ```
#[no_mangle]
pub unsafe extern "C" fn PQCRYPTO_RUST_randombytes(buf: *mut u8, len: libc::size_t) -> libc::c_int {
let buf = slice::from_raw_parts_mut(buf, len);
Expand Down

0 comments on commit 50b6e6e

Please sign in to comment.