Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/geli/geliboot_crypto.c
Show All 25 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <strings.h> | #include <strings.h> | ||||
#include "geliboot_internal.h" | |||||
#include "geliboot.h" | #include "geliboot.h" | ||||
int | int | ||||
geliboot_crypt(u_int algo, int enc, u_char *data, size_t datasize, | geliboot_crypt(u_int algo, int enc, u_char *data, size_t datasize, | ||||
const u_char *key, size_t keysize, u_char *iv) | const u_char *key, size_t keysize, u_char *iv) | ||||
{ | { | ||||
keyInstance aeskey; | keyInstance aeskey; | ||||
cipherInstance cipher; | cipherInstance cipher; | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |