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

core: crypto add support for SHA-512/256 for RFCs 8760/7616 #3177

Merged
merged 1 commit into from Jul 11, 2022

Conversation

space88man
Copy link
Contributor

@space88man space88man commented Jul 7, 2022

Pre-Submission Checklist

  • Commit message has the format required by CONTRIBUTING guide
  • Commits are split per component (core, individual modules, libs, utils, ...)
  • Each component has a single commit (if not, squash them into one commit)
  • No commits to README files for modules (changes must be done to docbook files
    in doc/ subfolder, the README file is autogenerated)

Type Of Change

  • Small bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would change existing functionality)

Checklist:

  • PR should be backported to stable branches
  • Tested changes locally
  • Related to issue #XXXX (replace XXXX with an open issue number)

Description

This adds core/ support for SHA-512/256.

This is required for adding the SHA-512/256(“SHA-512-256”) digest algorithm to the auth module.

References:

  • RFC8760
  • RFC7616 and errata — the example given in RFC7616 for SHA-512-256 is incorrect (it truncated SHA-512 to 64 bytes instead of using the correct implementation of SHA-512/256 which has a different set of initial hash values)
  • SHA-512/256 initial hash values

@miconda miconda merged commit 805b921 into kamailio:master Jul 11, 2022
@space88man space88man deleted the RFC8760 branch October 5, 2023 08:05
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.

None yet

2 participants