• Michael Brown's avatar
    [crypto] Simplify internal HMAC API · 007d3cb8
    Michael Brown authored
    
    
    Simplify the internal HMAC API so that the key is provided only at the
    point of calling hmac_init(), and the (potentially reduced) key is
    stored as part of the context for later use by hmac_final().
    
    This simplifies the calling code, and avoids the need for callers such
    as TLS to allocate a potentially variable length block in order to
    retain a copy of the unmodified key.
    
    Signed-off-by: default avatarMichael Brown <mcb30@ipxe.org>
    007d3cb8