How to validate encryption

2011-08-12 Thread Yadav, Amarjeet
Hi , We have requirement where we would like to check for encrypted file its valid or not before decrypting it. Thanks ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users

how can i generate a keypair without reading anwsers from stdin?

2011-08-12 Thread 赵小强
Hi there: I want to generate a keypair . But i dont want to type gpg --gen-key and then answer questions. I want to write all the answers in a file and then let gpg read the answer from the file in batch mode. What the format of the file should be? Any help?

Re: How to validate encryption

2011-08-12 Thread Hauke Laging
Am Donnerstag, 11. August 2011, 15:47:40 schrieb Yadav, Amarjeet: Hi , We have requirement where we would like to check for encrypted file its valid or not before decrypting it. Thanks Why? In order to prevent the usability of GnuPG exploits? If you trust the sender (and his systems) then the

Re: How to validate encryption

2011-08-12 Thread Werner Koch
On Thu, 11 Aug 2011 15:47, amarjeet.ya...@gs.com said: We have requirement where we would like to check for encrypted file its valid or not before decrypting it. You mean whether it has been tampered with? You can't do that without decrypting it. GPG checks that the decrypted file is valid -

Re: how can i generate a keypair without reading anwsers from stdin?

2011-08-12 Thread Werner Koch
On Fri, 12 Aug 2011 08:41, zxq_yx_...@163.com said: I want to write all the answers in a file and then let gpg read the answer from the file in batch mode. What the format of the file should be? Any help? See the chapter Unattended GPG key generation in the manual, for example online at

Re: Secure PIN entry

2011-08-12 Thread Werner Koch
On Thu, 11 Aug 2011 23:00, jer...@jeromebaum.com said: Can I get the secure PIN entry (using built-in pin-pad) working for this reader? For my homebanking software (i.e. HBCI card), it works with CTAPI but now PC/SC. What settings can I fiddle with, and what log/debug output is relevant? No,

Re: Secure PIN entry

2011-08-12 Thread Jerome Baum
No, it is not implemented for PC/SC - only if use the internal driver which is not available under Windows. How much work is it to implement this -- either by using the internal driver or otherwise maybe using the CTAPI? Is this a very far away target, or just there's lots of stuff and little

Re: how can i generate a keypair without reading anwsers from stdin?

2011-08-12 Thread Florian Philipp
Am 12.08.2011 08:41, schrieb 赵小强: Hi there: I want to generate a keypair . But i dont want to type gpg --gen-key and then answer questions. I want to write all the answers in a file and then let gpg read the answer from the file in batch mode. What the format of the file should be? Any

RE: How to validate encryption

2011-08-12 Thread Yadav, Amarjeet
Thanks. -Original Message- From: Hauke Laging [mailto:mailinglis...@hauke-laging.de] Sent: Friday, August 12, 2011 5:16 PM To: gnupg-users@gnupg.org Cc: Yadav, Amarjeet [Tech] Subject: Re: How to validate encryption Am Donnerstag, 11. August 2011, 15:47:40 schrieb Yadav, Amarjeet: Hi ,

Re: how can i generate a keypair without reading anwsers from stdin?

2011-08-12 Thread Jerome Baum
You can simply write the answers down like you would in an interactive session with gpg. Then feed this file with `gpg --gen-key ... file` gpg just reads from standard input. There is no difference between a user pressing return and a newline character in a text file. If you want to

Implementation question: validating left two of signatures

2011-08-12 Thread brian m. carlson
I have a quality-of-implementation question (more in general than specifically about GnuPG). I am writing an implementation of OpenPGP that verifies signatures, among other things. Signatures contain the left two bytes of the hash as a quick check. I've noticed that a small number of signatures

Re: Implementation question: validating left two of signatures

2011-08-12 Thread David Shaw
On Aug 12, 2011, at 3:27 PM, brian m. carlson wrote: I have a quality-of-implementation question (more in general than specifically about GnuPG). I am writing an implementation of OpenPGP that verifies signatures, among other things. Signatures contain the left two bytes of the hash as a