Removed rsa padding TODO 16/84416/4
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 18 Aug 2016 06:29:39 +0000 (08:29 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 22 Aug 2016 08:40:42 +0000 (10:40 +0200)
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

index 2e5fe25..4233c98 100644 (file)
@@ -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;