Use dns_secalg_format() to avoid error-prone repetition. (cherry picked from commit c18a9a208d)
c18a9a208d