http://git.etherboot.org
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01374b
)
Quick hacks to get it working
author
Michael Brown
<mcb30@etherboot.org>
Thu, 1 Feb 2007 02:20:35 +0000
(
02:20
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Thu, 1 Feb 2007 02:20:35 +0000
(
02:20
+0000)
src/crypto/axtls/rsa.c
patch
|
blob
|
history
diff --git
a/src/crypto/axtls/rsa.c
b/src/crypto/axtls/rsa.c
index
60b3689
..
69db9ae
100644
(file)
--- 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 */