• Patrick McHardy's avatar
    [HIFN]: Fix data alignment checks · d069033b
    Patrick McHardy authored
        
    The check for misalignment of the scatterlist data has two bugs:
    
    - the source buffer doesn't need to be aligned at all
    - the destination buffer and its size needs to be aligned to a multiple
      of 4, not to the crypto alg blocksize
        
    Introduce symbolic constant for destination buffer alignment requirements,
    use it instead of the crypto alg blocksize and remove the unnecessary
    checks for source buffer alignment and change cra_alignmask to zero.
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    d069033b
hifn_795x.c 77.6 KB