Skip to content

Conversation

pjbgf
Copy link
Owner

@pjbgf pjbgf commented Dec 2, 2022

sha1cd may be a transient dependency to some applications which do not support (or want to) CGO. The changes enable this by falling back to the Pure Go implementation.

If users then want to override the Pure Go sha1cd with the SHA1 implementation from the standard library they can do so with:

hash.RegisterHash(crypto.SHA1, sha1.New)

sha1cd may be a transient dependency to some applications which
do not support (or want to) CGO. The changes enable this by
falling back to the Pure Go implementation.

If users then want to override the Pure Go sha1cd with the
SHA1 implementation from the standard library they can do
so with:

hash.RegisterHash(crypto.SHA1, sha1.New)

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
@pjbgf pjbgf merged commit 6aedff0 into main Dec 2, 2022
@pjbgf pjbgf deleted the no-cgo-support branch December 2, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant