Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 623) sorted by relevance

12345678910>>...25

/arch/powerpc/crypto/
A Daesp10-ppc.pl174 lvsr $key,0,r9 # borrow $key
180 le?vxor $key,$key,$mask # adjust for byte swap
206 vcipherlast $key,$key,$rcon
226 vcipherlast $key,$key,$rcon
243 vcipherlast $key,$key,$rcon
274 vspltisb $key,8 # borrow $key
281 vcipherlast $key,$key,$rcon
304 vcipherlast $key,$key,$rcon
358 vcipherlast $key,$key,$rcon
379 vsbox $key,$key
[all …]
A Daesp8-ppc.h6 u8 key[AES_MAX_KEYLENGTH]; member
17 struct aes_key *key);
19 struct aes_key *key);
20 void aes_p8_encrypt(const u8 *in, u8 *out, const struct aes_key *key);
21 void aes_p8_decrypt(const u8 *in, u8 *out, const struct aes_key *key);
23 const struct aes_key *key, u8 *iv, const int enc);
25 size_t len, const struct aes_key *key,
/arch/riscv/include/asm/
A Djump_label.h19 #define JUMP_TABLE_ENTRY(key, label) \ argument
23 "" RISCV_PTR " " key " - . \n\t" \
27 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
34 JUMP_TABLE_ENTRY(key, label)
36 static __always_inline bool arch_static_branch(struct static_key * const key, in arch_static_branch() argument
41 : : "i"(&((char *)key)[branch]) : : label); in arch_static_branch()
48 #define ARCH_STATIC_BRANCH_JUMP_ASM(key, label) \ argument
55 JUMP_TABLE_ENTRY(key, label)
57 static __always_inline bool arch_static_branch_jump(struct static_key * const key, in arch_static_branch_jump() argument
62 : : "i"(&((char *)key)[branch]) : : label); in arch_static_branch_jump()
A Dhwprobe.h13 static inline bool riscv_hwprobe_key_is_valid(__s64 key) in riscv_hwprobe_key_is_valid() argument
15 return key >= 0 && key <= RISCV_HWPROBE_MAX_KEY; in riscv_hwprobe_key_is_valid()
18 static inline bool hwprobe_key_is_bitmask(__s64 key) in hwprobe_key_is_bitmask() argument
20 switch (key) { in hwprobe_key_is_bitmask()
35 if (pair->key != other_pair->key) in riscv_hwprobe_pair_cmp()
38 if (hwprobe_key_is_bitmask(pair->key)) in riscv_hwprobe_pair_cmp()
/arch/x86/include/asm/
A Djump_label.h15 #define JUMP_TABLE_ENTRY(key, label) \ argument
20 _ASM_PTR " " key " - . \n\t" \
25 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
27 JUMP_TABLE_ENTRY(key " + 2", label)
29 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
31 JUMP_TABLE_ENTRY(key, label)
34 static __always_inline bool arch_static_branch(struct static_key * const key, const bool branch) in arch_static_branch() argument
37 : : "i" (key), "i" (branch) : : l_yes); in arch_static_branch()
44 static __always_inline bool arch_static_branch_jump(struct static_key * const key, const bool branc… in arch_static_branch_jump() argument
49 : : "i" (key), "i" (branch) : : l_yes); in arch_static_branch_jump()
A Dmman.h6 #define arch_calc_vm_prot_bits(prot, key) ( \ argument
7 ((key) & 0x1 ? VM_PKEY_BIT0 : 0) | \
8 ((key) & 0x2 ? VM_PKEY_BIT1 : 0) | \
9 ((key) & 0x4 ? VM_PKEY_BIT2 : 0) | \
10 ((key) & 0x8 ? VM_PKEY_BIT3 : 0))
/arch/sparc/crypto/
A Daes_glue.c37 void (*load_encrypt_keys)(const u64 *key);
38 void (*load_decrypt_keys)(const u64 *key);
53 u64 key[AES_MAX_KEYLENGTH / sizeof(u64)]; member
230 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ecb_encrypt()
232 ctx->ops->ecb_encrypt(&ctx->key[0], walk.src.virt.addr, in ecb_encrypt()
254 ctx->ops->load_decrypt_keys(&ctx->key[0]); in ecb_decrypt()
279 ctx->ops->load_encrypt_keys(&ctx->key[0]); in cbc_encrypt()
281 ctx->ops->cbc_encrypt(&ctx->key[0], walk.src.virt.addr, in cbc_encrypt()
304 ctx->ops->load_decrypt_keys(&ctx->key[0]); in cbc_decrypt()
345 ctx->ops->load_encrypt_keys(&ctx->key[0]); in ctr_crypt()
[all …]
A Dcamellia_glue.c82 const u64 *key);
93 const u64 *key; in __ecb_crypt() local
106 key = &ctx->encrypt_key[0]; in __ecb_crypt()
108 key = &ctx->decrypt_key[0]; in __ecb_crypt()
109 camellia_sparc64_load_keys(key, ctx->key_len); in __ecb_crypt()
130 const u64 *key, u64 *iv);
143 const u64 *key; in cbc_encrypt() local
155 key = &ctx->encrypt_key[0]; in cbc_encrypt()
156 camellia_sparc64_load_keys(key, ctx->key_len); in cbc_encrypt()
172 const u64 *key; in cbc_decrypt() local
[all …]
/arch/s390/lib/
A Duaccess.c41 unsigned short key : 4; member
49 unsigned short key : 4; member
64 .oac2.key = key, in raw_copy_from_user_key()
92 unsigned long n, unsigned long key) in _copy_from_user_key() argument
113 .oac1.key = key, in raw_copy_to_user_key()
141 unsigned long n, unsigned long key) in _copy_to_user_key() argument
147 return raw_copy_to_user_key(to, from, n, key); in _copy_to_user_key()
196 : [key] "%[count]" (key << 4), in __cmpxchg_user_key_small()
264 [key] "a" (key << 4), in __cmpxchg_user_key4()
296 [key] "a" (key << 4), in __cmpxchg_user_key8()
[all …]
/arch/loongarch/include/asm/
A Djump_label.h17 #define JUMP_TABLE_ENTRY(key, label) \ argument
21 ".quad " key " - . \n\t" \
24 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
26 JUMP_TABLE_ENTRY(key, label)
28 static __always_inline bool arch_static_branch(struct static_key * const key, const bool branch) in arch_static_branch() argument
32 : : "i"(&((char *)key)[branch]) : : l_yes); in arch_static_branch()
40 static __always_inline bool arch_static_branch_jump(struct static_key * const key, const bool branc… in arch_static_branch_jump() argument
45 : : "i"(&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
/arch/arm64/include/asm/
A Djump_label.h19 #define JUMP_TABLE_ENTRY(key, label) \ argument
23 ".quad " key " - .\n\t" \
27 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
29 JUMP_TABLE_ENTRY(key, label)
31 static __always_inline bool arch_static_branch(struct static_key * const key, in arch_static_branch() argument
34 char *k = &((char *)key)[branch]; in arch_static_branch()
46 static __always_inline bool arch_static_branch_jump(struct static_key * const key, in arch_static_branch_jump() argument
49 char *k = &((char *)key)[branch]; in arch_static_branch_jump()
/arch/x86/boot/
A Dvideo.c102 int key; in get_entry() local
106 key = getchar(); in get_entry()
108 if (key == '\b') { in get_entry()
113 } else if ((key >= '0' && key <= '9') || in get_entry()
114 (key >= 'A' && key <= 'Z') || in get_entry()
115 (key >= 'a' && key <= 'z')) { in get_entry()
118 putchar(key); in get_entry()
131 v += (key > '9') ? key-'a'+10 : key-'0'; in get_entry()
202 int key; in mode_menu() local
211 if (key == ' ' || key == 0) in mode_menu()
[all …]
/arch/arm/include/asm/
A Djump_label.h13 #define ARCH_STATIC_BRANCH_ASM(key, label) \ argument
17 ".word 1b, " label ", " key "\n\t" \
20 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
23 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
30 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
37 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
49 jump_label_t key; member
/arch/x86/crypto/
A Daesni-intel_glue.c397 err = xts_verify_key(tfm, key, keylen); in xts_setkey_aesni()
527 aesni_xts_enc(key, dst, src, len, tweak); in aesni_xts_encrypt()
534 aesni_xts_dec(key, dst, src, len, tweak); in aesni_xts_decrypt()
687 (*ctr64_func)(key, walk.src.virt.addr, in ctr_crypt()
698 (*ctr64_func)(key, walk.src.virt.addr, in ctr_crypt()
874 #define AES_GCM_KEY_AESNI(key) \ argument
900 #define AES_GCM_KEY_AVX10(key) \ argument
1027 aes_gcm_update(const struct aes_gcm_key *key, in aes_gcm_update() argument
1082 aes_gcm_enc_final(const struct aes_gcm_key *key, in aes_gcm_enc_final() argument
1219 aesni_set_key(&key->aes_key, raw_key, keylen); in gcm_setkey()
[all …]
/arch/sparc/include/asm/
A Djump_label.h11 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
20 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
27 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
36 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
48 jump_label_t key; member
/arch/xtensa/include/asm/
A Djump_label.h13 static __always_inline bool arch_static_branch(struct static_key *key, in arch_static_branch() argument
21 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
28 static __always_inline bool arch_static_branch_jump(struct static_key *key, in arch_static_branch_jump() argument
49 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
61 jump_label_t key; member
/arch/arc/include/asm/
A Djump_label.h31 static __always_inline bool arch_static_branch(struct static_key *key, in arch_static_branch() argument
40 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
47 static __always_inline bool arch_static_branch_jump(struct static_key *key, in arch_static_branch_jump() argument
56 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
68 jump_label_t key; member
/arch/riscv/kernel/vdso/
A Dhwprobe.c35 if (riscv_hwprobe_key_is_valid(p->key)) { in riscv_vdso_get_values()
36 p->value = avd->all_cpu_hwprobe_values[p->key]; in riscv_vdso_get_values()
39 p->key = -1; in riscv_vdso_get_values()
75 if (riscv_hwprobe_key_is_valid(p->key)) { in riscv_vdso_get_cpus()
77 .key = p->key, in riscv_vdso_get_cpus()
78 .value = avd->all_cpu_hwprobe_values[p->key], in riscv_vdso_get_cpus()
85 p->key = -1; in riscv_vdso_get_cpus()
A Dvgetrandom-chacha.S35 #define key a1 macro
112 lw state4, (key)
113 lw state5, 4(key)
114 lw state6, 8(key)
178 lw state0, (key)
179 lw state1, 4(key)
180 lw state2, 8(key)
181 lw state3, 12(key)
191 lw state0, 16(key)
192 lw state1, 20(key)
[all …]
/arch/riscv/kernel/
A Dsys_hwprobe.c33 switch (pair->key) { in hwprobe_arch_id()
258 switch (pair->key) { in hwprobe_one_pair()
319 pair->key = -1; in hwprobe_one_pair()
366 if (get_user(pair.key, &pairs->key)) in hwprobe_get_values()
371 ret = put_user(pair.key, &pairs->key); in hwprobe_get_values()
431 tmp = (struct riscv_hwprobe){ .key = pair.key, }; in hwprobe_get_cpus()
475 int key; in init_hwprobe_vdso_data() local
481 for (key = 0; key <= RISCV_HWPROBE_MAX_KEY; key++) { in init_hwprobe_vdso_data()
482 pair.key = key; in init_hwprobe_vdso_data()
485 WARN_ON_ONCE(pair.key < 0); in init_hwprobe_vdso_data()
[all …]
/arch/powerpc/boot/
A Dplanetcore.c38 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument
40 int keylen = strlen(key); in planetcore_get_key()
43 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
52 int planetcore_get_decimal(const char *table, const char *key, u64 *val) in planetcore_get_decimal() argument
54 const char *str = planetcore_get_key(table, key); in planetcore_get_decimal()
62 int planetcore_get_hex(const char *table, const char *key, u64 *val) in planetcore_get_hex() argument
64 const char *str = planetcore_get_key(table, key); in planetcore_get_hex()
/arch/powerpc/platforms/powernv/
A Dopal-secvar.c57 static int opal_get_variable(const char *key, u64 ksize, u8 *data, u64 *dsize) in opal_get_variable() argument
61 if (!key || !dsize) in opal_get_variable()
66 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable()
73 static int opal_get_next_variable(const char *key, u64 *keylen, u64 keybufsize) in opal_get_next_variable() argument
77 if (!key || !keylen) in opal_get_next_variable()
82 rc = opal_secvar_get_next(key, keylen, keybufsize); in opal_get_next_variable()
89 static int opal_set_variable(const char *key, u64 ksize, u8 *data, u64 dsize) in opal_set_variable() argument
93 if (!key || !data) in opal_set_variable()
96 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
/arch/s390/crypto/
A Dghash_s390.c21 u8 key[GHASH_BLOCK_SIZE]; member
26 u8 key[GHASH_BLOCK_SIZE]; member
35 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init()
41 const u8 *key, unsigned int keylen) in ghash_setkey() argument
48 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey()
100 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_import()
/arch/powerpc/platforms/pseries/
A Dplpks_sed_ops.c31 u_char key[32]; member
70 int sed_read_key(char *keyname, char *key, u_int *keylen) in sed_read_key() argument
90 memcpy(key, data.key, len); in sed_read_key()
91 key[len] = '\0'; in sed_read_key()
100 int sed_write_key(char *keyname, char *key, u_int keylen) in sed_write_key() argument
120 memcpy(data.key, (char *)key, keylen); in sed_write_key()
/arch/loongarch/vdso/
A Dvgetrandom-chacha.S36 #define key a1 macro
113 ld.w state4, key, 0
114 ld.w state5, key, 4
115 ld.w state6, key, 8
116 ld.w state7, key, 12
117 ld.w state8, key, 16
118 ld.w state9, key, 20
179 ld.w state0, key, 0
180 ld.w state1, key, 4
181 ld.w state2, key, 8
[all …]

Completed in 648 milliseconds

12345678910>>...25