Consistently use constants everywhere

- `util/create_tuf_metadata.rb` file couldn't generate any test data
  since the script was not updated to match the new class/method
  signatures.
- Tests were not running properly after generating TUF test metadata via
  `util/create_tuf_metadata.rb` since there was a mismatch between the
  Digest algorithm used to create and the ones used to verify.