1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
--- 18 unchanged lines hidden (view full) ---
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * $FreeBSD: head/sys/geom/geom_aes.c 112552 2003-03-24 19:30:15Z phk $
36 *
37 * This method provides AES encryption with a compiled in key (default
38 * all zeroes).
39 *
40 * XXX: This could probably save a lot of code by pretending to be a slicer.
41 */
42
43#include <sys/param.h>
--- 334 unchanged lines hidden (view full) ---
378 return (gp);
379 g_detach(cp);
380 g_destroy_consumer(cp);
381 g_destroy_geom(gp);
382 return (NULL);
383}
384
385static struct g_class g_aes_class = {
386 .name = AES_CLASS_NAME,
387 .taste = g_aes_taste,
388 G_CLASS_INITIALIZER
389};
390
391DECLARE_GEOM_CLASS(g_aes_class, g_aes);
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
--- 18 unchanged lines hidden (view full) ---
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * $FreeBSD: head/sys/geom/geom_aes.c 112552 2003-03-24 19:30:15Z phk $
36 *
37 * This method provides AES encryption with a compiled in key (default
38 * all zeroes).
39 *
40 * XXX: This could probably save a lot of code by pretending to be a slicer.
41 */
42
43#include <sys/param.h>
--- 334 unchanged lines hidden (view full) ---
378 return (gp);
379 g_detach(cp);
380 g_destroy_consumer(cp);
381 g_destroy_geom(gp);
382 return (NULL);
383}
384
385static struct g_class g_aes_class = {
386 .name = AES_CLASS_NAME,
387 .taste = g_aes_taste,
388 G_CLASS_INITIALIZER
389};
390
391DECLARE_GEOM_CLASS(g_aes_class, g_aes);