From b0a1546de902808aa09244c804578b2cbe5a97bf Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 27 Aug 1999 15:56:33 +0000 Subject: [PATCH] dst_sig_size fix --- lib/dns/sec/dst/dst_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/sec/dst/dst_api.c b/lib/dns/sec/dst/dst_api.c index e8bca6e5a8..206302d35d 100644 --- a/lib/dns/sec/dst/dst_api.c +++ b/lib/dns/sec/dst/dst_api.c @@ -17,7 +17,7 @@ /* * Principal Author: Brian Wellington - * $Id: dst_api.c,v 1.5 1999/08/26 20:41:54 bwelling Exp $ + * $Id: dst_api.c,v 1.6 1999/08/27 15:56:33 bwelling Exp $ */ #include @@ -596,7 +596,7 @@ dst_sig_size(const dst_key_t *key) { switch (key->key_alg) { case DST_ALG_RSA: - return key->key_size; + return (key->key_size + 7) / 8; case DST_ALG_DSA: return (NS_DSA_SIG_SIZE); case DST_ALG_HMAC_MD5: