src/lib/crypto.c
const char *crypto_strerror(crypto_error_t error) {
   switch (error) {
   case CRYPTO_ERROR_NONE:
      return _("No error");
   case CRYPTO_ERROR_NOSIGNER:
      return _("Signer not found");
   case CRYPTO_ERROR_NORECIPIENT:
      return _("Recipient not found");
   case CRYPTO_ERROR_INVALID_DIGEST:
      return _("Unsupported digest algorithm");
   case CRYPTO_ERROR_INVALID_CRYPTO:
      return _("Unsupported encryption algorithm");
   case CRYPTO_ERROR_BAD_SIGNATURE:
      return _("Signature is invalid");
   case CRYPTO_ERROR_DECRYPTION:
      return _("Decryption error");
   case CRYPTO_ERROR_INTERNAL:
      /* This shouldn't happen */
      return _("Internal error");
   default:
      return _("Unknown error");
   }
}
/*
 *  * Given a crypto_error_t value, return the associated
 *   * error string
 *    */
Given a crypto_error_t value, return the associated
error string
Given a crypto_error_t value return the associated error string
const char *crypto_strerror(crypto_error_t error) {
   switch (error) {
   case CRYPTO_ERROR_NONE:
      return _("No error");
   case CRYPTO_ERROR_NOSIGNER:
      return _("Signer not found");
   case CRYPTO_ERROR_NORECIPIENT:
      return _("Recipient not found");
   case CRYPTO_ERROR_INVALID_DIGEST:
      return _("Unsupported digest algorithm");
   case CRYPTO_ERROR_INVALID_CRYPTO:
      return _("Unsupported encryption algorithm");
   case CRYPTO_ERROR_BAD_SIGNATURE:
      return _("Signature is invalid");
   case CRYPTO_ERROR_DECRYPTION:
      return _("Decryption error");
   case CRYPTO_ERROR_INTERNAL:
      return _("Internal error");
   default:
      return _("Unknown error");
   }
}
const char * crypto_strerror ( crypto_error_t error ) { switch ( error ) { case CRYPTO_ERROR_NONE : return _ ( " " ) ; case CRYPTO_ERROR_NOSIGNER : return _ ( " " ) ; case CRYPTO_ERROR_NORECIPIENT : return _ ( " " ) ; case CRYPTO_ERROR_INVALID_DIGEST : return _ ( " " ) ; case CRYPTO_ERROR_INVALID_CRYPTO : return _ ( " " ) ; case CRYPTO_ERROR_BAD_SIGNATURE : return _ ( " " ) ; case CRYPTO_ERROR_DECRYPTION : return _ ( " " ) ; case CRYPTO_ERROR_INTERNAL : return _ ( " " ) ; default : return _ ( " " ) ; } }
* Given a crypto_error_t value, return the associated
   * error string
* Given a crypto_error_t value return the associated * error string
/* This shouldn't happen */