Function prs_lib::crypto::context[][src]

pub fn context(proto: Proto) -> Result<Context, Err>

Get crypto context for given proto type at runtime.

This selects a compatible crypto context at runtime.

Errors

Errors if no compatible crypto context is available for the selected protocol because no backend is providing it. Also errors if creating the context fails.