rsaenh: fix critical bug in read_key_container