| /linux-6.15/fs/bcachefs/ |
| H A D | checksum.h | 81 struct nonce, struct bio *); 90 struct nonce, struct bio *); 93 struct nonce nonce, struct bio *bio) in bch2_encrypt_bio() argument 96 ? __bch2_encrypt_bio(c, type, nonce, bio) in bch2_encrypt_bio() 175 static inline struct nonce nonce_add(struct nonce nonce, unsigned offset) in nonce_add() argument 180 return nonce; in nonce_add() 185 struct nonce ret; in null_nonce() 198 struct nonce nonce = (struct nonce) {{ in extent_nonce() local 206 return nonce_add(nonce, crc.nonce << 9); in extent_nonce() 218 return (struct nonce) {{ in __bch2_sb_key_nonce() [all …]
|
| H A D | checksum.c | 95 const struct bch_key *key, struct nonce nonce) in bch2_chacha20_init() argument 109 static void bch2_chacha20(const struct bch_key *key, struct nonce nonce, in bch2_chacha20() argument 120 struct bch_fs *c, struct nonce nonce) in bch2_poly1305_init() argument 131 struct nonce nonce, const void *data, size_t len) in bch2_checksum() argument 169 struct nonce nonce, void *data, size_t len) in bch2_encrypt() argument 183 struct nonce nonce, struct bio *bio, in __bch2_checksum_bio() argument 248 struct nonce nonce, struct bio *bio) in bch2_checksum_bio() argument 256 struct nonce nonce, struct bio *bio) in __bch2_encrypt_bio() argument 323 struct nonce nonce = extent_nonce(version, crc_old); in bch2_rechecksum_bio() local 352 nonce = nonce_add(nonce, i->len << 9); in bch2_rechecksum_bio() [all …]
|
| H A D | btree_io.h | 92 static inline struct nonce btree_nonce(struct bset *i, unsigned offset) in btree_nonce() 94 return (struct nonce) {{ in btree_nonce() 104 struct nonce nonce = btree_nonce(i, offset); in bset_encrypt() local 111 ret = bch2_encrypt(c, BSET_CSUM_TYPE(i), nonce, in bset_encrypt() 116 nonce = nonce_add(nonce, round_up(bytes, CHACHA_BLOCK_SIZE)); in bset_encrypt() 119 return bch2_encrypt(c, BSET_CSUM_TYPE(i), nonce, i->_data, in bset_encrypt()
|
| H A D | extents_format.h | 124 nonce:10, member 132 nonce:10, 150 nonce:13, member 156 nonce:13,
|
| /linux-6.15/include/trace/events/ |
| H A D | bpf_test_run.h | 12 TP_PROTO(int nonce), 14 TP_ARGS(nonce), 17 __field(int, nonce) 21 __entry->nonce = nonce; 24 TP_printk("nonce %d", __entry->nonce)
|
| /linux-6.15/include/crypto/ |
| H A D | chacha20poly1305.h | 20 const u64 nonce, 25 const u8 *ad, const size_t ad_len, const u64 nonce, 30 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], 35 const size_t ad_len, const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], 40 const u64 nonce, 45 const u64 nonce,
|
| /linux-6.15/lib/crypto/ |
| H A D | chacha20poly1305.c | 41 memcpy(iv + 8, nonce + 16, 8); in xchacha_init() 46 chacha_init(chacha_state, k, nonce); in xchacha_init() 91 const u64 nonce, in chacha20poly1305_encrypt() argument 101 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_encrypt() 169 const u64 nonce, in chacha20poly1305_decrypt() argument 180 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_decrypt() 210 const u64 nonce, in chacha20poly1305_crypt_sg_inplace() argument 241 b.iv[1] = cpu_to_le64(nonce); in chacha20poly1305_crypt_sg_inplace() 334 const u64 nonce, in chacha20poly1305_encrypt_sg_inplace() argument 338 nonce, key, 1); in chacha20poly1305_encrypt_sg_inplace() [all …]
|
| H A D | poly1305-donna64.c | 111 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit() 162 if (likely(nonce)) { in poly1305_core_emit() 164 t0 = ((u64)nonce[1] << 32) | nonce[0]; in poly1305_core_emit() 165 t1 = ((u64)nonce[3] << 32) | nonce[2]; in poly1305_core_emit()
|
| H A D | poly1305-donna32.c | 120 void poly1305_core_emit(const struct poly1305_state *state, const u32 nonce[4], in poly1305_core_emit() 188 if (likely(nonce)) { in poly1305_core_emit() 190 f = (u64)h0 + nonce[0]; in poly1305_core_emit() 192 f = (u64)h1 + nonce[1] + (f >> 32); in poly1305_core_emit() 194 f = (u64)h2 + nonce[2] + (f >> 32); in poly1305_core_emit() 196 f = (u64)h3 + nonce[3] + (f >> 32); in poly1305_core_emit()
|
| /linux-6.15/net/ceph/ |
| H A D | decode.c | 28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned() 63 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_legacy() 185 sizeof(addr->nonce) + in ceph_encode_entity_addr() 188 ceph_encode_copy(p, &addr->nonce, sizeof(addr->nonce)); in ceph_encode_entity_addr()
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | encodings.h | 96 nonce_t nonce; member 112 nonce_t nonce; member 154 __le64 nonce; member 336 __le64 nonce; member 476 nonce_t nonce; member 499 __le64 nonce; member 641 __le64 nonce; member 1023 .nonce = __cpu_to_le64(header->nonce), in vdo_pack_recovery_block_header() 1047 .nonce = __le64_to_cpu(packed->nonce), in vdo_unpack_recovery_block_header() 1177 packed->nonce = __cpu_to_le64(header->nonce); in vdo_pack_slab_journal_block_header() [all …]
|
| H A D | encodings.c | 253 nonce_t nonce; in decode_volume_geometry() local 261 decode_u64_le(buffer, offset, &nonce); in decode_volume_geometry() 262 geometry->nonce = nonce; in decode_volume_geometry() 335 struct block_map_page *vdo_format_block_map_page(void *buffer, nonce_t nonce, in vdo_format_block_map_page() argument 343 page->header.nonce = __cpu_to_le64(nonce); in vdo_format_block_map_page() 350 nonce_t nonce, in vdo_validate_block_map_page() argument 357 !page->header.initialized || (nonce != __le64_to_cpu(page->header.nonce))) in vdo_validate_block_map_page() 1107 .nonce = __cpu_to_le64(component.nonce), in pack_vdo_component() 1153 .nonce = __le64_to_cpu(component.nonce), in unpack_vdo_component_41_0() 1374 if (geometry_nonce != states->vdo.nonce) { in vdo_validate_component_states() [all …]
|
| /linux-6.15/include/net/ |
| H A D | amt.h | 117 __be32 nonce; member 132 __be32 nonce; member 152 __be32 nonce; member 173 __be32 nonce; member 190 __be32 nonce; member 249 __be32 nonce; member 356 __be32 nonce; member
|
| /linux-6.15/drivers/md/dm-vdo/indexer/ |
| H A D | config.c | 82 if (saved_config->nonce != user->nonce) { in are_matching_configurations() 84 (unsigned long long) saved_config->nonce, in are_matching_configurations() 85 (unsigned long long) user->nonce); in are_matching_configurations() 135 decode_u64_le(buffer, &offset, &config.nonce); in uds_validate_config_contents() 211 encode_u64_le(buffer, &offset, config->nonce); in uds_write_config_contents() 346 config->nonce = params->nonce; in uds_make_configuration() 375 vdo_log_debug(" Nonce: %llu", (unsigned long long) config->nonce); in uds_log_configuration()
|
| H A D | config.h | 43 u64 nonce; member 82 u64 nonce; member 108 u64 nonce; member
|
| H A D | index-layout.c | 131 u64 nonce; member 169 u64 nonce; member 178 u64 nonce; member 293 return hash_stuff(nonce + 1, data, len); in generate_secondary_nonce() 333 super->nonce = generate_primary_nonce(super->nonce_info, in generate_super_block_data() 352 u64 primary_nonce = layout->super.nonce; in define_sub_index_nonce() 359 if (sil->nonce == 0) { in define_sub_index_nonce() 529 encode_u64_le(buffer, &offset, isl->save_data.nonce); in write_index_save_header() 702 encode_u64_le(buffer, &offset, layout->super.nonce); in write_layout_header() 1194 decode_u64_le(buffer, &offset, &super->nonce); in read_super_block_data() [all …]
|
| /linux-6.15/security/keys/trusted-keys/ |
| H A D | trusted_dcp.c | 59 __u8 nonce[AES_KEYSIZE_128]; member 129 static int do_aead_crypto(u8 *in, u8 *out, size_t len, u8 *key, u8 *nonce, in do_aead_crypto() argument 166 aead_request_set_crypt(aead_req, &src_sg, &dst_sg, len, nonce); in do_aead_crypto() 215 get_random_bytes(b->nonce, AES_KEYSIZE_128); in trusted_dcp_seal() 219 b->nonce, true); in trusted_dcp_seal() 277 plain_blob_key, b->nonce, false); in trusted_dcp_unseal()
|
| /linux-6.15/drivers/crypto/nx/ |
| H A D | nx-aes-gcm.c | 67 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_set_key() local 79 memcpy(nonce, in_key + key_len, 4); in gcm4106_aes_nx_set_key() 437 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_encrypt() local 439 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN); in gcm4106_aes_nx_encrypt() 454 char *nonce = nx_ctx->priv.gcm.nonce; in gcm4106_aes_nx_decrypt() local 456 memcpy(iv, nonce, NX_GCM4106_NONCE_LEN); in gcm4106_aes_nx_decrypt()
|
| /linux-6.15/fs/crypto/ |
| H A D | policy.c | 112 if (mode->ivsize < offsetofend(union fscrypt_iv, nonce)) { in supported_direct_key_modes() 327 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE]) in fscrypt_new_context() 345 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context() 362 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context() 459 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in set_encryption_policy() local 497 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in set_encryption_policy() 498 ctxsize = fscrypt_new_context(&ctx, policy, nonce); in set_encryption_policy()
|
| H A D | fscrypt_private.h | 42 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member 53 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member 101 return ctx->v1.nonce; in fscrypt_context_nonce() 103 return ctx->v2.nonce; in fscrypt_context_nonce() 324 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; member
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | vce_v1_0.c | 47 uint32_t nonce[4]; member 190 data[0] = sign->val[i].nonce[0]; in vce_v1_0_load_fw() 191 data[1] = sign->val[i].nonce[1]; in vce_v1_0_load_fw() 192 data[2] = sign->val[i].nonce[2]; in vce_v1_0_load_fw() 193 data[3] = sign->val[i].nonce[3]; in vce_v1_0_load_fw()
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | poly1305_glue.c | 23 const u32 nonce[4]); 25 const u32 nonce[4]); 124 const u32 nonce[4]) in poly1305_simd_emit() 127 poly1305_emit_x86_64(ctx, mac, nonce); in poly1305_simd_emit() 129 poly1305_emit_avx(ctx, mac, nonce); in poly1305_simd_emit()
|
| /linux-6.15/drivers/crypto/caam/ |
| H A D | caamalg_desc.h | 60 u32 *nonce, const u32 ctx1_iv_off, 66 const bool is_rfc3686, u32 *nonce, 72 u32 *nonce, const u32 ctx1_iv_off,
|
| /linux-6.15/tools/crypto/ccp/ |
| H A D | dbc.c | 34 memcpy(nonce_out, tmp.nonce, sizeof(tmp.nonce)); in get_nonce()
|
| /linux-6.15/include/linux/ceph/ |
| H A D | msgr.h | 86 __le32 nonce; /* unique id for process (e.g. pid) */ member 94 lhs->nonce == rhs->nonce; in ceph_addr_equal_no_type()
|