* rsa_md5.c: Likesize.
* rsa_sha1.c: Likesize.
Rev: src/nettle/rsa_md5.c:1.4
Rev: src/nettle/rsa_sha1.c:1.4
struct md5_ctx *hash,
mpz_t s)
{
- assert(key->pub.size >= 45);
+ assert(key->size >= 45);
- pkcs1_encode_md5(s, key->pub.size - 1, hash);
+ pkcs1_encode_md5(s, key->size - 1, hash);
rsa_compute_root(key, s, s);
}
struct sha1_ctx *hash,
mpz_t s)
{
- assert(key->pub.size >= 45);
+ assert(key->size >= 45);
- pkcs1_encode_sha1(s, key->pub.size - 1, hash);
+ pkcs1_encode_sha1(s, key->size - 1, hash);
rsa_compute_root(key, s, s);
}