Apply a change by Toomas Kiisk <vix@cyber.ee>: * Fix a crashbug and a logic bug in hwcrhk_load_pubkey()