Support raw input data in apps/pkeyutl
authorPaul Yang <yang.yang@baishancloud.com>
Wed, 16 Jan 2019 08:16:28 +0000 (16:16 +0800)
committerPaul Yang <yang.yang@baishancloud.com>
Wed, 27 Feb 2019 02:05:17 +0000 (10:05 +0800)
commita7cef52f9b961dcb1e5d0c3b75185a12a88ad2db
tree59936955f2e1df867bf4727195823b9f2d051463
parent4089b4340701e3c13e07169e67a7d14519c98658
Support raw input data in apps/pkeyutl

Some signature algorithms require special treatment for digesting, such
as SM2. This patch adds the ability of handling raw input data in
apps/pkeyutl other than accepting only pre-hashed input data.

Beside, SM2 requries an ID string when signing or verifying a piece of data,
this patch also adds the ability for apps/pkeyutil to specify that ID
string.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8186)
apps/pkeyutl.c
crypto/sm2/sm2_pmeth.c
doc/man1/pkeyutl.pod
test/certs/sm2.crt [new file with mode: 0644]
test/certs/sm2.key [new file with mode: 0644]
test/recipes/20-test_pkeyutl.t [new file with mode: 0644]