1*515aa502Stb /* $OpenBSD: aes_local.h,v 1.4 2025/01/25 17:59:44 tb Exp $ */ 2c9675a23Stb /* ==================================================================== 3c9675a23Stb * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 4c9675a23Stb * 5c9675a23Stb * Redistribution and use in source and binary forms, with or without 6c9675a23Stb * modification, are permitted provided that the following conditions 7c9675a23Stb * are met: 8c9675a23Stb * 9c9675a23Stb * 1. Redistributions of source code must retain the above copyright 10c9675a23Stb * notice, this list of conditions and the following disclaimer. 11c9675a23Stb * 12c9675a23Stb * 2. Redistributions in binary form must reproduce the above copyright 13c9675a23Stb * notice, this list of conditions and the following disclaimer in 14c9675a23Stb * the documentation and/or other materials provided with the 15c9675a23Stb * distribution. 16c9675a23Stb * 17c9675a23Stb * 3. All advertising materials mentioning features or use of this 18c9675a23Stb * software must display the following acknowledgment: 19c9675a23Stb * "This product includes software developed by the OpenSSL Project 20c9675a23Stb * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 21c9675a23Stb * 22c9675a23Stb * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 23c9675a23Stb * endorse or promote products derived from this software without 24c9675a23Stb * prior written permission. For written permission, please contact 25c9675a23Stb * openssl-core@openssl.org. 26c9675a23Stb * 27c9675a23Stb * 5. Products derived from this software may not be called "OpenSSL" 28c9675a23Stb * nor may "OpenSSL" appear in their names without prior written 29c9675a23Stb * permission of the OpenSSL Project. 30c9675a23Stb * 31c9675a23Stb * 6. Redistributions of any form whatsoever must retain the following 32c9675a23Stb * acknowledgment: 33c9675a23Stb * "This product includes software developed by the OpenSSL Project 34c9675a23Stb * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 35c9675a23Stb * 36c9675a23Stb * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 37c9675a23Stb * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 38c9675a23Stb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 39c9675a23Stb * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 40c9675a23Stb * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 41c9675a23Stb * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 42c9675a23Stb * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 43c9675a23Stb * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44c9675a23Stb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 45c9675a23Stb * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 46c9675a23Stb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 47c9675a23Stb * OF THE POSSIBILITY OF SUCH DAMAGE. 48c9675a23Stb * ==================================================================== 49c9675a23Stb * 50c9675a23Stb */ 51c9675a23Stb 52a9199000Stb #ifndef HEADER_AES_LOCAL_H 53a9199000Stb #define HEADER_AES_LOCAL_H 54c9675a23Stb 55c9675a23Stb #include <openssl/opensslconf.h> 56c9675a23Stb 57c9675a23Stb #include <stdio.h> 58c9675a23Stb #include <stdlib.h> 59c9675a23Stb #include <string.h> 60c9675a23Stb 61c9675a23Stb __BEGIN_HIDDEN_DECLS 62c9675a23Stb 63c9675a23Stb typedef unsigned int u32; 64c9675a23Stb typedef unsigned short u16; 65c9675a23Stb typedef unsigned char u8; 66c9675a23Stb 67c9675a23Stb #define MAXKC (256/32) 68c9675a23Stb #define MAXKB (256/8) 69c9675a23Stb #define MAXNR 14 70c9675a23Stb 71c9675a23Stb /* This controls loop-unrolling in aes_core.c */ 72c9675a23Stb #undef FULL_UNROLL 73c9675a23Stb 74c9675a23Stb __END_HIDDEN_DECLS 75c9675a23Stb 76a9199000Stb #endif /* !HEADER_AES_LOCAL_H */ 77