hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/ccree/cc_hash.h
....@@ -1,5 +1,5 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
-/* Copyright (C) 2012-2018 ARM Limited or its affiliates. */
2
+/* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
33
44 /* \file cc_hash.h
55 * ARM CryptoCell Hash Crypto API
....@@ -80,30 +80,27 @@
8080 int cc_init_hash_sram(struct cc_drvdata *drvdata);
8181 int cc_hash_free(struct cc_drvdata *drvdata);
8282
83
-/*!
84
- * Gets the initial digest length
83
+/**
84
+ * cc_digest_len_addr() - Gets the initial digest length
8585 *
86
- * \param drvdata
87
- * \param mode The Hash mode. Supported modes:
88
- * MD5/SHA1/SHA224/SHA256/SHA384/SHA512
86
+ * @drvdata: Associated device driver context
87
+ * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512
8988 *
90
- * \return u32 returns the address of the initial digest length in SRAM
89
+ * Return:
90
+ * Returns the address of the initial digest length in SRAM
9191 */
92
-cc_sram_addr_t
93
-cc_digest_len_addr(void *drvdata, u32 mode);
92
+u32 cc_digest_len_addr(void *drvdata, u32 mode);
9493
95
-/*!
96
- * Gets the address of the initial digest in SRAM
94
+/**
95
+ * cc_larval_digest_addr() - Gets the address of the initial digest in SRAM
9796 * according to the given hash mode
9897 *
99
- * \param drvdata
100
- * \param mode The Hash mode. Supported modes:
101
- * MD5/SHA1/SHA224/SHA256/SHA384/SHA512
98
+ * @drvdata: Associated device driver context
99
+ * @mode: The Hash mode. Supported modes: MD5/SHA1/SHA224/SHA256/SHA384/SHA512
102100 *
103
- * \return u32 The address of the initial digest in SRAM
101
+ * Return:
102
+ * The address of the initial digest in SRAM
104103 */
105
-cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode);
106
-
107
-void cc_hash_global_init(void);
104
+u32 cc_larval_digest_addr(void *drvdata, u32 mode);
108105
109106 #endif /*__CC_HASH_H__*/