Closed as duplicate of#70795
Closed as duplicate of#70795
Description
Proposal Details
There was functionality recently introduced in golang/crypto@e944286 to expose negotiated algorithms. This includes the hostkey algo, but not for any pubkeys used to authenticate.
There is currently no way to detect which algo is used for e.g. rsa pubkeys, most interesting being ssh-rsa vs rsa-sha2-*.
One option is to provide it in the ConnMetadata
given to the PublicKeyCallback
with a similar cast as used for NegotiatedAlgorithms
from the above change.