Home
last modified time | relevance | path

Searched full:encryption (Results 1 – 25 of 667) sorted by relevance

12345678910>>...27

/linux/Documentation/block/
H A Dinline-encryption.rst6 Inline Encryption
12 Inline encryption hardware sits logically between memory and disk, and can
14 can control exactly how the inline encryption hardware will en/decrypt the data
18 Some inline encryption hardware accepts all encryption parameters including raw
19 keys directly in low-level I/O requests. However, most inline encryption
24 Note that inline encryption hardware is very different from traditional crypto
26 crypto accelerators operate on memory regions, whereas inline encryption
27 hardware operates on I/O requests. Thus, inline encryption hardware needs to be
30 Inline encryption hardware is also very different from "self-encrypting drives",
32 drives don't provide fine-grained control of encryption and provide no way to
[all …]
/linux/Documentation/filesystems/
H A Dfscrypt.rst2 Filesystem-level encryption (fscrypt)
9 transparent encryption of files and directories.
15 use encryption, see the documentation for the userspace tool `fscrypt
20 <https://source.android.com/security/encryption/file-based>`_, over
56 Provided that userspace chooses a strong encryption key, fscrypt
72 fscrypt (and storage encryption in general) can only provide limited
80 Cryptographic API algorithms or inline encryption hardware are. If a
89 After an encryption key has been added, fscrypt does not hide the
97 encryption but rather only by the correctness of the kernel.
98 Therefore, any encryption-specific access control checks would merely
[all …]
/linux/Documentation/arch/x86/
H A Damd-memory-encryption.rst4 AMD Memory Encryption
7 Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV) are
23 A page is encrypted when a page table entry has the encryption bit set (see
24 below on how to determine its position). The encryption bit can also be
26 successive level of page tables can also be encrypted by setting the encryption
29 encryption bit is set in cr3, doesn't imply the full hierarchy is encrypted.
30 Each page table entry in the hierarchy needs to have the encryption bit set to
31 achieve that. So, theoretically, you could have the encryption bit set in cr3
32 so that the PGD is encrypted, but not set the encryption bit in the PGD entry
38 memory. Since the memory encryption bit is controlled by the guest OS when it
[all …]
/linux/include/linux/
H A Dcc_platform.h24 * @CC_ATTR_MEM_ENCRYPT: Memory encryption is active
26 * The platform/OS is running with active memory encryption. This
28 * and actively using memory encryption or as a guest/virtual machine
29 * and actively using memory encryption.
36 * @CC_ATTR_HOST_MEM_ENCRYPT: Host memory encryption is active
39 * and actively using memory encryption.
46 * @CC_ATTR_GUEST_MEM_ENCRYPT: Guest memory encryption is active
49 * using memory encryption.
56 * @CC_ATTR_GUEST_STATE_ENCRYPT: Guest state encryption is active
59 * using memory encryption and register state encryption.
H A Dblk-crypto-profile.h15 * struct blk_crypto_ll_ops - functions to control inline encryption hardware
17 * Low-level operations for controlling inline encryption hardware. This
19 * encryption. All functions may sleep, are serialized by profile->lock, and
25 * @keyslot_program: Program a key into the inline encryption hardware.
27 * Program @key into the specified @slot in the inline encryption
42 * @keyslot_evict: Evict a key from the inline encryption hardware.
63 * struct blk_crypto_profile - inline encryption profile for a device
65 * This struct contains a storage device's inline encryption capabilities (e.g.
67 * inline encryption hardware (e.g. programming and evicting keys), and optional
75 * @ll_ops: Driver-provided functions to control the inline encryption
H A Dfscrypt.h3 * fscrypt.h: declarations for per-file encryption
5 * Filesystems that implement per-file encryption must include this header
23 * This is needed to ensure that all contents encryption modes will work, as
29 * compression), then it will need to pad to this alignment before encryption.
67 * first time an encryption key is set up for a file. The bounce page
78 * If set, then fs/crypto/ will allow the use of encryption settings
82 * if the filesystem wants to support inline encryption hardware that is
165 * encryption without the possibility of files becoming unreadable.
188 * external journal devices), and wants to support inline encryption,
211 * contents encryption
[all …]
H A Dblk-crypto.h22 * struct blk_crypto_config - an inline encryption key's crypto configuration
23 * @crypto_mode: encryption algorithm this key is for
24 * @data_unit_size: the data unit size for all encryption/decryptions with this
37 * struct blk_crypto_key - an inline encryption key
59 * struct bio_crypt_ctx - an inline encryption context
117 * bio_crypt_clone - clone bio encryption context
122 * If @src has an encryption context, clone it to @dst.
/linux/arch/x86/mm/
H A Dmem_encrypt_boot.S3 * AMD Memory Encryption Support
26 * RCX - virtual address of the encryption workarea, including:
28 * - encryption routine page (PAGE_SIZE)
30 * R8 - physical address of the pagetables to use for encryption
39 addq $PAGE_SIZE, %rax /* Workarea encryption routine */
46 /* Copy encryption routine into the workarea */
47 movq %rax, %rdi /* Workarea encryption routine */
48 leaq __enc_copy(%rip), %rsi /* Encryption routine */
49 movq $(.L__enc_copy_end - __enc_copy), %rcx /* Encryption routine length */
55 movq %r8, %rdx /* Pagetables used for encryption */
[all …]
H A Dmem_encrypt_amd.c3 * AMD Memory Encryption Support
49 /* Buffer used for early in-place encryption by BSP, no locking needed */
83 * This routine does not change the underlying encryption setting of the
162 /* Use early_pmd_flags but remove the encryption mask */ in __sme_early_map_unmap_mem()
290 * to invalidate the memory before encryption attribute is cleared. in amd_enc_status_change_prepare()
357 /* Change the page encryption mask. */ in __set_clr_pte_enc()
401 * the number of pages to set/clear encryption bit is smaller in early_set_memory_enc_dec()
463 /* Update the protection map with memory encryption mask */ in sme_early_init()
531 * If the unused memory range was mapped decrypted, change the encryption in mem_encrypt_free_decrypted_mem()
533 * re-encryption on the same condition used for the decryption in in mem_encrypt_free_decrypted_mem()
H A Dmem_encrypt.c3 * Memory Encryption Support Common Code
31 * encryption mask. in force_dma_unencrypted()
47 pr_info("Memory Encryption Features active: "); in print_mem_encrypt_feature_info()
56 /* Secure Memory Encryption */ in print_mem_encrypt_feature_info()
/linux/fs/crypto/
H A DKconfig3 bool "FS Encryption (Per-file encryption)"
10 Enable encryption of files and directories. This
16 # Filesystems supporting encryption must select this if FS_ENCRYPTION. This
20 # Note: this option only pulls in the algorithms that filesystem encryption
21 # needs "by default". If userspace will use "non-default" encryption modes such
22 # as Adiantum encryption, then those other modes need to be explicitly enabled
46 Enable fscrypt to use inline encryption hardware if available.
H A Dfscrypt_private.h26 * absolute minimum, which applies when only 128-bit encryption is used.
57 * fscrypt_context - the encryption context of an inode
61 * fields from the fscrypt_policy, in order to identify the encryption algorithm
130 /* Return the contents encryption mode of a valid encryption policy */
143 /* Return the filenames encryption mode of a valid encryption policy */
156 /* Return the flags (FSCRYPT_POLICY_FLAG*) of a valid encryption policy */
199 * struct fscrypt_prepared_key - a key prepared for actual encryption/decryption
213 * fscrypt_inode_info - the "encryption key" for an inode
221 /* The key in a form prepared for actual encryption/decryption */
229 * True if this inode will use inline encryption (blk-crypto) instead of
[all …]
H A Dpolicy.c3 * Encryption policy functions for per-file encryption support.
21 * fscrypt_policies_equal() - check whether two encryption policies are the same
64 * Return %true if the given combination of encryption modes is supported for v1
65 * (and later) encryption policies.
67 * Do *not* add anything new here, since v1 encryption policies are deprecated.
132 * IV_INO_LBLK_* with other encryption modes arises. in supported_iv_ino_lblk_policy()
187 "Unsupported encryption modes (contents %d, filenames %d)", in fscrypt_supported_v1_policy()
195 fscrypt_warn(inode, "Unsupported encryption flags (0x%02x)", in fscrypt_supported_v1_policy()
223 "Unsupported encryption modes (contents %d, filenames %d)", in fscrypt_supported_v2_policy()
233 fscrypt_warn(inode, "Unsupported encryption flags (0x%02x)", in fscrypt_supported_v2_policy()
[all …]
H A Dhooks.c5 * Encryption hooks for higher-level filesystem operations.
15 * Currently, an encrypted regular file can only be opened if its encryption key
17 * Therefore, we first set up the inode's encryption key (if not already done)
22 * encryption policy. This is needed as part of the enforcement that all files
23 * in an encrypted directory tree use the same encryption policy, as a
44 * encryption policy comparison, but it's expensive on multi-core in fscrypt_file_open()
63 "Inconsistent encryption context (parent directory: %lu)", in fscrypt_file_open()
137 * filesystems that handle filename encryption and no-key name encoding
139 * fscrypt_prepare_lookup(), this will try to set up the directory's encryption
143 * Return: 0 on success; -errno on error. Note that the encryption key being
[all …]
H A Dkeysetup.c3 * Key setup facility for FS encryption support.
93 …WARN_ONCE(1, "fscrypt: filesystem tried to load encryption info for inode %lu, which is not encryp… in select_encryption_mode()
98 /* Create a symmetric cipher object for the given encryption mode and key */
146 * raw key, encryption mode (@ci->ci_mode), flag indicating which encryption
180 /* Given a per-file encryption key, set up the file's crypto transform object */
341 * DIRECT_KEY: instead of deriving per-file encryption keys, the in fscrypt_setup_v2_file_key()
345 * encryption key. This ensures that the master key is in fscrypt_setup_v2_file_key()
353 * IV_INO_LBLK_64: encryption keys are derived from (master_key, in fscrypt_setup_v2_file_key()
356 * encryption hardware compliant with the UFS standard. in fscrypt_setup_v2_file_key()
392 * encryption settings which a particular file will use (@ci).
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-crypt.rst5 Device-Mapper's "crypt" target provides transparent encryption of block devices
17 Encryption cipher, encryption mode and Initial Vector (IV) generator.
52 Key used for encryption. It is encoded either as a hexadecimal number
66 The encryption key size in bytes. The kernel key payload size must match
112 Perform encryption using the same cpu that IO was submitted on.
113 The default is to use an unbound workqueue so that encryption work
122 Disable offloading writes to a separate thread after encryption.
124 encryption threads to a single thread degrades performance
144 For Authenticated Encryption with Additional Data (AEAD)
150 Use <bytes> as the encryption unit instead of 512 bytes sectors.
[all …]
/linux/drivers/crypto/
H A Dsa2ul.h72 #define SA_ENG_ID_EM2 3 /* Encryption/Decryption enginefor pass 2 */
113 #define SA_CTX_ENC_TYPE1_SZ 64 /* Encryption SC with Key only */
114 #define SA_CTX_ENC_TYPE2_SZ 96 /* Encryption SC with Key and Aux1 */
126 * Bit 2-3: Fetch Encryption/Air Ciphering Bytes
231 * @submode: Encryption submodes
232 * @enc_size: Size of first pass encryption size
233 * @enc_size2: Size of second pass encryption size
234 * @enc_offset: Encryption payload offset in the packet
235 * @enc_iv: Encryption initialization vector for pass2
236 * @enc_iv2: Encryption initialization vector for pass2
[all …]
/linux/crypto/
H A DKconfig328 tristate "AES (Advanced Encryption Standard)"
346 tristate "AES (Advanced Encryption Standard) (fixed time)"
356 solely on encryption (although decryption is supported as well, but
359 Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
386 ARIA is a standard encryption algorithm of the Republic of Korea.
445 CAST6 (CAST-256) encryption algorithm (RFC2612)
452 DES (Data Encryption Standard)(FIPS 46-2, ISO/IEC 18033-3) and
488 national standard encryption algorithm of the Republic of Korea.
540 TEA (Tiny Encryption Algorithm) cipher algorithms
542 Tiny Encryption Algorithm is a simple cipher that uses
[all …]
/linux/net/sunrpc/
H A DKconfig45 Choose Y to enable the use of Kerberos 5 encryption types
46 that utilize Advanced Encryption Standard (AES) ciphers and
51 bool "Enable Kerberos encryption types based on Camellia and CMAC"
57 Choose Y to enable the use of Kerberos 5 encryption types
70 Choose Y to enable the use of Kerberos 5 encryption types
71 that utilize Advanced Encryption Standard (AES) ciphers and
/linux/Documentation/crypto/
H A Ddescore-readme.rst5 Fast & Portable DES encryption & decryption
15 des - fast & portable DES encryption & decryption.
41 1. Highest possible encryption/decryption PERFORMANCE.
62 - 30us per encryption (options: 64k tables, no IP/FP)
63 - 33us per encryption (options: 64k tables, FIPS standard bit ordering)
64 - 45us per encryption (options: 2k tables, no IP/FP)
65 - 48us per encryption (options: 2k tables, FIPS standard bit ordering)
68 this has the quickest encryption/decryption routines i've seen.
80 - 53us per encryption (uses 2k of tables)
85 encryption/decryption is still slower on the sparc and 68000.
[all …]
H A Dapi-aead.rst1 Authenticated Encryption With Associated Data (AEAD) Algorithm Definitions
5 :doc: Authenticated Encryption With Associated Data (AEAD) Cipher API
10 Authenticated Encryption With Associated Data (AEAD) Cipher API
/linux/Documentation/virt/kvm/x86/
H A Damd-memory-encryption.rst31 Bit[23] 1 = memory encryption can be enabled
32 0 = memory encryption can not be enabled
35 Bit[0] 1 = memory encryption can be enabled
36 0 = memory encryption can not be enabled
45 SEV hardware uses ASIDs to associate a memory encryption key with a VM.
132 The KVM_SEV_LAUNCH_START command is used for creating the memory encryption
133 context. To create the encryption context, user must provide a guest policy,
336 outgoing guest encryption context.
367 outgoing guest memory region with the encryption context creating using
395 issued by the hypervisor to delete the encryption context.
[all …]
/linux/include/crypto/
H A Daead.h3 * AEAD: Authenticated Encryption with Associated Data
18 * DOC: Authenticated Encryption With Associated Data (AEAD) Cipher API
23 * The most prominent examples for this type of encryption is GCM and CCM.
35 * associated data memory location before performing the encryption or
50 * during encryption (resp. decryption). The authentication tag is generated
51 * during the encryption operation and appended to the ciphertext. During
55 * In-place encryption/decryption is enabled by using the same scatterlist
115 * during encryption or the size of the authentication tag to be
274 * data returned by the encryption or decryption operation
348 * IMPORTANT NOTE The encryption operation creates the authentication data /
[all …]
/linux/arch/s390/include/uapi/asm/
H A Dtape390.h4 * enables user programs to display messages and control encryption
40 * Tape encryption support
68 * The TAPE390_CRYPT_SET ioctl is used to switch on/off encryption.
74 * The TAPE390_CRYPT_QUERY ioctl is used to query the encryption state.
/linux/drivers/crypto/aspeed/
H A DKconfig7 throughput of hash data digest, encryption and decryption.
45 Supports AES/DES symmetric-key encryption and decryption
56 Supports 256 bits to 4096 bits RSA encryption/decryption

12345678910>>...27