diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-05-27 16:37:58 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-05-27 16:37:58 +0000 |
commit | 3d580258052a7c1a117e91782483a95ad8771ff9 (patch) | |
tree | b125ff225a6d994df993d5c589204d59489bf735 /rsa.c | |
parent | a8785cf71955edac8e54c09287bfb97ffcf760c4 (diff) | |
parent | 0f0a8472d7b42b34e7aef276f765fd3ef76e8ae4 (diff) |
merge of 7d53fee744460df7d2297614c9a4a8a6722eb277
and cc783df3845d0779e2407f0a83fbb605c12efa7d
--HG--
extra : convert_revision : 7494f62a22beadfca8acdf77d8916f36245db04f
Diffstat (limited to 'rsa.c')
-rw-r--r-- | rsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -333,7 +333,7 @@ void buf_put_rsa_sign(buffer* buf, rsa_key *key, const unsigned char* data, mp_clear(&rsa_s); #if defined(DEBUG_RSA) && defined(DEBUG_TRACE) - printhex(buf->data, buf->len); + printhex("RSA sig", buf->data, buf->len); #endif @@ -357,10 +357,11 @@ static void rsa_pad_em(rsa_key * key, mp_int * rsa_em) { /* ASN1 designator (including the 0x00 preceding) */ - const char rsa_asn1_magic[] = + const unsigned char rsa_asn1_magic[] = {0x00, 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14}; -#define RSA_ASN1_MAGIC_LEN 16 + const unsigned int RSA_ASN1_MAGIC_LEN = 16; + buffer * rsa_EM = NULL; hash_state hs; unsigned int nsize; |