rust-secp256k1-unsafe-fast/secp256k1-sys/src
Tobin C. Harding 9b07e8e8c5 secp-sys: Use NonNull in API instead of *mut T
Currently we expect non-null pointers when we take `*mut T` parameters,
however we do not check that the pointers are non-null because we never
set VERIFY in our C build. We can use the `NonNull` type to enforce
no-null-ness as long as we use `NonNull::new`. In a couple of instances
we manually check that a buffer is not empty and therefore that the
pointer to it is non-null so we can safely use `NonNull::new_unchecked`.

Replace mutable pointer parameters `*mut T` (e.g. `*mut c_void`) and
return types with `NonNull<T>`.

Fix #546
2022-12-01 15:45:32 +11:00
..
lib.rs secp-sys: Use NonNull in API instead of *mut T 2022-12-01 15:45:32 +11:00
macros.rs Move AsRef impl block next to Index 2022-11-18 10:57:32 +11:00
recovery.rs Derive Copy and Clone 2022-11-18 10:56:24 +11:00
types.rs Move more things from the std feature to the alloc feature 2022-06-07 23:59:42 +03:00