linux/fs/smb/server/crypto_ctx.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *   Copyright (C) 2019 Samsung Electronics Co., Ltd.
 */

#ifndef __CRYPTO_CTX_H__
#define __CRYPTO_CTX_H__

#include <crypto/hash.h>
#include <crypto/aead.h>

enum {};

enum {};

enum {};

struct ksmbd_crypto_ctx {};

#define CRYPTO_HMACMD5(c)
#define CRYPTO_HMACSHA256(c)
#define CRYPTO_CMACAES(c)
#define CRYPTO_SHA256(c)
#define CRYPTO_SHA512(c)

#define CRYPTO_HMACMD5_TFM(c)
#define CRYPTO_HMACSHA256_TFM(c)
#define CRYPTO_CMACAES_TFM(c)
#define CRYPTO_SHA256_TFM(c)
#define CRYPTO_SHA512_TFM(c)

#define CRYPTO_GCM(c)
#define CRYPTO_CCM(c)

void ksmbd_release_crypto_ctx(struct ksmbd_crypto_ctx *ctx);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_hmacmd5(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_hmacsha256(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_cmacaes(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_sha512(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_sha256(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_gcm(void);
struct ksmbd_crypto_ctx *ksmbd_crypto_ctx_find_ccm(void);
void ksmbd_crypto_destroy(void);
int ksmbd_crypto_create(void);

#endif /* __CRYPTO_CTX_H__ */