Release 4.7 fs/btrfs/hash.c
/*
* Copyright (C) 2014 Filipe David Borba Manana <fdmanana@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License v2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*/
#include <crypto/hash.h>
#include <linux/err.h>
#include "hash.h"
static struct crypto_shash *tfm;
int __init btrfs_hash_init(void)
{
tfm = crypto_alloc_shash("crc32c", 0, 0);
return PTR_ERR_OR_ZERO(tfm);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
filipe david borba manana | filipe david borba manana | 24 | 96.00% | 1 | 50.00% |
fabian frederick | fabian frederick | 1 | 4.00% | 1 | 50.00% |
| Total | 25 | 100.00% | 2 | 100.00% |
const char* btrfs_crc32c_impl(void)
{
return crypto_tfm_alg_driver_name(crypto_shash_tfm(tfm));
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
jeff mahoney | jeff mahoney | 18 | 100.00% | 1 | 100.00% |
| Total | 18 | 100.00% | 1 | 100.00% |
void btrfs_hash_exit(void)
{
crypto_free_shash(tfm);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
filipe david borba manana | filipe david borba manana | 12 | 100.00% | 1 | 100.00% |
| Total | 12 | 100.00% | 1 | 100.00% |
u32 btrfs_crc32c(u32 crc, const void *address, unsigned int length)
{
SHASH_DESC_ON_STACK(shash, tfm);
u32 *ctx = (u32 *)shash_desc_ctx(shash);
int err;
shash->tfm = tfm;
shash->flags = 0;
*ctx = crc;
err = crypto_shash_update(shash, address, length);
BUG_ON(err);
return *ctx;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
filipe david borba manana | filipe david borba manana | 60 | 77.92% | 1 | 50.00% |
vinicius tinti | vinicius tinti | 17 | 22.08% | 1 | 50.00% |
| Total | 77 | 100.00% | 2 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
filipe david borba manana | filipe david borba manana | 112 | 75.68% | 1 | 25.00% |
jeff mahoney | jeff mahoney | 18 | 12.16% | 1 | 25.00% |
vinicius tinti | vinicius tinti | 17 | 11.49% | 1 | 25.00% |
fabian frederick | fabian frederick | 1 | 0.68% | 1 | 25.00% |
| Total | 148 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.