* \retval NULL for unknown algorithm identifier
*/
static inline const struct cfs_crypto_hash_type *
- cfs_crypto_hash_type(unsigned char hash_alg)
+cfs_crypto_hash_type(unsigned char hash_alg)
{
struct cfs_crypto_hash_type *ht;
* \retval string name of known hash algorithm
* \retval "unknown" if hash algorithm is unknown
*/
-static inline const char *cfs_crypto_hash_name(unsigned char hash_alg)
+static inline const char *
+cfs_crypto_hash_name(unsigned char hash_alg)
{
const struct cfs_crypto_hash_type *ht;
/* cfs crypto hash descriptor */
struct cfs_crypto_hash_desc;
-struct cfs_crypto_hash_desc*
- cfs_crypto_hash_init(unsigned char hash_alg,
- unsigned char *key, unsigned int key_len);
+struct cfs_crypto_hash_desc *
+cfs_crypto_hash_init(unsigned char hash_alg,
+ unsigned char *key, unsigned int key_len);
int cfs_crypto_hash_update_page(struct cfs_crypto_hash_desc *desc,
struct page *page, unsigned int offset,
unsigned int len);
* \retval ERR_PTR(errno) in case of error
*/
struct cfs_crypto_hash_desc *
- cfs_crypto_hash_init(unsigned char hash_alg,
- unsigned char *key, unsigned int key_len)
+cfs_crypto_hash_init(unsigned char hash_alg,
+ unsigned char *key, unsigned int key_len)
{
struct ahash_request *req;
int err;