Segmentation fault on key generation
When tor cannot find any existing keys, the --keygen flag crashes with a segmentation fault. This is caused by using the return value of
crypto_read_tagged_contents_from_file for wiping the
The solution is to use the array size as the size (like the
pwbuf array). The patch for review follows.