forgejo/models/asymkey
zeripath bf41958c16
Pad GPG Key ID with preceding zeroes (#20878) (#20885)
Backport #20878

The go crypto library does not pad keyIDs to 16 characters with preceding zeroes. This
is a somewhat confusing thing for most users who expect these to have preceding zeroes.

This PR prefixes any sub 16 length KeyID with preceding zeroes and removes preceding
zeroes from KeyIDs inputted on the API.

Fix #20876

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-08-22 19:35:18 +01:00
..
error.go
gpg_key.go Pad GPG Key ID with preceding zeroes (#20878) (#20885) 2022-08-22 19:35:18 +01:00
gpg_key_add.go
gpg_key_commit_verification.go
gpg_key_common.go
gpg_key_import.go
gpg_key_test.go
gpg_key_verify.go
main_test.go
ssh_key.go Increase Content field size of gpg_key and public_key to MEDIUMTEXT (#20896) (#20911) 2022-08-22 15:17:21 +01:00
ssh_key_authorized_keys.go
ssh_key_authorized_principals.go
ssh_key_commit_verification.go
ssh_key_deploy.go Move some repository related code into sub package (#19711) 2022-06-06 16:01:49 +08:00
ssh_key_fingerprint.go Fix order by parameter (#19849) 2022-06-04 20:18:50 +01:00
ssh_key_parse.go
ssh_key_principals.go
ssh_key_test.go
ssh_key_verify.go