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:
Gaurav Shah
2010-03-04 10:22:36 -08:00
parent 80d129b89d
commit cb3d22e971
4 changed files with 65 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
# found in the LICENSE file.
CC ?= gcc
CFLAGS = -Wall -DNDEBUG
CFLAGS = -Wall -DNDEBUG -O3
INCLUDES ?= -I../include/
TOP ?= ../

View File

@@ -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