Home
last modified time | relevance | path

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

12345678910>>...12

/arch/sparc/crypto/
Daes_glue.c36 void (*encrypt)(const u64 *key, const u32 *input, u32 *output);
37 void (*decrypt)(const u64 *key, const u32 *input, u32 *output);
38 void (*load_encrypt_keys)(const u64 *key);
39 void (*load_decrypt_keys)(const u64 *key);
40 void (*ecb_encrypt)(const u64 *key, const u64 *input, u64 *output,
42 void (*ecb_decrypt)(const u64 *key, const u64 *input, u64 *output,
44 void (*cbc_encrypt)(const u64 *key, const u64 *input, u64 *output,
46 void (*cbc_decrypt)(const u64 *key, const u64 *input, u64 *output,
48 void (*ctr_crypt)(const u64 *key, const u64 *input, u64 *output,
54 u64 key[AES_MAX_KEYLENGTH / sizeof(u64)]; member
[all …]
Dcamellia_glue.c59 extern void camellia_sparc64_crypt(const u64 *key, const u32 *input,
80 extern void camellia_sparc64_load_keys(const u64 *key, unsigned int key_len);
83 const u64 *key);
94 const u64 *key; in __ecb_crypt() local
107 key = &ctx->encrypt_key[0]; in __ecb_crypt()
109 key = &ctx->decrypt_key[0]; in __ecb_crypt()
110 camellia_sparc64_load_keys(key, ctx->key_len); in __ecb_crypt()
113 round_down(nbytes, CAMELLIA_BLOCK_SIZE), key); in __ecb_crypt()
131 const u64 *key, u64 *iv);
144 const u64 *key; in cbc_encrypt() local
[all …]
Ddes_glue.c43 extern void des_sparc64_key_expand(const u32 *input_key, u64 *key);
45 static int des_set_key(struct crypto_tfm *tfm, const u8 *key, in des_set_key() argument
55 err = crypto_des_verify_key(tfm, key); in des_set_key()
59 des_sparc64_key_expand((const u32 *) key, &dctx->encrypt_expkey[0]); in des_set_key()
65 static int des_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_set_key_skcipher() argument
68 return des_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des_set_key_skcipher()
71 extern void des_sparc64_crypt(const u64 *key, const u64 *input,
90 extern void des_sparc64_load_keys(const u64 *key);
181 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key, in des3_ede_set_key() argument
190 err = crypto_des3_ede_verify_key(tfm, key); in des3_ede_set_key()
[all …]
/arch/x86/boot/
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()
117 entry_buf[len++] = key; in get_entry()
118 putchar(key); in get_entry()
121 } while (key != '\r'); in get_entry()
130 key = entry_buf[i] | 0x20; in get_entry()
[all …]
/arch/x86/include/asm/
Djump_label.h25 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
30 : : "i" (key), "i" (2 | branch) : : l_yes); in arch_static_branch()
39 static __always_inline bool arch_static_branch(struct static_key * const key, const bool branch) in arch_static_branch() argument
44 : : "i" (key), "i" (branch) : : l_yes); in arch_static_branch()
53 static __always_inline bool arch_static_branch_jump(struct static_key * const key, const bool branc… in arch_static_branch_jump() argument
58 : : "i" (key), "i" (branch) : : l_yes); in arch_static_branch_jump()
/arch/powerpc/platforms/powernv/
Dopal-secvar.c57 static int opal_get_variable(const char *key, uint64_t ksize, in opal_get_variable() argument
62 if (!key || !dsize) in opal_get_variable()
67 rc = opal_secvar_get(key, ksize, data, dsize); in opal_get_variable()
74 static int opal_get_next_variable(const char *key, uint64_t *keylen, in opal_get_next_variable() argument
79 if (!key || !keylen) in opal_get_next_variable()
84 rc = opal_secvar_get_next(key, keylen, keybufsize); in opal_get_next_variable()
91 static int opal_set_variable(const char *key, uint64_t ksize, u8 *data, in opal_set_variable() argument
96 if (!key || !data) in opal_set_variable()
99 rc = opal_secvar_enqueue_update(key, ksize, data, dsize); in opal_set_variable()
/arch/x86/include/uapi/asm/
Dmman.h22 #define arch_calc_vm_prot_bits(prot, key) ( \ argument
23 ((key) & 0x1 ? VM_PKEY_BIT0 : 0) | \
24 ((key) & 0x2 ? VM_PKEY_BIT1 : 0) | \
25 ((key) & 0x4 ? VM_PKEY_BIT2 : 0) | \
26 ((key) & 0x8 ? VM_PKEY_BIT3 : 0))
/arch/xtensa/include/asm/
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/sparc/include/asm/
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/arm/include/asm/
Djump_label.h12 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
19 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
26 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
33 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
45 jump_label_t key; member
/arch/arc/include/asm/
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/powerpc/boot/
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/mips/include/asm/
Djump_label.h35 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
42 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
49 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
55 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
71 jump_label_t key; member
/arch/arm/crypto/
Dghash-ce-glue.c62 struct ghash_key *key, const char *head) in ghash_do_update() argument
67 pmull_ghash_update_p64(blocks, dg, src, key->h, head); in ghash_do_update()
69 pmull_ghash_update_p8(blocks, dg, src, key->h, head); in ghash_do_update()
86 gf128mul_lle(&dst, &key->k); in ghash_do_update()
103 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update() local
117 ghash_do_update(blocks, ctx->digest, src, key, in ghash_update()
133 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final() local
136 ghash_do_update(1, ctx->digest, ctx->buf, key, NULL); in ghash_final()
159 struct ghash_key *key = crypto_shash_ctx(tfm); in ghash_setkey() local
165 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
[all …]
/arch/arm64/include/asm/
Djump_label.h18 static __always_inline bool arch_static_branch(struct static_key *key, in arch_static_branch() argument
28 : : "i"(&((char *)key)[branch]) : : l_yes); in arch_static_branch()
35 static __always_inline bool arch_static_branch_jump(struct static_key *key, in arch_static_branch_jump() argument
45 : : "i"(&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
/arch/riscv/include/asm/
Djump_label.h17 static __always_inline bool arch_static_branch(struct static_key *key, in arch_static_branch() argument
32 : : "i"(&((char *)key)[branch]) : : label); in arch_static_branch()
39 static __always_inline bool arch_static_branch_jump(struct static_key *key, in arch_static_branch_jump() argument
54 : : "i"(&((char *)key)[branch]) : : label); in arch_static_branch_jump()
/arch/parisc/include/asm/
Djump_label.h12 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
35 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
/arch/s390/crypto/
Ddes_s390.c32 u8 key[DES3_KEY_SIZE]; member
35 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() argument
41 err = crypto_des_verify_key(tfm, key); in des_setkey()
45 memcpy(ctx->key, key, key_len); in des_setkey()
49 static int des_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_setkey_skcipher() argument
52 return des_setkey(crypto_skcipher_tfm(tfm), key, key_len); in des_setkey_skcipher()
59 cpacf_km(CPACF_KM_DEA, ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_encrypt()
67 ctx->key, out, in, DES_BLOCK_SIZE); in s390_des_decrypt()
101 cpacf_km(fc, ctx->key, walk.dst.virt.addr, in ecb_desall_crypt()
117 u8 key[DES3_KEY_SIZE]; in cbc_desall_crypt() member
[all …]
Dpaes_s390.c53 u8 *key; member
59 const u8 *key, in _key_to_kb() argument
81 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb()
83 kb->key = kb->keybuf; in _key_to_kb()
88 kb->key = kb->keybuf; in _key_to_kb()
90 kb->key = kmalloc(keylen, GFP_KERNEL); in _key_to_kb()
91 if (!kb->key) in _key_to_kb()
94 memcpy(kb->key, key, keylen); in _key_to_kb()
104 if (kb->key && kb->key != kb->keybuf in _free_kb_keybuf()
106 kfree(kb->key); in _free_kb_keybuf()
[all …]
Dghash_s390.c20 u8 key[GHASH_BLOCK_SIZE]; member
25 u8 key[GHASH_BLOCK_SIZE]; member
36 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init()
42 const u8 *key, unsigned int keylen) in ghash_setkey() argument
49 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey()
/arch/s390/include/asm/
Djump_label.h25 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
33 : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label); in arch_static_branch()
39 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
47 : : JUMP_LABEL_STATIC_KEY_CONSTRAINT (key), "i" (branch) : : label); in arch_static_branch_jump()
/arch/powerpc/include/asm/
Djump_label.h18 static __always_inline bool arch_static_branch(struct static_key *key, bool branch) in arch_static_branch() argument
26 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch()
33 static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch) in arch_static_branch_jump() argument
41 : : "i" (&((char *)key)[branch]) : : l_yes); in arch_static_branch_jump()
Dsecvar.h17 int (*get)(const char *key, uint64_t key_len, u8 *data,
19 int (*get_next)(const char *key, uint64_t *key_len,
21 int (*set)(const char *key, uint64_t key_len, u8 *data,
/arch/arm/boot/dts/
Dexynos4412-smdk4412.dts74 key-1 {
80 key-2 {
86 key-3 {
92 key-4 {
98 key-5 {
104 key-A {
110 key-B {
116 key-C {
122 key-D {
128 key-E {
Dexynos4210-smdkv310.dts93 key-1 {
99 key-2 {
105 key-3 {
111 key-4 {
117 key-5 {
123 key-a {
129 key-b {
135 key-c {
141 key-d {
147 key-e {

12345678910>>...12