ah6.c (4ba24fef3eb3b142197135223b90ced2f319cd53) ah6.c (63159f29be1df7f93563a8a0f78c5e65fc844ed6)
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 667 unchanged lines hidden (view full) ---

676
677 if (!x->aalg)
678 goto error;
679
680 if (x->encap)
681 goto error;
682
683 ahp = kzalloc(sizeof(*ahp), GFP_KERNEL);
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 667 unchanged lines hidden (view full) ---

676
677 if (!x->aalg)
678 goto error;
679
680 if (x->encap)
681 goto error;
682
683 ahp = kzalloc(sizeof(*ahp), GFP_KERNEL);
684 if (ahp == NULL)
684 if (!ahp)
685 return -ENOMEM;
686
687 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0);
688 if (IS_ERR(ahash))
689 goto error;
690
691 ahp->ahash = ahash;
692 if (crypto_ahash_setkey(ahash, x->aalg->alg_key,

--- 113 unchanged lines hidden ---
685 return -ENOMEM;
686
687 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0);
688 if (IS_ERR(ahash))
689 goto error;
690
691 ahp->ahash = ahash;
692 if (crypto_ahash_setkey(ahash, x->aalg->alg_key,

--- 113 unchanged lines hidden ---