[tor-commits] [tor/master] Rename crypto_pk_check_key(), use it more reasonably, add tests