fscrypt_private.h (de3cdc6e75179a2324c23400b21483a1372c95e1) fscrypt_private.h (5b421f08801fe8247dec368b3d323958f419e769)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fscrypt_private.h
4 *
5 * Copyright (C) 2015, Google, Inc.
6 *
7 * Originally written by Michael Halcrow, Ildar Muslukhov, and Uday Savagaonkar.
8 * Heavily modified since then.

--- 557 unchanged lines hidden (view full) ---

566int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key);
567
568int fscrypt_derive_dirhash_key(struct fscrypt_info *ci,
569 const struct fscrypt_master_key *mk);
570
571void fscrypt_hash_inode_number(struct fscrypt_info *ci,
572 const struct fscrypt_master_key *mk);
573
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * fscrypt_private.h
4 *
5 * Copyright (C) 2015, Google, Inc.
6 *
7 * Originally written by Michael Halcrow, Ildar Muslukhov, and Uday Savagaonkar.
8 * Heavily modified since then.

--- 557 unchanged lines hidden (view full) ---

566int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key);
567
568int fscrypt_derive_dirhash_key(struct fscrypt_info *ci,
569 const struct fscrypt_master_key *mk);
570
571void fscrypt_hash_inode_number(struct fscrypt_info *ci,
572 const struct fscrypt_master_key *mk);
573
574int fscrypt_get_encryption_info(struct inode *inode);
575
574/**
575 * fscrypt_require_key() - require an inode's encryption key
576 * @inode: the inode we need the key for
577 *
578 * If the inode is encrypted, set up its encryption key if not already done.
579 * Then require that the key be present and return -ENOKEY otherwise.
580 *
581 * No locks are needed, and the key will live as long as the struct inode --- so

--- 39 unchanged lines hidden ---
576/**
577 * fscrypt_require_key() - require an inode's encryption key
578 * @inode: the inode we need the key for
579 *
580 * If the inode is encrypted, set up its encryption key if not already done.
581 * Then require that the key be present and return -ENOKEY otherwise.
582 *
583 * No locks are needed, and the key will live as long as the struct inode --- so

--- 39 unchanged lines hidden ---