gpg-interface: extract gpg line matching helper