lkml.org 
[lkml]   [2012]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [patch] UBIFS: Add cryptographic functionality when a key is passed to the compress / decompress functions
    Hi,

    2012/4/3 Joel Reardon <joel@clambassador.com>:
    >  no_compr:
    >        memcpy(out_buf, in_buf, in_len);
    >        *out_len = in_len;
    >        *compr_type = UBIFS_COMPR_NONE;
    > +       goto encrypt;

    This goto seems unneeded here.

    > +
    > +encrypt:
    > +       if (crypto_key) {
    > +               u8 iv[UBIFS_CRYPTO_KEYSIZE];
    > +
    > +               memset(iv, 0, UBIFS_CRYPTO_KEYSIZE);
    > +               ubifs_aes_crypt(out_buf, *out_len, crypto_key, iv);
    > +       }




    --
    Guillaume LECERF
    OpenBricks developer - www.openbricks.org
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-04-03 12:45    [W:0.023 / U:30.952 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site