code: def process_pgp(self, data, name):
          
          ret = []
          try:
              data = to_string(data)
              parts = re.split(r'-{5,}BEGIN', data)
              if len(parts) == 0:
                  return
  
              if len(parts[0]) == 0:
                  parts.pop(0)
  
              crt_arr = ['-----BEGIN' + x for x in parts]
              for idx, pem_rec in enumerate(crt_arr):
                  try:
                      pem_rec = pem_rec.strip()
                      if len(pem_rec) == 0:
                          continue
  
                      ret.append(self.process_pgp_raw(pem_rec.encode(), name, idx))
  
                  except Exception as e:
                      logger.error('Exception in processing PGP rec file %s: %s' % (name, e))
                      self.trace_logger.log(e)
  
          except Exception as e:
              logger.error('Exception in processing PGP file %s: %s' % (name, e))
              self.trace_logger.log(e)
          return ret
docs: PGP key processing
          :param data:
          :param name:
          :return: