• Herbert Xu's avatar
    crypto: caam - Clamp AEAD SG list by input length · 70c3c8a9
    Herbert Xu authored
    Currently caam assumes that the SG list contains exactly the number
    of bytes required.  This assumption is incorrect.
    
    Up until now this has been harmless.  However with the new AEAD
    interface this now breaks as the AD SG list contains more bytes
    than just the AD.
    
    This patch fixes this by always clamping the AD SG list by the
    specified AD length.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    70c3c8a9
sg_sw_sec4.h 3.06 KB