mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-26 19:25:02 +00:00
Fix RSA verification test.
I previously refactored some of the signature generation code to directly use the OpenSSL library instead of invoking the "openssl" command line utility. The signature_digest command line utility got lost in the process. This restores the utility which in turn fixes the RSA verification test. Review URL: http://codereview.chromium.org/669040
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS = -Wall -DNDEBUG
|
||||
CFLAGS = -Wall -DNDEBUG -O3
|
||||
INCLUDES ?= -I../include/
|
||||
TOP ?= ../
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ function generate_signatures {
|
||||
do
|
||||
for hashalgo in ${hash_algos[@]}
|
||||
do
|
||||
${UTIL_DIR}/signature_digest $algorithmcounter $1 | openssl rsautl -sign \
|
||||
-pkcs -inkey ${KEY_DIR}/key_rsa${keylen}.pem \
|
||||
${UTIL_DIR}/signature_digest_utility $algorithmcounter $1 | openssl \
|
||||
rsautl -sign -pkcs -inkey ${KEY_DIR}/key_rsa${keylen}.pem \
|
||||
> $1.rsa${keylen}\_${hashalgo}.sig
|
||||
let algorithmcounter=algorithmcounter+1
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user