digsig: remove unnecessary memory allocation and copying
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Wed, 30 Jan 2013 09:30:05 +0000 (11:30 +0200)
committerJames Morris <james.l.morris@oracle.com>
Fri, 1 Feb 2013 05:28:24 +0000 (16:28 +1100)
commit26d438457ed1b99b6cb26d8f694e8d3de336f9d8
tree9a6f3cd4f009fc0bff888e52a2c00af757b50e58
parent5a73fcfa8875a94c2956e7ff8fba54d31a3e2854
digsig: remove unnecessary memory allocation and copying

In existing use case, copying of the decoded data is unnecessary in
pkcs_1_v1_5_decode_emsa. It is just enough to get pointer to the message.
Removing copying and extra buffer allocation.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
lib/digsig.c