2 * Copyright 2019-2020 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
11 * Generic support for ARIA GCM.
14 #include "cipher_aria_gcm.h"
16 static int aria_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
19 PROV_ARIA_GCM_CTX *actx = (PROV_ARIA_GCM_CTX *)ctx;
20 ARIA_KEY *ks = &actx->ks.ks;
22 GCM_HW_SET_KEY_CTR_FN(ks, aria_set_encrypt_key, aria_encrypt, NULL);
26 static const PROV_GCM_HW aria_gcm = {
34 const PROV_GCM_HW *PROV_ARIA_HW_gcm(size_t keybits)