Expand description
OSSL_PARAM_BLD builder and Params<'a> wrapper.
ParamBuilder wraps OSSL_PARAM_BLD and provides typed push methods that
map Rust types to OpenSSL parameter types. build() finalises the builder
and returns an owned Params array.
§Lifetime
ParamBuilder<'a> carries a lifetime 'a that covers any borrowed byte
slices passed via push_octet_ptr or push_utf8_ptr. Those calls store
a pointer into the caller’s buffer; the buffer must outlive the Params
returned by build(). Calls that copy (push_octet_slice, push_utf8_string)
have no such constraint.
§Zero-copy decision table
| Method | C function | Copies? |
|---|---|---|
push_octet_slice | OSSL_PARAM_BLD_push_octet_string | Yes |
push_octet_ptr | OSSL_PARAM_BLD_push_octet_ptr | No |
push_utf8_string | OSSL_PARAM_BLD_push_utf8_string | Yes |
push_utf8_ptr | (manual OSSL_PARAM_BLD extension) | No |
Structs§
- Param
Builder - Builder for
OSSL_PARAMarrays. - Params
- An owned, finalized
OSSL_PARAMarray.