.. | .. |
---|
1 | 1 | /* 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). */ |
---|
3 | 3 | |
---|
4 | 4 | /* \file cc_hash.h |
---|
5 | 5 | * ARM CryptoCell Hash Crypto API |
---|
.. | .. |
---|
80 | 80 | int cc_init_hash_sram(struct cc_drvdata *drvdata); |
---|
81 | 81 | int cc_hash_free(struct cc_drvdata *drvdata); |
---|
82 | 82 | |
---|
83 | | -/*! |
---|
84 | | - * Gets the initial digest length |
---|
| 83 | +/** |
---|
| 84 | + * cc_digest_len_addr() - Gets the initial digest length |
---|
85 | 85 | * |
---|
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 |
---|
89 | 88 | * |
---|
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 |
---|
91 | 91 | */ |
---|
92 | | -cc_sram_addr_t |
---|
93 | | -cc_digest_len_addr(void *drvdata, u32 mode); |
---|
| 92 | +u32 cc_digest_len_addr(void *drvdata, u32 mode); |
---|
94 | 93 | |
---|
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 |
---|
97 | 96 | * according to the given hash mode |
---|
98 | 97 | * |
---|
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 |
---|
102 | 100 | * |
---|
103 | | - * \return u32 The address of the initial digest in SRAM |
---|
| 101 | + * Return: |
---|
| 102 | + * The address of the initial digest in SRAM |
---|
104 | 103 | */ |
---|
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); |
---|
108 | 105 | |
---|
109 | 106 | #endif /*__CC_HASH_H__*/ |
---|