commit | 0148875cfc0d528c3c11b0162ffa5046560055f1 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Apr 03 22:09:18 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Apr 04 17:46:46 2014 +0200 |
tree | cf2f880674c63fd7c71b61a013ab8f081344e589 | |
parent | 79e58421be7222ca7d1df824571eb05749f5cfda [diff] [blame] |
Add tests and fix bugs for RSA-alt contexts
diff --git a/library/pk_wrap.c b/library/pk_wrap.c index 99535d6..96695d4 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c
@@ -357,7 +357,7 @@ { const rsa_alt_context *rsa_alt = (const rsa_alt_context *) ctx; - return( rsa_alt->key_len_func( rsa_alt->key ) ); + return( 8 * rsa_alt->key_len_func( rsa_alt->key ) ); } static int rsa_alt_sign_wrap( void *ctx, md_type_t md_alg,