Commit 14c82479 authored by Facundo Tuesca's avatar Facundo Tuesca
Browse files

Readability improvement

parent 870e290c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -743,7 +743,7 @@ impl<T> PkeyCtxRef<T> {
    #[cfg(ossl320)]
    #[corresponds(EVP_PKEY_CTX_set_params)]
    pub fn set_nonce_type(&mut self, nonce_type: NonceType) -> Result<(), ErrorStack> {
        let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap();
        let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap();
        let mut nonce_type = nonce_type.0;
        unsafe {
            let param_nonce =
@@ -765,7 +765,7 @@ impl<T> PkeyCtxRef<T> {
    #[cfg(ossl320)]
    #[corresponds(EVP_PKEY_CTX_get_params)]
    pub fn nonce_type(&mut self) -> Result<NonceType, ErrorStack> {
        let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap();
        let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap();
        let mut nonce_type: c_uint = 0;
        unsafe {
            let param_nonce =