From 8d70b1ac7f9084bfade4d6fc2126b74887a15e27 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Thu, 18 Aug 2016 08:29:39 +0200 Subject: [PATCH] Removed rsa padding TODO RSA_NO_PADDING can be used when message length exactly matches the length of the asymmetric key. As for now no digest can produce matching output so only plain asymmetric operation without digest supports it. RSA_SSLV23_PADDING can be used in asymmetric encryption only. Change-Id: I9f4b84086bf150994f5eb5cc270203cf8834b683 --- src/sign.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sign.c b/src/sign.c index 2e5fe25..4233c98 100644 --- a/src/sign.c +++ b/src/sign.c @@ -131,8 +131,6 @@ int set_sign_property(yaca_context_h ctx, padding = *(yaca_padding_e *)(value); - // TODO: investigate whether it's possible to set - // RSA_NO_PADDING or RSA_SSLV23_PADDING in some cases switch (padding) { case YACA_PADDING_X931: pad = RSA_X931_PADDING; -- 2.7.4