/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/sysmacros.h>
#include "aes_impl.h"
#ifndef _KERNEL
#include <stdlib.h>
#endif /* !_KERNEL */
/* Copy a 16-byte AES block from "in" to "out" */
void
{
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
} else {
}
}
/* XOR a 16-byte AES block of data into dst */
void
{
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
/* LINTED: pointer alignment */
} else {
}
}
/*
* Encrypt multiple blocks of data according to mode.
*/
int
{
int rv;
#ifdef _KERNEL
#endif
} else {
}
return (rv);
}
/*
* Decrypt multiple blocks of data according to mode.
*/
int
{
int rv;
if (rv == CRYPTO_DATA_LEN_RANGE)
#ifdef _KERNEL
#endif
} else {
if (rv == CRYPTO_DATA_LEN_RANGE)
}
return (rv);
}