Bug 204295

Summary: security/gnupg: Bug when using gpg-agent with ed25519 ssh keys.
Product: Ports & Packages Reporter: Luiz Eduardo Cordeiro <luizeduardo.cordeiro>
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed Feedback Timeout    
Severity: Affects Many People CC: matthew
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Bug Depends on: 204369    
Bug Blocks:    

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.