X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/2965425374ca4413339436c2f706f7b5508402e2..9a27adb241486ab7597ffaea2b5613cd3d8e1f60:/AppleCSP/open_ssl/opensslUtils/opensslUtils.cpp?ds=sidebyside diff --git a/AppleCSP/open_ssl/opensslUtils/opensslUtils.cpp b/AppleCSP/open_ssl/opensslUtils/opensslUtils.cpp index 114b33af..14eedbcc 100644 --- a/AppleCSP/open_ssl/opensslUtils/opensslUtils.cpp +++ b/AppleCSP/open_ssl/opensslUtils/opensslUtils.cpp @@ -35,7 +35,7 @@ #include #include -#define sslUtilsDebug(args...) debug("sslUtils", ## args) +#define sslUtilsDebug(args...) secdebug("sslUtils", ## args) openSslException::openSslException( int irtn, @@ -174,6 +174,10 @@ void throwRsaDsa( case RSA_R_KEY_SIZE_TOO_SMALL: cerr = CSSMERR_CSP_INVALID_ATTR_KEY_LENGTH; break; case RSA_R_PADDING_CHECK_FAILED: + case RSA_R_BLOCK_TYPE_IS_NOT_01: + case RSA_R_BLOCK_TYPE_IS_NOT_02: + case RSA_R_DATA_GREATER_THAN_MOD_LEN: + case RSA_R_BAD_PAD_BYTE_COUNT: cerr = CSSMERR_CSP_INVALID_DATA; break; case RSA_R_RSA_OPERATIONS_NOT_SUPPORTED: cerr = CSSMERR_CSP_FUNCTION_NOT_IMPLEMENTED; break;