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

Add doc for 'label' and 'context' params in HKDF #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 12, 2018

  1. Add doc for 'label' and 'context' params in HKDF

    These are according to the HKDF spec: https://tools.ietf.org/html/rfc5869
    
    There is a extract and a expand phase. The salt (aka 'label') is used in 
    the extract phase:
    
    HKDF-Extract(salt, IKM) -> PRK
    salt     optional salt value (a non-secret random value);
             if not provided, it is set to a string of HashLen zeros.
    
    and the info (aka 'context') is used in the expand phase:
    
    HKDF-Expand(PRK, info, L) -> OKM
    
    info     optional context and application specific information
             (can be a zero-length string)
    patrickfav authored Jun 12, 2018
    Configuration menu
    Copy the full SHA
    439fa73 View commit details
    Browse the repository at this point in the history