Allow 1B longer input in PKCS1 padding 25/86125/3
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Aug 2016 14:15:45 +0000 (16:15 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 31 Aug 2016 08:02:53 +0000 (01:02 -0700)
commit16d271755f6bcb70d6cf66d47d3306a099df5842
tree8f806adf7c805dd4245594f7cbe03b0ae64a467e
parent73cb9a318349bee638deb863279114dfbc39e592
Allow 1B longer input in PKCS1 padding

OpenSSL documentation states that for PKCS1 padding the length of encrypted
input must be less than RSA_size(rsa) - 11. In fact the code itself allows less
or equal input length. Also this is what PKCS #1 standard says.

Change-Id: Iab7c7e4b3c3c3c64854f9c9ec67f18f2d7c0b01c
api/yaca/yaca_seal.h
api/yaca/yaca_types.h