Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

Module Name:    src
Committed By:   agc
Date:           Sun Nov  7 02:29:28 UTC 2010

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: create.c
            crypto.c crypto.h openssl_crypto.c

Log Message:
Add the ability to perform Elgamal encryption to netpgp.  Some of this
code is inspired by the (BSD-licensed) Elgamal crypto code in
Postgresql by Marko Kreen, but netpgp uses BIGNUM numbers instead of
MPIs, and its keys have a completely different structure, so much has

% cp config.h f
% netpgp -e f
netpgp: default key set to "d4a643c5"
% gpg -d f.gpg > f2

You need a passphrase to unlock the secret key for
user: "Alistair Crooks (DSA TEST KEY - DO NOT USE) <>"
2048-bit ELG-E key, ID D727BC1E, created 2010-05-19 (main key ID D4A643C5)

gpg: encrypted with 2048-bit ELG-E key, ID D727BC1E, created 2010-05-19
      "Alistair Crooks (DSA TEST KEY - DO NOT USE) <>"
% diff f f2
% ls -al f*
-rw-r--r--  1 agc  agc  5730 Nov  6 05:40 f
-rw-------  1 agc  agc  1727 Nov  6 05:40 f.gpg
-rw-r--r--  1 agc  agc  5730 Nov  6 05:41 f2

To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
cvs rdiff -u -r1.35 -r1.36 \
cvs rdiff -u -r1.29 -r1.30 \
cvs rdiff -u -r1.24 -r1.25 \
cvs rdiff -u -r1.30 -r1.31 \

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index