pub fn to_response_status(error: Error) -> ResponseStatus {
    match error {
        Error::Io(e) => ResponseStatus::from(e),
        Error::Module(e) | Error::InvalidInput(e) => {
            error!("Conversion of error \"{}\"", e);
            ResponseStatus::PsaErrorCommunicationFailure
        }
        Error::Pkcs11(ck_rv) => rv_to_response_status(ck_rv),
    }
}
/// Convert the PKCS 11 library specific error values to ResponseStatus values that are returned on
/// the wire protocol
///
/// Most of them are PsaErrorCommunicationFailure as, in the general case, the calls to the PKCS11
/// library should suceed with the values crafted by the provider.
/// If an error happens in the PKCS11 library, it means that it was badly used by the provider or
/// that it failed in an unexpected way and hence the PsaErrorCommunicationFailure error.
/// The errors translated to response status are related with signature verification failure, lack
/// of memory, hardware failure, corruption detection, lack of entropy and unsupported operations.
Convert the PKCS 11 library specific error values to ResponseStatus values that are returned on
the wire protocol

Most of them are PsaErrorCommunicationFailure as, in the general case, the calls to the PKCS11
library should suceed with the values crafted by the provider.
If an error happens in the PKCS11 library, it means that it was badly used by the provider or
that it failed in an unexpected way and hence the PsaErrorCommunicationFailure error.
The errors translated to response status are related with signature verification failure, lack
of memory, hardware failure, corruption detection, lack of entropy and unsupported operations.
Convert the PKCS 11 library specific error values to ResponseStatus values that are returned on the wire protocol Most of them are PsaErrorCommunicationFailure as in the general case the calls to the PKCS11 library should suceed with the values crafted by the provider . If an error happens in the PKCS11 library it means that it was badly used by the provider or that it failed in an unexpected way and hence the PsaErrorCommunicationFailure error . The errors translated to response status are related with signature verification failure lack of memory hardware failure corruption detection lack of entropy and unsupported operations .
pub fn to_response_status(error: Error) -> ResponseStatus {
    match error {
        Error::Io(e) => ResponseStatus::from(e),
        Error::Module(e) | Error::InvalidInput(e) => {
            error!("Conversion of error \"{}\"", e);
            ResponseStatus::PsaErrorCommunicationFailure
        }
        Error::Pkcs11(ck_rv) => rv_to_response_status(ck_rv),
    }
}
pub fn to_response_status ( error : Error ) -> ResponseStatus { match error { Error :: Io ( e ) => ResponseStatus :: from ( e ) , Error :: Module ( e ) | Error :: InvalidInput ( e ) => { error ! ( " \" \" " e ) ; ResponseStatus :: PsaErrorCommunicationFailure } Error :: Pkcs11 ( ck_rv ) => rv_to_response_status ( ck_rv ) , } }
Convert the PKCS 11 library specific error values to ResponseStatus values that are returned on
the wire protocol
Convert the PKCS 11 library specific error values to ResponseStatus values that are returned on the wire protocol
error
Error
error
Error