head 1.2; access; symbols perseant-exfatfs-base-20261102:1.2 perseant-exfatfs-base-20250801:1.2 perseant-exfatfs-base-20240630:1.2 perseant-exfatfs:1.2.0.26 perseant-exfatfs-base:1.2 cjep_sun2x:1.2.0.24 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.22 cjep_staticlib_x-base:1.2 phil-wifi-20200421:1.2 phil-wifi-20200411:1.2 phil-wifi-20200406:1.2 pgoyette-compat-merge-20190127:1.2 pgoyette-compat-20190127:1.2 pgoyette-compat-20190118:1.2 pgoyette-compat-1226:1.2 pgoyette-compat-1126:1.2 pgoyette-compat-1020:1.2 pgoyette-compat-0930:1.2 pgoyette-compat-0906:1.2 pgoyette-compat-0728:1.2 pgoyette-compat-0625:1.2 pgoyette-compat-0521:1.2 pgoyette-compat-0502:1.2 pgoyette-compat-0422:1.2 pgoyette-compat-0415:1.2 pgoyette-compat-0407:1.2 pgoyette-compat-0330:1.2 pgoyette-compat-0322:1.2 pgoyette-compat-0315:1.2 pgoyette-compat:1.2.0.20 pgoyette-compat-base:1.2 perseant-stdc-iso10646:1.2.0.18 perseant-stdc-iso10646-base:1.2 prg-localcount2-base3:1.2 prg-localcount2-base2:1.2 prg-localcount2-base1:1.2 prg-localcount2:1.2.0.16 prg-localcount2-base:1.2 pgoyette-localcount-20170426:1.2 bouyer-socketcan-base1:1.2 pgoyette-localcount-20170320:1.2 bouyer-socketcan:1.2.0.14 bouyer-socketcan-base:1.2 pgoyette-localcount-20170107:1.2 pgoyette-localcount-20161104:1.2 localcount-20160914:1.2 pgoyette-localcount-20160806:1.2 pgoyette-localcount-20160726:1.2 pgoyette-localcount:1.2.0.12 pgoyette-localcount-base:1.2 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.2 tls-earlyentropy:1.2.0.8 tls-earlyentropy-base:1.2 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 agc-symver:1.2.0.10 agc-symver-base:1.2 tls-maxphys-base:1.2 yamt-pagecache-base8:1.2 yamt-pagecache-base7:1.2 yamt-pagecache-base6:1.2 yamt-pagecache-base5:1.2 yamt-pagecache-base4:1.2 yamt-pagecache-base3:1.2 yamt-pagecache-base2:1.2 yamt-pagecache:1.2.0.6 yamt-pagecache-base:1.2 bouyer-quota2-nbase:1.2 bouyer-quota2:1.2.0.4 bouyer-quota2-base:1.2 jym-xensuspend-nbase:1.2 jym-xensuspend:1.2.0.2 jym-xensuspend-base:1.2 openpgpsdk-base:1.1.1.1 OPENPGPSDK:1.1.1; locks; strict; comment @# @; 1.2 date 2009.01.20.06.36.37; author agc; state dead; branches; next 1.1; 1.1 date 2009.01.12.22.55.41; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2009.01.12.22.55.41; author agc; state Exp; branches; next ; desc @@ 1.2 log @Remove the botched import of the openpgpsdk sources. "They'll be back" @ text @DM_FLAGS=%DM_FLAGS% DM_LIB=%DM_LIB% CC=%CC% CFLAGS=-Wall -Werror -g $(DM_FLAGS) -I../include %INCLUDES% %CFLAGS% LDFLAGS=-g %CFLAGS% LIBDEPS=common.o ../lib/libops.a LIBS=$(LIBDEPS) %CRYPTO_LIBS% %ZLIB% $(DM_LIB) %LIBS% EXES=packet-dump verify create-key verify2 sign-detached \ sign-inline decrypt build-keyring encrypt # create-signed-key all: Makefile .depend $(EXES) test: test-dump test-verify test-verify-armoured test-create-key \ test-v3-secring Makefile test-encrypt ../lib/libops.a:: cd ../src && make packet-dump: packet-dump.o $(LIBDEPS) $(CC) $(LDFLAGS) -o packet-dump packet-dump.o $(LIBS) build-keyring: build-keyring.o $(LIBDEPS) $(CC) $(LDFLAGS) -o build-keyring build-keyring.o $(LIBS) verify: verify.o $(LIBDEPS) $(CC) $(LDFLAGS) -o verify verify.o $(LIBS) verify2: verify2.o $(LIBDEPS) $(CC) $(LDFLAGS) -o verify2 verify2.o $(LIBS) create-key: create-key.o $(LIBDEPS) $(CC) $(LDFLAGS) -o create-key create-key.o $(LIBS) create-signed-key: create-signed-key.o $(LIBDEPS) $(CC) $(LDFLAGS) -o create-signed-key create-signed-key.o $(LIBS) sign-detached: sign-detached.o $(LIBDEPS) $(CC) $(LDFLAGS) -o sign-detached sign-detached.o $(LIBS) sign-inline: sign-inline.o $(LIBDEPS) $(CC) $(LDFLAGS) -o sign-inline sign-inline.o $(LIBS) decrypt: decrypt.o $(LIBDEPS) $(CC) $(LDFLAGS) -o decrypt decrypt.o $(LIBS) encrypt: encrypt.o $(LIBDEPS) $(CC) $(LDFLAGS) -o encrypt encrypt.o $(LIBS) tags: rm -f TAGS find . -name '*.[ch]' | xargs etags -a clean: rm -f $(EXES) *.o *.i rm -f TAGS .depend: *.[ch] ../include/openpgpsdk/*.h $(CC) $(CFLAGS) -E -M *.c > .depend force_depend: $(CC) $(CFLAGS) -E -M *.c > .depend Makefile: Makefile.template ../configure echo Makefile is older than templates, rerun configure. exit 1 # tests SCRATCH=../scratch $(SCRATCH): mkdir $(SCRATCH) test-dump: packet-dump ./packet-dump ../test/dsa-public-key-2118CF83.raw ./packet-dump ../test/rsa-public-key-2719AF35.raw ./packet-dump ../test/signtest.gpg ./packet-dump ../test/subpacket-10.raw ./packet-dump ../test/user-attribute-key.raw ./packet-dump ../test/subpacket-28.raw test-verify: verify ./verify ../test/dsa-public-key-2118CF83.raw ./verify ../test/rsa-public-key-2719AF35.raw ./verify ../test/signtest.gpg ./verify ../test/subpacket-10.raw ./verify ../test/user-attribute-key.raw ./verify ../test/subpacket-28.raw test-verify-armoured: verify2 ./verify2 -a ../test/rsa-public-key-2719AF35.raw ../test/clearsign.txt test-create-key: $(SCRATCH)/key.sec $(SCRATCH)/key.pub $(SCRATCH)/key.sec $(SCRATCH)/key.pub: $(SCRATCH) create-signed-key ./create-signed-key "A Test Key" $(SCRATCH)/key.sec $(SCRATCH)/key.pub test-sign-detached: $(SCRATCH)/key.sec sign-detached echo "Sign this!" > $(SCRATCH)/to-be-signed-detached ./sign-detached $(SCRATCH)/key.sec "Why a user ID?" SHA1 $(SCRATCH)/to-be-signed-detached $(SCRATCH)/to-be-signed-detached.sig test-sign-inline: $(SCRATCH)/key.sec sign-inline echo "Sign this!" > $(SCRATCH)/to-be-signed-inline echo "- test dash-escaping" >> $(SCRATCH)/to-be-signed-inline echo "and test trailing whitespace " >> $(SCRATCH)/to-be-signed-inline ./sign-inline $(SCRATCH)/key.sec "Why a user ID?" SHA1 $(SCRATCH)/to-be-signed-inline $(SCRATCH)/to-be-signed-inline.sig test-v3-secring: packet-dump echo "passphrase is 'fred'" ./packet-dump -p ../test/v3-secring.pgp $(SCRATCH)/t1.sec $(SCRATCH)/t1.pub: ./create-gpg-key.sh test-encrypt: encrypt $(SCRATCH)/t1.pub echo 'Test encryption' | ./encrypt $(SCRATCH)/t1.pub "OPS Test (This is a test) " > $(SCRATCH)/encrypted gpg --no-default-keyring --secret-keyring $(SCRATCH)/t1.sec $(SCRATCH)/encrypted include .depend @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Initial import of openpgpsdk v0.9 into the external section of the crypto sources, per conversation with core. License is 3-clause BSD. An OpenPGP library implementation (RSA and partial DSA), conformant with RFC4880 "OpenPGP Message Format". RSA Key Generation * S2K Usage: ENCRYPTED_AND_HASHED * S2K Specifier: SALTED * Symmetric algorithm: CAST5 RSA Encryption * Generates "Symmetrically Encrypted Integrity Protected Data" packets (required by RFC) * Hash: SHA1 (required by RFC) * Symmetric Algorithm: CAST5 (hard-coded) * Uses compression * Optional ASCII armouring RSA Decryption * Symmetric Algorithm: CAST5, AES, AES256, 3DES * Optional Compression: ZIP, ZLIB, BZIP2 * Optional ASCII armouring RSA Signature * Armoured, unarmoured or clearsigned * Hash algorithm: SHA1 RSA Verification * Armoured, unarmoured or clearsigned * V3 or V4 signatures * Hash algorithms: SHA1, SHA256, SHA384, SHA512, SHA224 DSA Signature * Armoured, unarmoured or clearsigned * Hash algorithms: SHA1 DSA Verification * Armoured, unarmoured or clearsigned * V3 or V4 signatures * Hash algorithms: SHA1, SHA256, SHA384, SHA512, SHA224 @ text @@