diff options
| author | Eric W. Biederman <ebiederm@xmission.com> | 2023-10-01 21:40:16 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-02 14:57:39 -0700 |
| commit | 867386d0c8aa0ea9edb683585b69b20f96c4f776 (patch) | |
| tree | 9abcdd3f873d4625337cca1dac2283f6b36eebdf /tree-walk.c | |
| parent | 6bcc5fa20d960c86a58248e66481c1c57155cca6 (diff) | |
| download | git-867386d0c8aa0ea9edb683585b69b20f96c4f776.tar.gz | |
tag: sign both hashes
When we write a tag the object oid is specific to the hash algorithm.
This matters when a tag is signed. The hash transition plan calls for
signatures on both the sha1 form and the sha256 form of the object,
and for both of those signatures to live in the tag object.
To generate tag object with multiple signatures, first compute the
unsigned form of the tag, and then if the tag is being signed compute
the unsigned form of the tag with the compatibilityr hash. Then
compute compute the signatures of both buffers.
Once the signatures are computed add them to both buffers. This
allows computing the compatibility hash in do_sign, saving
write_object_file the expense of recomputing the compatibility tag
just to compute it's hash.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions
