Fix read from uninitialized memory for non-RSA keys