Bug 204295 - security/gnupg: Bug when using gpg-agent with ed25519 ssh keys.
Summary: security/gnupg: Bug when using gpg-agent with ed25519 ssh keys.
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Adam Weinberger
URL:
Keywords:
Depends on: 204369
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-04 19:34 UTC by Luiz Eduardo Cordeiro
Modified: 2017-05-27 16:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Eduardo Cordeiro 2015-11-04 19:34:30 UTC
Hello,

I've added an ED25519 ssh key to gpg-agent (gnupg-2.1.8) and,
when I use it, it gives this error:

key_from_blob: ed25519 len 31 != 32
key_free: key is NULL

No way to login on the remote machine via ssh...

> ssh-add ~/.ssh/id_ed25519
Enter passphrase for /home/XXX/.ssh/id_ed25519:
Identity added: /home/XXX/.ssh/id_ed25519 (/home/XXX/.ssh/id_ed25519)

> ssh user@example.com
key_from_blob: ed25519 len 31 != 32
key_free: key is NULL

It works if the key isn't added to gpg-agent.

Regards,
Luiz Eduardo
Comment 1 Matthew Seaman freebsd_committer freebsd_triage 2016-03-17 10:59:01 UTC
Just saw exactly this problem with gnupg-2.1.11_1
Comment 2 Adam Weinberger freebsd_committer freebsd_triage 2017-02-13 04:51:14 UTC
I'm trying to get a handle on the gnupg PRs. Is this still an issue?
Comment 3 Adam Weinberger freebsd_committer freebsd_triage 2017-05-27 16:09:54 UTC
I haven't had a response on this PR in over 3 months, so I'm closing it out. If this is still a problem, let me know and I can re-open it.