diff options
author | Matt Johnston <matt@ucc.asn.au> | 2005-05-10 17:02:05 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2005-05-10 17:02:05 +0000 |
commit | 0f0a8472d7b42b34e7aef276f765fd3ef76e8ae4 (patch) | |
tree | 5e1adce4ff29eb55a306ff943b45dac8ba9931ee /rsa.c | |
parent | e48e25a548696fa89c984e788f61b1cdf91112f7 (diff) |
* add a "label" argument to printhex()
* make some vars static in random.c
--HG--
extra : convert_revision : ef941a918e42e8af23b132946f44e6836a327e71
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; |