af_alg.c (447a8b858e4bda41c394b1bc7fdbc9dc0bdf44f6) af_alg.c (af8e80731a94ff9de9508b01d9e5d931d538dc6b)
1/*
2 * af_alg: User-space algorithm interface
3 *
4 * This file provides the user-space API for algorithms.
5 *
6 * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au>
7 *
8 * This program is free software; you can redistribute it and/or modify it

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

416 break;
417
418 case ALG_SET_OP:
419 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32)))
420 return -EINVAL;
421 con->op = *(u32 *)CMSG_DATA(cmsg);
422 break;
423
1/*
2 * af_alg: User-space algorithm interface
3 *
4 * This file provides the user-space API for algorithms.
5 *
6 * Copyright (c) 2010 Herbert Xu <herbert@gondor.apana.org.au>
7 *
8 * This program is free software; you can redistribute it and/or modify it

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

416 break;
417
418 case ALG_SET_OP:
419 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32)))
420 return -EINVAL;
421 con->op = *(u32 *)CMSG_DATA(cmsg);
422 break;
423
424 case ALG_SET_AEAD_ASSOCLEN:
425 if (cmsg->cmsg_len < CMSG_LEN(sizeof(u32)))
426 return -EINVAL;
427 con->aead_assoclen = *(u32 *)CMSG_DATA(cmsg);
428 break;
429
424 default:
425 return -EINVAL;
426 }
427 }
428
429 return 0;
430}
431EXPORT_SYMBOL_GPL(af_alg_cmsg_send);

--- 54 unchanged lines hidden ---
430 default:
431 return -EINVAL;
432 }
433 }
434
435 return 0;
436}
437EXPORT_SYMBOL_GPL(af_alg_cmsg_send);

--- 54 unchanged lines hidden ---