xref: /third_party/rust/crates/rust-openssl/openssl-sys/src/ec.rs (revision 92f3ab15)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/rust-openssl/openssl-sys/src/
192f3ab15Sopenharmony_ciuse libc::*;
292f3ab15Sopenharmony_ciuse std::ptr;
392f3ab15Sopenharmony_ci
492f3ab15Sopenharmony_ciuse super::*;
592f3ab15Sopenharmony_ci
692f3ab15Sopenharmony_cipub const OPENSSL_EC_NAMED_CURVE: c_int = 1;
792f3ab15Sopenharmony_ci
892f3ab15Sopenharmony_ci#[cfg(ossl300)]
992f3ab15Sopenharmony_cipub unsafe fn EVP_EC_gen(curve: *const c_char) -> *mut EVP_PKEY {
1092f3ab15Sopenharmony_ci    EVP_PKEY_Q_keygen(
1192f3ab15Sopenharmony_ci        ptr::null_mut(),
1292f3ab15Sopenharmony_ci        ptr::null_mut(),
1392f3ab15Sopenharmony_ci        "EC\0".as_ptr().cast(),
1492f3ab15Sopenharmony_ci        curve,
1592f3ab15Sopenharmony_ci    )
1692f3ab15Sopenharmony_ci}
17

Indexes created Thu Nov 07 10:32:03 CST 2024