code: def sshfp_rec(rdata):
      '''
      Validate and parse DNS record data for TLSA record(s)
      :param rdata: DNS record data
      :return: dict w/fields
      '''
      rschema = OrderedDict((
          ('algorithm', RFC.SSHFP_ALGO),
          ('fp_hash', RFC.SSHFP_HASH),
          ('fingerprint', lambda val: val.lower())  # resolvers are inconsistent on this one
      ))
  
      return _data2rec(rschema, rdataf sshfp_rec(rdata):
      '''
      Validate and parse DNS record data for TLSA record(s)
      :param rdata: DNS record data
      :return: dict w/fields
      '''
      rschema = OrderedDict((
          ('algorithm', RFC.SSHFP_ALGO),
          ('fp_hash', RFC.SSHFP_HASH),
          ('fingerprint', lambda val: val.lower())  # resolvers are inconsistent on this one
      ))
  
      return _data2rec(rschema, rdata)
docs: Validate and parse DNS record data for TLSA record(s)
      :param rdata: DNS record data
      :return: dict w/fields