summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/aes/aes_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/aes/aes_local.h')
-rw-r--r--src/lib/libcrypto/aes/aes_local.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/lib/libcrypto/aes/aes_local.h b/src/lib/libcrypto/aes/aes_local.h
index e0714df409..a265eaac1d 100644
--- a/src/lib/libcrypto/aes/aes_local.h
+++ b/src/lib/libcrypto/aes/aes_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: aes_local.h,v 1.4 2025/01/25 17:59:44 tb Exp $ */ 1/* $OpenBSD: aes_local.h,v 1.11 2025/07/22 09:29:31 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -60,17 +60,30 @@
60 60
61__BEGIN_HIDDEN_DECLS 61__BEGIN_HIDDEN_DECLS
62 62
63typedef unsigned int u32;
64typedef unsigned short u16;
65typedef unsigned char u8;
66
67#define MAXKC (256/32)
68#define MAXKB (256/8)
69#define MAXNR 14
70
71/* This controls loop-unrolling in aes_core.c */ 63/* This controls loop-unrolling in aes_core.c */
72#undef FULL_UNROLL 64#undef FULL_UNROLL
73 65
66void aes_encrypt_block128(const unsigned char *in, unsigned char *out,
67 const void *key);
68
69void aes_ctr32_encrypt_ctr128f(const unsigned char *in, unsigned char *out,
70 size_t blocks, const void *key, const unsigned char ivec[AES_BLOCK_SIZE]);
71
72void aes_ccm64_encrypt_ccm128f(const unsigned char *in, unsigned char *out,
73 size_t blocks, const void *key, const unsigned char ivec[16],
74 unsigned char cmac[16]);
75
76void aes_ccm64_decrypt_ccm128f(const unsigned char *in, unsigned char *out,
77 size_t blocks, const void *key, const unsigned char ivec[16],
78 unsigned char cmac[16]);
79
80void aes_ecb_encrypt_internal(const unsigned char *in, unsigned char *out,
81 size_t len, const AES_KEY *key, int encrypt);
82
83void aes_xts_encrypt_internal(const char unsigned *in, char unsigned *out,
84 size_t len, const AES_KEY *key1, const AES_KEY *key2,
85 const unsigned char iv[16], int encrypt);
86
74__END_HIDDEN_DECLS 87__END_HIDDEN_DECLS
75 88
76#endif /* !HEADER_AES_LOCAL_H */ 89#endif /* !HEADER_AES_LOCAL_H */