• Herbert Xu's avatar
    crypto: qat - Ensure ipad and opad are zeroed · 48eb3691
    Herbert Xu authored
    The patch ad511e26 (crypto: qat -
    Fix incorrect uses of memzero_explicit) broke hashing because the
    code was in fact overwriting the qat_auth_state variable.
    
    In fact there is no reason for the variable to exist anyway since
    all we are using it for is to store ipad and opad.  So we could
    simply create ipad and opad directly and avoid this whole mess.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    48eb3691
qat_algs.c 40.4 KB