• Herbert Xu's avatar
    crypto: octeontx2 - Fix authenc setkey · 7ccb750d
    Herbert Xu authored
    Use the generic crypto_authenc_extractkeys helper instead of custom
    parsing code that is slightly broken.  Also fix a number of memory
    leaks by moving memory allocation from setkey to init_tfm (setkey
    can be called multiple times over the life of a tfm).
    
    Finally accept all hash key lengths by running the digest over
    extra-long keys.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    7ccb750d
otx2_cptvf_algs.c 45.1 KB