Mark Leonard
2019-Sep-11 14:07 UTC
Why remove trailing padding from base64 encoded fingerprint?
>From sshkey.c (line 925):/* Trim padding characters from end */ ret[strcspn(ret, "=")] = '\0'; return ret; Why remove the trailing padding from the Base64 encoded key fingerprint? I recognize that it's easy enough to re-pad the string, but I'm just curious why it's being removed in the first place. Thanks, Mark
Damien Miller
2019-Sep-16 02:15 UTC
Why remove trailing padding from base64 encoded fingerprint?
On Wed, 11 Sep 2019, Mark Leonard wrote:> From sshkey.c (line 925): > > /* Trim padding characters from end */ > ret[strcspn(ret, "=")] = '\0'; > return ret; > > Why remove the trailing padding from the Base64 encoded key fingerprint? I > recognize that it's easy enough to re-pad the string, but I'm just curious > why it's being removed in the first place.Just to make the result more human readable. -d