2 * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include <openssl/aes.h>
11 #include "prov/ciphercommon.h"
12 #include "prov/ciphercommon_gcm.h"
13 #include "crypto/aes_platform.h"
15 typedef struct prov_aes_gcm_ctx_st {
16 PROV_GCM_CTX base; /* must be first entry in struct */
20 } ks; /* AES key schedule to use */
22 /* Platform specific data */
25 #if defined(OPENSSL_CPUID_OBJ) && defined(__s390__)
32 unsigned char ares[16];
33 unsigned char mres[16];
34 unsigned char kres[16];
40 #endif /* defined(OPENSSL_CPUID_OBJ) && defined(__s390__) */
44 const PROV_GCM_HW *PROV_AES_HW_gcm(size_t keybits);