blake2_cryptodev.c (c74a3041f019d6492ff0cd4d46d694fc0262e65f) blake2_cryptodev.c (4ef6ea38fc88875af9b3425ae625b97c734c641b)
1/*-
2 * Copyright (c) 2018 Conrad Meyer <cem@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

38#include <sys/rwlock.h>
39#include <sys/smp.h>
40
41#include <blake2.h>
42
43#include <opencrypto/cryptodev.h>
44#include <cryptodev_if.h>
45
1/*-
2 * Copyright (c) 2018 Conrad Meyer <cem@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

38#include <sys/rwlock.h>
39#include <sys/smp.h>
40
41#include <blake2.h>
42
43#include <opencrypto/cryptodev.h>
44#include <cryptodev_if.h>
45
46#if defined(__amd64__)
47#include <machine/fpu.h>
46#include <machine/fpu.h>
48#elif defined(__i386__)
49#include <machine/npx.h>
50#endif
51
52struct blake2_session {
53 size_t mlen;
54};
55CTASSERT((size_t)BLAKE2B_KEYBYTES > (size_t)BLAKE2S_KEYBYTES);
56
57struct blake2_softc {
58 bool dying;

--- 360 unchanged lines hidden ---
47
48struct blake2_session {
49 size_t mlen;
50};
51CTASSERT((size_t)BLAKE2B_KEYBYTES > (size_t)BLAKE2S_KEYBYTES);
52
53struct blake2_softc {
54 bool dying;

--- 360 unchanged lines hidden ---