Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core/sha1): removed SHA1 helper function #167

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions core/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,18 +278,3 @@ void SHA1Final(
memset(context, '\0', sizeof(*context));
memset(&finalcount, '\0', sizeof(finalcount));
}

void SHA1(
char *hash_out,
const char *str,
int len)
{
SHA1_CTX ctx;
unsigned int ii;

SHA1Init(&ctx);
for (ii=0; ii<len; ii+=1)
SHA1Update(&ctx, (const unsigned char*)str + ii, 1);
SHA1Final((unsigned char *)hash_out, &ctx);
}

5 changes: 0 additions & 5 deletions core/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,4 @@ void SHA1Final(
SHA1_CTX * context
);

void SHA1(
char *hash_out,
const char *str,
int len);

#endif /* SHA1_H */
Loading