Lines Matching +full:version +full:- +full:minor
1 // SPDX-License-Identifier: GPL-2.0-only
7 * TORSEC group -- https://security.polito.it
21 return auth_tok->token.password.session_key_encryption_key; in ecryptfs_get_auth_tok_key()
28 * Source code taken from the software 'ecryptfs-utils' version 83.
31 void ecryptfs_get_versions(int *major, int *minor, int *file_version) in ecryptfs_get_versions() argument
34 *minor = ECRYPTFS_VERSION_MINOR; in ecryptfs_get_versions()
41 * ecryptfs_fill_auth_tok - fill the ecryptfs_auth_tok structure
45 * shipped with the software 'ecryptfs-utils' version 83.
51 int major, minor; in ecryptfs_fill_auth_tok() local
53 ecryptfs_get_versions(&major, &minor, NULL); in ecryptfs_fill_auth_tok()
54 auth_tok->version = (((uint16_t)(major << 8) & 0xFF00) in ecryptfs_fill_auth_tok()
55 | ((uint16_t)minor & 0x00FF)); in ecryptfs_fill_auth_tok()
56 auth_tok->token_type = ECRYPTFS_PASSWORD; in ecryptfs_fill_auth_tok()
57 strncpy((char *)auth_tok->token.password.signature, key_desc, in ecryptfs_fill_auth_tok()
59 auth_tok->token.password.session_key_encryption_key_bytes = in ecryptfs_fill_auth_tok()
62 * Removed auth_tok->token.password.salt and in ecryptfs_fill_auth_tok()
63 * auth_tok->token.password.session_key_encryption_key in ecryptfs_fill_auth_tok()
67 auth_tok->token.password.flags |= in ecryptfs_fill_auth_tok()
70 auth_tok->session_key.encrypted_key[0] = 0; in ecryptfs_fill_auth_tok()
71 auth_tok->session_key.encrypted_key_size = 0; in ecryptfs_fill_auth_tok()
73 auth_tok->token.password.hash_algo = PGP_DIGEST_ALGO_SHA512; in ecryptfs_fill_auth_tok()
74 auth_tok->token.password.flags &= ~(ECRYPTFS_PERSISTENT_PASSWORD); in ecryptfs_fill_auth_tok()