Deleted Added
full compact
cryptodev.c (241394) cryptodev.c (254356)
1/* $OpenBSD: cryptodev.c,v 1.52 2002/06/19 07:22:46 deraadt Exp $ */
2
3/*-
4 * Copyright (c) 2001 Theo de Raadt
5 * Copyright (c) 2002-2006 Sam Leffler, Errno Consulting
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * Effort sponsored in part by the Defense Advanced Research Projects
31 * Agency (DARPA) and Air Force Research Laboratory, Air Force
32 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
33 */
34
35#include <sys/cdefs.h>
1/* $OpenBSD: cryptodev.c,v 1.52 2002/06/19 07:22:46 deraadt Exp $ */
2
3/*-
4 * Copyright (c) 2001 Theo de Raadt
5 * Copyright (c) 2002-2006 Sam Leffler, Errno Consulting
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * Effort sponsored in part by the Defense Advanced Research Projects
31 * Agency (DARPA) and Air Force Research Laboratory, Air Force
32 * Materiel Command, USAF, under agreement number F30602-01-2-0537.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/opencrypto/cryptodev.c 241394 2012-10-10 08:36:38Z kevlo $");
36__FBSDID("$FreeBSD: head/sys/opencrypto/cryptodev.c 254356 2013-08-15 07:54:31Z glebius $");
37
38#include "opt_compat.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/mbuf.h>
44#include <sys/lock.h>

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

299 .fo_truncate = cryptof_truncate,
300 .fo_ioctl = cryptof_ioctl,
301 .fo_poll = cryptof_poll,
302 .fo_kqfilter = cryptof_kqfilter,
303 .fo_stat = cryptof_stat,
304 .fo_close = cryptof_close,
305 .fo_chmod = invfo_chmod,
306 .fo_chown = invfo_chown,
37
38#include "opt_compat.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/mbuf.h>
44#include <sys/lock.h>

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

299 .fo_truncate = cryptof_truncate,
300 .fo_ioctl = cryptof_ioctl,
301 .fo_poll = cryptof_poll,
302 .fo_kqfilter = cryptof_kqfilter,
303 .fo_stat = cryptof_stat,
304 .fo_close = cryptof_close,
305 .fo_chmod = invfo_chmod,
306 .fo_chown = invfo_chown,
307 .fo_sendfile = invfo_sendfile,
307};
308
309static struct csession *csefind(struct fcrypt *, u_int);
310static int csedelete(struct fcrypt *, struct csession *);
311static struct csession *cseadd(struct fcrypt *, struct csession *);
312static struct csession *csecreate(struct fcrypt *, u_int64_t, caddr_t,
313 u_int64_t, caddr_t, u_int64_t, u_int32_t, u_int32_t, struct enc_xform *,
314 struct auth_hash *);

--- 865 unchanged lines hidden ---
308};
309
310static struct csession *csefind(struct fcrypt *, u_int);
311static int csedelete(struct fcrypt *, struct csession *);
312static struct csession *cseadd(struct fcrypt *, struct csession *);
313static struct csession *csecreate(struct fcrypt *, u_int64_t, caddr_t,
314 u_int64_t, caddr_t, u_int64_t, u_int32_t, u_int32_t, struct enc_xform *,
315 struct auth_hash *);

--- 865 unchanged lines hidden ---