1N/A/**
1N/A * crypto.h - Exports for dealing with encrypted files. Part of the
1N/A * Linux-NTFS project.
1N/A *
1N/A * Copyright (c) 2007 Yura Pakhuchiy
1N/A *
1N/A * This program is free software; you can redistribute it and/or modify
1N/A * it under the terms of the GNU General Public License as published by
1N/A * the Free Software Foundation; either version 2 of the License, or
1N/A * (at your option) any later version.
1N/A *
1N/A * This program is distributed in the hope that it will be useful,
1N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A * GNU General Public License for more details.
1N/A *
1N/A * You should have received a copy of the GNU General Public License
1N/A * along with this program (in the main directory of the Linux-NTFS
1N/A * distribution in the file COPYING); if not, write to the Free Software
1N/A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1N/A */
1N/A
1N/A#ifndef _NTFS_CRYPTO_H
1N/A#define _NTFS_CRYPTO_H
1N/A
1N/Aextern ntfschar NTFS_EFS[5];
1N/A
1N/A/*
1N/A * This is our Big Secret (TM) structure, so do not allow anyone even read it
1N/A * values. ;-) In fact, it is private because exist only in libntfs version
1N/A * compiled with cryptography support, so users can not depend on it.
1N/A */
1N/Atypedef struct _ntfs_crypto_attr ntfs_crypto_attr;
1N/A
1N/A/*
1N/A * These functions should not be used directly. They are called for encrypted
1N/A * attributes from corresponding functions without _crypto_ part.
1N/A */
1N/A
1N/Aextern int ntfs_crypto_attr_open(ntfs_attr *na);
1N/Aextern void ntfs_crypto_attr_close(ntfs_attr *na);
1N/A
1N/Aextern s64 ntfs_crypto_attr_pread(ntfs_attr *na, const s64 pos, s64 count,
1N/A void *b);
1N/A
1N/A#endif /* _NTFS_CRYPTO_H */