diff options
| author | Werner Koch <[email protected]> | 2025-07-24 12:12:37 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-07-24 12:15:08 +0000 |
| commit | e3cc410003a91e7ab4c267e1285c0c4c57775be9 (patch) | |
| tree | b7e3a38721ce846352ce76bf4d277f5972eaa6ac /doc/HACKING | |
| parent | gpgsm: Fix caching of the trustlist's flags. (diff) | |
| download | gnupg-e3cc410003a91e7ab4c267e1285c0c4c57775be9.tar.gz gnupg-e3cc410003a91e7ab4c267e1285c0c4c57775be9.zip | |
gpgv: New option --print-notation.
* g10/keylist.c (print_matching_notations): New.
* g10/mainproc.c (check_sig_and_print): Call this.
* g10/options.h (opt): Add field print_notations.
* g10/gpgv.c (oPrintNotation): New.
(opts): Add "print-notation".
(main): Implement.
--
I had the code floating around but can't remember what triggered me to
write this. But it might eventually be useful, so better apply it.
Diffstat (limited to 'doc/HACKING')
| -rw-r--r-- | doc/HACKING | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/HACKING b/doc/HACKING index cb7e400fc..8cf49f4bd 100644 --- a/doc/HACKING +++ b/doc/HACKING @@ -443,3 +443,23 @@ plaintext packets and so on. The file g10/encode.c might be a good starting point to see how it is used - actually this is the other way: constructing messages using pushed filters but it may be easier to understand. + +** Notes on how to create test data + +On 2016-02-28 we created a lot of AEAD test data using a command +similar to this: + +--8<---------------cut here---------------start------------->8--- +for algo in eax ocb; do + for csize in 6 7 12 13 14 30; do + for len in 0 $(seq 0 200) $(seq 8100 8200) $(seq 16350 16400) \ + $(seq 20000 20100); do + awk </dev/null -v i=$len 'BEGIN{while(i){i--;printf"~"}}' \ + | gpg --no-options -v --rfc4880bis --batch --passphrase "abc" \ + --s2k-count 1025 --s2k-digest-algo sha256 -z0 \ + --force-aead --aead-algo $algo --cipher aes -a \ + --chunk-size $csize -c >symenc-aead-eax-c$csize-$len.asc + done + done +done +--8<---------------cut here---------------end--------------->8--- |
