• Herbert Xu's avatar
    [CRYPTO] ctr: Refactor into ctr and rfc3686 · 5311f248
    Herbert Xu authored
    As discussed previously, this patch moves the basic CTR functionality
    into a chainable algorithm called ctr.  The IPsec-specific variant of
    it is now placed on top with the name rfc3686.
    
    So ctr(aes) gives a chainable cipher with IV size 16 while the IPsec
    variant will be called rfc3686(ctr(aes)).  This patch also adjusts
    gcm accordingly.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    5311f248
ctr.c 10.7 KB