mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-07 16:58:04 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
22
drivers/crypto/fmp/fmp_derive_iv.h
Normal file
22
drivers/crypto/fmp/fmp_derive_iv.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Exynos FMP derive iv for eCryptfs
|
||||
*
|
||||
* Copyright (C) 2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _FMP_DERIVE_IV_H_
|
||||
#define _FMP_DERIVE_IV_H_
|
||||
|
||||
#define SHA256_HASH_SIZE 32
|
||||
#define MD5_DIGEST_SIZE 16
|
||||
|
||||
int calculate_sha256(struct crypto_hash *hash_tfm, char *dst, char *src, int len);
|
||||
int calculate_md5(struct crypto_hash *hash_tfm, char *dst, char *src, int len);
|
||||
int file_enc_derive_iv(struct address_space *mapping, loff_t offset, char *extent_iv);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue