Skip to content

Instantly share code, notes, and snippets.

@hasanalizxc
hasanalizxc / gnupg_1.4.19_xlarge_key_gen.patch
Created November 5, 2018 04:15 — forked from deekayen/gnupg_1.4.19_xlarge_key_gen.patch
GnuPG 1.4.19 large key generation to be combined with ./configure --enable-large-secmem at compile time and gpg --gen-key --enable-large-rsa at runtime.
--- g10/keygen.c 2015-02-26 12:24:21.000000000 -0500
+++ g10/keygen.c 2015-03-02 22:12:09.028419377 -0500
@@ -1041,8 +1041,9 @@
nbits = 2048;
log_info(_("keysize invalid; using %u bits\n"), nbits );
}
- else if (nbits > 4096) {
- nbits = 4096;
+ else if (nbits > 15489) {
+ /* fallback to RFC3766 256-bit symmetric equivalency */
@hasanalizxc
hasanalizxc / ABOUT
Created November 5, 2018 00:50 — forked from anonymous/ABOUT
Ultimate-GPG-Settings
The Goals of this Gist are to:
[1] Increase the GnuPG key size limit beyond 4096 bits.
[2] Provide configuration files that maximize security and anonymity.
For now, the ideal configuration files have been provided.
The Debian_Linux_GnuPG_Compiler.bash script works to build GnuPG with the 4096 bit key size limit raised.
Please provide input. Feedback and changes welcome.