From: Michael Brown Date: Thu, 1 Feb 2007 02:20:35 +0000 (+0000) Subject: Quick hacks to get it working X-Git-Tag: v0.9.3~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3837e0ed91277ca05b0efd08459076a3661528;p=thirdparty%2Fipxe.git Quick hacks to get it working --- diff --git a/src/crypto/axtls/rsa.c b/src/crypto/axtls/rsa.c index 60b36891f..69db9ae78 100644 --- a/src/crypto/axtls/rsa.c +++ b/src/crypto/axtls/rsa.c @@ -273,7 +273,10 @@ int RSA_encrypt(RSA_CTX *ctx, const uint8_t *in_data, uint16_t in_len, else /* randomize the encryption padding with non-zero bytes */ { out_data[1] = 2; + memset(&out_data[2], 0x01, num_pads_needed); +#if 0 get_random_NZ(num_pads_needed, &out_data[2]); +#endif } out_data[2+num_pads_needed] = 0; @@ -287,6 +290,8 @@ int RSA_encrypt(RSA_CTX *ctx, const uint8_t *in_data, uint16_t in_len, return byte_size; } +#if 0 + /** * Take a signature and decrypt it. */ @@ -328,4 +333,6 @@ bigint *RSA_sign_verify(BI_CTX *ctx, const uint8_t *sig, int sig_len, return bir; } +#endif + #endif /* CONFIG_SSL_CERT_VERIFICATION */