Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 25 of 32) sorted by relevance

12

/arch/powerpc/platforms/powernv/
Dopal-secvar.c74 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()
82 *keylen = cpu_to_be64(*keylen); in opal_get_next_variable()
84 rc = opal_secvar_get_next(key, keylen, keybufsize); in opal_get_next_variable()
86 *keylen = be64_to_cpu(*keylen); in opal_get_next_variable()
/arch/powerpc/boot/
Dplanetcore.c40 int keylen = strlen(key); in planetcore_get_key() local
43 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
44 return table + keylen + 1; in planetcore_get_key()
/arch/s390/include/uapi/asm/
Dpkey.h216 __u32 keylen; /* in: the key blob length */ member
248 __u32 keylen; /* in: available key blob buffer size */ member
282 __u32 keylen; /* in: available key blob buffer size */ member
315 __u32 keylen; /* in: key blob size */ member
339 __u32 keylen; /* in: key blob size */ member
374 __u32 keylen; /* in: key blob size */ member
438 __u32 keylen; /* in: key blob size */ member
/arch/s390/crypto/
Dpaes_s390.c55 unsigned int keylen; member
60 unsigned int keylen) in _key_to_kb() argument
71 switch (keylen) { in _key_to_kb()
79 h->keytype = (keylen - 8) >> 3; in _key_to_kb()
80 h->len = keylen; in _key_to_kb()
81 memcpy(kb->keybuf + sizeof(*h), key, keylen); in _key_to_kb()
82 kb->keylen = sizeof(*h) + keylen; in _key_to_kb()
87 if (keylen <= sizeof(kb->keybuf)) in _key_to_kb()
90 kb->key = kmalloc(keylen, GFP_KERNEL); in _key_to_kb()
94 memcpy(kb->key, key, keylen); in _key_to_kb()
[all …]
Dghash_s390.c42 const u8 *key, unsigned int keylen) in ghash_setkey() argument
46 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
/arch/s390/include/asm/
Dpkey.h25 int pkey_keyblob2pkey(const u8 *key, u32 keylen,
/arch/x86/crypto/
Dcast6_avx_glue.c29 const u8 *key, unsigned int keylen) in cast6_setkey_skcipher() argument
31 return cast6_setkey(&tfm->base, key, keylen); in cast6_setkey_skcipher()
Dserpent_avx_glue.c36 const u8 *key, unsigned int keylen) in serpent_setkey_skcipher() argument
38 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
Dcast5_avx_glue.c29 unsigned int keylen) in cast5_setkey_skcipher() argument
31 return cast5_setkey(&tfm->base, key, keylen); in cast5_setkey_skcipher()
Dserpent_sse2_glue.c28 const u8 *key, unsigned int keylen) in serpent_setkey_skcipher() argument
30 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
Dtwofish_glue_3way.c22 const u8 *key, unsigned int keylen) in twofish_setkey_skcipher() argument
24 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher()
Dcamellia_aesni_avx_glue.c31 unsigned int keylen) in camellia_setkey() argument
33 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen); in camellia_setkey()
Dtwofish_avx_glue.c31 const u8 *key, unsigned int keylen) in twofish_setkey_skcipher() argument
33 return twofish_setkey(&tfm->base, key, keylen); in twofish_setkey_skcipher()
Dserpent_avx2_glue.c27 const u8 *key, unsigned int keylen) in serpent_setkey_skcipher() argument
29 return __serpent_setkey(crypto_skcipher_ctx(tfm), key, keylen); in serpent_setkey_skcipher()
Dcamellia_aesni_avx2_glue.c28 unsigned int keylen) in camellia_setkey() argument
30 return __camellia_setkey(crypto_skcipher_ctx(tfm), key, keylen); in camellia_setkey()
Dghash-clmulni-intel_glue.c55 const u8 *key, unsigned int keylen) in ghash_setkey() argument
60 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
254 unsigned int keylen) in ghash_async_setkey() argument
262 return crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()
Dcrc32-pclmul_glue.c93 unsigned int keylen) in crc32_pclmul_setkey() argument
97 if (keylen != sizeof(u32)) in crc32_pclmul_setkey()
Ddes3_ede_glue.c255 unsigned int keylen) in des3_ede_x86_setkey() argument
261 err = des3_ede_expand_key(&ctx->enc, key, keylen); in des3_ede_x86_setkey()
290 unsigned int keylen) in des3_ede_x86_setkey_skcipher() argument
292 return des3_ede_x86_setkey(&tfm->base, key, keylen); in des3_ede_x86_setkey_skcipher()
Dpolyval-clmulni_glue.c82 const u8 *key, unsigned int keylen) in polyval_x86_setkey() argument
87 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_x86_setkey()
Dcrc32c-intel_glue.c84 unsigned int keylen) in crc32c_intel_setkey() argument
88 if (keylen != sizeof(u32)) in crc32c_intel_setkey()
/arch/sparc/crypto/
Ddes_glue.c46 unsigned int keylen) in des_set_key() argument
66 unsigned int keylen) in des_set_key_skcipher() argument
68 return des_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des_set_key_skcipher()
182 unsigned int keylen) in des3_ede_set_key() argument
215 unsigned int keylen) in des3_ede_set_key_skcipher() argument
217 return des3_ede_set_key(crypto_skcipher_tfm(tfm), key, keylen); in des3_ede_set_key_skcipher()
Dcrc32c_glue.c32 unsigned int keylen) in crc32c_sparc64_setkey() argument
36 if (keylen != sizeof(u32)) in crc32c_sparc64_setkey()
/arch/powerpc/crypto/
Dcrc32c-vpmsum_glue.c72 unsigned int keylen) in crc32c_vpmsum_setkey() argument
76 if (keylen != sizeof(u32)) in crc32c_vpmsum_setkey()
/arch/arm64/crypto/
Dpolyval-ce-glue.c73 const u8 *key, unsigned int keylen) in polyval_arm64_setkey() argument
78 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_arm64_setkey()
/arch/arm/crypto/
Dghash-ce-glue.c157 const u8 *inkey, unsigned int keylen) in ghash_setkey() argument
161 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
290 unsigned int keylen) in ghash_async_setkey() argument
298 return crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()

12