Skip to content

Conversation

@cwaldren-ld
Copy link
Contributor

Adds a new sha1 hash function, implemented similar to the existing sha256.

I've also extracted the hex encoding routine from sha256's tests into a dedicated header so it can be reused in sha1's tests or elsewhere.

@cwaldren-ld cwaldren-ld requested a review from a team July 11, 2023 23:26

namespace launchdarkly::encoding {

std::array<unsigned char, SHA256_DIGEST_LENGTH> Sha256String(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured we might as well use std::array as our hash container and avoid the copy.

@cwaldren-ld cwaldren-ld requested a review from kinyoklion July 11, 2023 23:27
@cwaldren-ld cwaldren-ld merged commit 276e222 into evaluator Jul 12, 2023
@cwaldren-ld cwaldren-ld deleted the cw/encoding branch July 12, 2023 18:02
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.

3 participants