Ah thanks, that was the problem. Would be helpful if this page<http://www.gnupg.org/documentation/manuals/gnupg-devel/Agent-GENKEY.html#Agent-GENKEY>were updated to reflect the correct syntax for future users.
Was just using socat for testing purposes. My system requires the lowest latency and fewest memcpy's possible so if I continue with the socket interface I will use it directly. Since posting I've come across the Qt Cryptographic Architecture (qca) which looks to be a better approach for me as I'm already developing in Qt. Thanks again, -Alan On Wed, Jan 8, 2014 at 4:09 AM, Werner Koch <w...@gnupg.org> wrote: > On Wed, 8 Jan 2014 00:30, alan.meek...@gmail.com said: > > >> D (genkey (rsa (nbits 4096))) > > Use > > D (genkey (rsa (nbits 4:4096))) > > to match the S-expression syntax. A leading digit denotes a length and > thus you can't enter a number without its length. Yes, this is a common > pitfall. > > Instead of socat, I suggest the use of gpg-connect-agent (which even > feature a simple script language). If gpg-agent is installed on a > system gpg-connect-agent is also available. As an alternative you may > also use the Assuan interface of GPGME (see gpa/src/cardman.c for > examples). > > > Salam-Shalom, > > Werner > > > -- > Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. > >
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users