summaryrefslogtreecommitdiffhomepage
path: root/bignum.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-05-05 03:58:21 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-05-05 03:58:21 +0000
commitcf585ba1dee7a7e1f2fbc90d2251d99b7da66a7e (patch)
tree34034ef46643844cbece5ea3c8926b4db0346200 /bignum.c
parent298a5717bc479f13276982858e84172c3c29146a (diff)
- refactored random mp_int generation and byte->mp_int code
- added RSA blinding --HG-- extra : convert_revision : 5d5b4657a24a1c8f53c6fc45d5ec29ddb85fb45a
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bignum.c b/bignum.c
index 97901fb..60b5220 100644
--- a/bignum.c
+++ b/bignum.c
@@ -52,9 +52,9 @@ void m_mp_init_multi(mp_int *mp, ...)
va_end(args);
}
-void bytestomp(mp_int *mp, unsigned char* bytes, unsigned int len) {
+void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) {
- if (mp_read_unsigned_bin(mp, bytes, len) != MP_OKAY) {
+ if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
dropbear_exit("mem alloc error");
}
}