Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2011, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 | * |
| 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 | |
| 22 | extern struct crypto_ahash * |
| 23 | wcnss_wlan_crypto_alloc_ahash(const char *alg_name, u32 type, u32 mask); |
| 24 | |
| 25 | extern int wcnss_wlan_crypto_ahash_digest(struct ahash_request *req); |
| 26 | extern void wcnss_wlan_crypto_free_ahash(struct crypto_ahash *tfm); |
| 27 | extern int wcnss_wlan_crypto_ahash_setkey(struct crypto_ahash *tfm, |
| 28 | const u8 *key, unsigned int keylen); |
| 29 | extern struct crypto_ablkcipher * |
| 30 | wcnss_wlan_crypto_alloc_ablkcipher(const char *alg_name, u32 type, u32 mask); |
| 31 | extern void wcnss_wlan_ablkcipher_request_free(struct ablkcipher_request *req); |
| 32 | |
| 33 | #endif /* __QCOM_WLAN_SECIF_H__ */ |