mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-03 17:17:12 +02:00
#3224: Remove SSL23 support from Poco/Crypto
This commit is contained in:
parent
01720ce82b
commit
46ef044d7b
@ -49,10 +49,6 @@ enum RSAPaddingMode
|
|||||||
/// EME-OAEP as defined in PKCS #1 v2.0 with SHA-1, MGF1 and an empty
|
/// EME-OAEP as defined in PKCS #1 v2.0 with SHA-1, MGF1 and an empty
|
||||||
/// encoding parameter. This mode is recommended for all new applications.
|
/// encoding parameter. This mode is recommended for all new applications.
|
||||||
|
|
||||||
RSA_PADDING_SSLV23,
|
|
||||||
/// PKCS #1 v1.5 padding with an SSL-specific modification that denotes
|
|
||||||
/// that the server is SSL3 capable.
|
|
||||||
|
|
||||||
RSA_PADDING_NONE
|
RSA_PADDING_NONE
|
||||||
/// Raw RSA encryption. This mode should only be used to implement cryptographically
|
/// Raw RSA encryption. This mode should only be used to implement cryptographically
|
||||||
/// sound padding modes in the application code. Encrypting user data directly with RSA
|
/// sound padding modes in the application code. Encrypting user data directly with RSA
|
||||||
|
@ -50,8 +50,6 @@ namespace
|
|||||||
return RSA_PKCS1_PADDING;
|
return RSA_PKCS1_PADDING;
|
||||||
case RSA_PADDING_PKCS1_OAEP:
|
case RSA_PADDING_PKCS1_OAEP:
|
||||||
return RSA_PKCS1_OAEP_PADDING;
|
return RSA_PKCS1_OAEP_PADDING;
|
||||||
case RSA_PADDING_SSLV23:
|
|
||||||
return RSA_SSLV23_PADDING;
|
|
||||||
case RSA_PADDING_NONE:
|
case RSA_PADDING_NONE:
|
||||||
return RSA_NO_PADDING;
|
return RSA_NO_PADDING;
|
||||||
default:
|
default:
|
||||||
@ -116,7 +114,6 @@ namespace
|
|||||||
switch (_paddingMode)
|
switch (_paddingMode)
|
||||||
{
|
{
|
||||||
case RSA_PADDING_PKCS1:
|
case RSA_PADDING_PKCS1:
|
||||||
case RSA_PADDING_SSLV23:
|
|
||||||
size -= 11;
|
size -= 11;
|
||||||
break;
|
break;
|
||||||
case RSA_PADDING_PKCS1_OAEP:
|
case RSA_PADDING_PKCS1_OAEP:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user