test: Refactor populate_hash_algs to populate_algs
test: Refactor populate_hash_algs to populate_algs

Expose a more global function for filtering on supported algs

Signed-off-by: sebastien le stum <eab1024c437ed3bd6a7c8a3a281fc7d29e1067e0@gmail.com>

01org/tpm2.0-tools,01org/tpm2.0-tools,01org/tpm2.0-tools