Keresés

Hirdetés

Új hozzászólás Aktív témák

  • Jester01

    veterán

    válasz tototos #4671 üzenetére

    De, oda lehetne:

    gcm_zeroes = kzalloc(16, GFP_KERNEL);
    if (!gcm_zeroes) return -ENOMEM;

    err = crypto_register_template(&crypto_gcm_base_tmpl);
    if (err)
    {
    kfree(gcm_zeroes);
    return err;
    }

    err = crypto_register_template(&crypto_gcm_tmpl);
    if (err)
    {
    crypto_unregister_template(&crypto_gcm_base_tmpl);
    kfree(gcm_zeroes);
    return err;
    }

    err = crypto_register_template(&crypto_rfc4106_tmpl);
    if (err)
    {
    crypto_unregister_template(&crypto_gcm_tmpl);
    crypto_unregister_template(&crypto_gcm_base_tmpl);
    kfree(gcm_zeroes);
    return err;
    }

    err = crypto_register_template(&crypto_rfc4543_tmpl);
    if (err)
    {
    crypto_unregister_template(&crypto_rfc4106_tmpl);
    crypto_unregister_template(&crypto_gcm_tmpl);
    crypto_unregister_template(&crypto_gcm_base_tmpl);
    kfree(gcm_zeroes);
    return err;
    }
    return 0;

    Jester

Új hozzászólás Aktív témák