]>
git.ipfire.org Git - thirdparty/openssl.git/blob - providers/implementations/ciphers/cipher_aes_gcm.h
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"
14 typedef struct prov_aes_gcm_ctx_st
{
15 PROV_GCM_CTX base
; /* must be first entry in struct */
19 } ks
; /* AES key schedule to use */
21 /* Platform specific data */
24 #if defined(OPENSSL_CPUID_OBJ) && defined(__s390__)
31 unsigned char ares
[16];
32 unsigned char mres
[16];
33 unsigned char kres
[16];
39 #endif /* defined(OPENSSL_CPUID_OBJ) && defined(__s390__) */
43 const PROV_GCM_HW
*PROV_AES_HW_gcm(size_t keybits
);