blob: b0f53084b9f37238ae18aa060faf4e307ec5fe8c [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __QCOM_WLAN_SECIF_H__
14#define __QCOM_WLAN_SECIF_H__
15
16#include <crypto/hash.h>
17
18/*
19 * Prototypes for WLAN Security Interface Functions
20 */
21
22extern struct crypto_ahash *
23wcnss_wlan_crypto_alloc_ahash(const char *alg_name, u32 type, u32 mask);
24
25extern int wcnss_wlan_crypto_ahash_digest(struct ahash_request *req);
26extern void wcnss_wlan_crypto_free_ahash(struct crypto_ahash *tfm);
27extern int wcnss_wlan_crypto_ahash_setkey(struct crypto_ahash *tfm,
28 const u8 *key, unsigned int keylen);
29extern struct crypto_ablkcipher *
30wcnss_wlan_crypto_alloc_ablkcipher(const char *alg_name, u32 type, u32 mask);
31extern void wcnss_wlan_ablkcipher_request_free(struct ablkcipher_request *req);
32
33#endif /* __QCOM_WLAN_SECIF_H__ */