That is an very experimental feature and you need a patched version of
Libgcrypt. I close this bug; please ask for help on gnupg-devel.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Oct 12 2014
Oct 10 2014
Fixed patch; previous version included an extra translatable string. And lacked a
semicolon.
Oct 9 2014
Oct 8 2014
Oct 7 2014
Oct 3 2014
dkg developed a reasonsable patch which will be included in the next 1.4 version.
Interesting.
Use "=c" does now work with commit bc8583f2.
Well, I removed all support for GPG_AGENT_INFO.
Thanks applied.
Oct 2 2014
What "that" are you referring to? In all the versions of GPG I've tried, 1.4,
2.0, 2.1 including this current one in git, it is possible to create a
Certify-only master key by toggling off "Sign" (and "Encrypt", for RSA).
I am saying this should be possible for the "=flags" syntax as well. I would be
happy with either "=" or "=c". The latter is clearer, but inconsistent with the
existing syntax in git which ignores "c" completely, and just forces Certify on
for the master key and off for the subkey.
$ gpg2 --full-gen-key --expert
[..]
Please select what kind of key you want:
[..]
Your selection? 8
Possible actions for a RSA key: Sign Certify Encrypt Authenticate
Current allowed actions: Sign Certify Encrypt
[..]
Your selection? s
Possible actions for a RSA key: Sign Certify Encrypt Authenticate
Current allowed actions: Certify Encrypt
[..]
Your selection? e
Possible actions for a RSA key: Sign Certify Encrypt Authenticate
Current allowed actions: Certify
[..]
Your selection? q
[..]
GnuPG needs to construct a user ID to identify your key.
Real name: Testing
Email address: lol@test
Comment:
[..]
gpg: key 0822FCC2D521C45C marked as ultimately trusted
public and secret key created and signed.
[..]
$ gpg2 --edit-key lol@test
[..]
Secret key is available.
pub rsa1024/0822FCC2D521C45C
created: 2014-10-02 expires: never usage: C trust: ultimate validity: ultimate
[ultimate] (1). Testing <lol@test>
gpg>
and this is for i686 build
yes, i can. this is a gpg-error.h for x86_64 build.
That was never possible.
Can you please paste the generated file?
Hmm, do we need a gpgme feature for this?
setrlimit is your friend - do it right before the exec.
Thanks. Fix pushed.
No bug and I already set this bug to resolved.
Oct 1 2014
Judging by the lack of reply, I assume that this bug won't be fixed, correct?
Sep 29 2014
Hi, this does not currently allow me to set the master key to Certify only. If I
enter "=" or "=c" it just ignores me and goes back to the default value. Looking
at commit 7ff4ea21 I'm not sure why this is the case, since current should be 0
at the end. Setting "=a" gives me a CA-use master key as expected.
It would be good to note in the help text that a master key always has the C
flag, and a subkey does not (as far as the "=" syntax is currently implemented).
Sep 28 2014
My one concern: Some programs in languages with implicit memory management
(Python, Vala) seem to use --list-packets to provide a 'detail view' of
keys etc. On 32-bit platforms, they'll try to allocate > 2^32 bytes of
memory to process a packet composition << 100 bytes; this will cause them
to crash.
Sep 27 2014
This is additional patch for previous message, you'r tracker not allow to
attach more than one file.
Werner, we (I'm and Alexpux) was made fix for windows build (x86_64 and i686)
and seems like it works. Patches in attachment. If you want to look at msys2's
libgpg-error package you may use this link https://github.com/Alexpux/MINGW-
packages/tree/master/mingw-w64-libgpg-error
Sep 26 2014
I read that. It says that RSA-2048 keys are going to be safe until 2030. Doesn't
sound like a lot to me... Considering the average human lifespan, I could be
around until 2070. So, nope, not enough.
If all the emails I sent till now have been intercepted and stored (which seems
to be the case according to Snowden), using a RSA-2048 key simply means that all
my private correspondence is going to be public (or at least accessible) in 16
years time. Now, the only thing I'm asking is to raise the amount of secure
memory allocated by GnuPG to 128k to let people use key sizes up to 16384,
something that was even allowed by the keygen itself.
Thank you! This solution sounds good, I will test it this weekend.
Done for 2.1 and 2.0.
Use "=esa" to set all capabilities. Enter '?' for help ;-).
GOT_IT merely tells that a line was received. There is and can't be any more
semantics.
Okay, I see what you mean. We allow only toggling the flags and thus you need
to know what are thge defaults.
I propose to add a way to directly set the flags. For example by using a string
like "=cse". That is much easier.
I am not yet sure whether to keep GPG_AGENT_INFO.
FYI, just adding a "Type ? for help." after "Invalid selection." would improve
the situation massively.
Really, which prompts are those?
$ sh
$ ?
sh: 1: ?: not found
$
127
$ ed
?
?
1
$ bash
$ ?
bash: ?: command not found
127
$ zsh
% ?
zsh: no matches found: ?
%
1
$ man man
?
Pattern not found (press RETURN)
$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
?
(standard_in) 1: illegal character: ?
$ gdb
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) ?
Undefined command: "". Try "help".
(gdb) quit
Fuck, even vi tells me "type :help<Enter> or <F1> for on-line help"
$ python
Python 2.7.8 (default, Sep 9 2014, 22:08:43)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
?
File "<stdin>", line 1 ? ^
SyntaxError: invalid syntax
$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
λ: ?
<interactive>:2:1: parse error on input `?'
λ:
Leaving GHCi.
I have not asked a single question in this thread; this is a bug report, not a
question. You have not explained adequately why this is not a bug.
Please discuss coding questions at gnupg-deel and not in the BTS.
If you order such a docuemntation I'll be glad to add it. Contact me at my
company address.
Please read the FAQ starting with
https://gnupg.org/faq/gnupg-faq.html#default_rsa2048
By the way, is this all bullshit?
AES-256 == RSA-15360 / DSA-15360 (NIST)
http://csrc.nist.gov/groups/SMA/ispab/documents/minutes/2006-03/E_Barker-
March2006-ISPAB.pdf
AES=256 == RSA-15424 / DSA-15424 (ECRYPT2)
http://www.ecrypt.eu.org/documents/D.SPA.20.pdf
You responded to my previous suggestions, and this is my next iteration, with me
trying to take into account your comments.
I find that making related options visually related, helps the user to better
intuitively understand what they do. The current options don't do this.
You also had a comment along the lines of "sign is not accurate because there's
also certify and authenticate", but a few current options also have this flaw. I
think it's OK, but it's better to do this consistently.
I could not easily figure out what I was supposed to infer from the source code
of gpa or gpgme, but after playing about with it, I suppose I can detect the
error by noticing that the next GET_LINE issues a keyedit.prompt rather than
continuing with the workflow. This means I will have to write some state-keeping
logic instead of merely switching on the GET_LINE, and all users of this
interface will need to implement a similar thing.
To reduce the complexity for scripters here, might I suggest adding an extra
parameter to GOT_IT to explicitly communicate to the client script about any
errors? At least from the gpa/gpgme code it seems there is a generic parser that
can cope with extra parameters to any status line.
If anyone is affected by this (I don't know of others using this interface),
they can easily rewrite their parsing code to cope with both the old and new
GOT_IT lines (with or without a parameter).
BTW, this is the sort of thing that documentation would be helpful for.
If "a complete documentation is not possible", then it is not fit for purpose as
an API to be scripted, and you should stop advertising that functionality in public.
If you do not have time to do this documentation, the correct response is to say
"I do not have time to do this", but leave the bug open, because it is something
to be resolved in the future.
An exposed public interface that you expressly suggested me to use in a script,
is *supposed* to have documentation associated with it. That is basic standard
software engineering. You don't see standard library authors respond with "just
try out the function to see what happens", when someone points out missing
documentation.
The starting value is Certify+Sign for some options and Certify+Sign+Encrypt for
other options. This should be output in the status file descriptor so that a
script knows what it is doing.
Alternatively, the defaults should be committed to in public API documentation
that is guaranteed to not change, rather than source code. As you said yourself
in ML, one should not rely on the CLI to remain static.