Use a while loop instead of an ifdowhile loop.

ok miod@ tedu@
BN_free, BN_clear_free, BN_CTX_free, BN_BLINDING_free and BN_MONT_CTX_free
all have implicit NULL checks, so we do not need them here.

ok miod@
remove unused ecc_pkey_size.

ok jsing@ miod@
KNF comments, reflowing and moving out of the middle of argument lists in
places

ok jsing@
decompress libssl. ok beck jsing
crank major for decompression feature
check return value of write.

ok beck@ jsing@