Path: blob/master/security/keys/encrypted-keys/ecryptfs_format.h
26442 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* ecryptfs_format.h: helper functions for the encrypted key type3*4* Copyright (C) 2006 International Business Machines Corp.5* Copyright (C) 2010 Politecnico di Torino, Italy6* TORSEC group -- https://security.polito.it7*8* Authors:9* Michael A. Halcrow <[email protected]>10* Tyler Hicks <[email protected]>11* Roberto Sassu <[email protected]>12*/1314#ifndef __KEYS_ECRYPTFS_H15#define __KEYS_ECRYPTFS_H1617#include <linux/ecryptfs.h>1819#define PGP_DIGEST_ALGO_SHA512 102021u8 *ecryptfs_get_auth_tok_key(struct ecryptfs_auth_tok *auth_tok);22void ecryptfs_get_versions(int *major, int *minor, int *file_version);23int ecryptfs_fill_auth_tok(struct ecryptfs_auth_tok *auth_tok,24const char *key_desc);2526#endif /* __KEYS_ECRYPTFS_H */272829