Home
last modified time | relevance | path

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

12

/arch/arm64/crypto/
Dspeck-neon-glue.c116 unsigned int keylen) in speck128_xts_setkey() argument
121 if (keylen % 2) in speck128_xts_setkey()
124 keylen /= 2; in speck128_xts_setkey()
126 err = crypto_speck128_setkey(&ctx->main_key, key, keylen); in speck128_xts_setkey()
130 return crypto_speck128_setkey(&ctx->tweak_key, key + keylen, keylen); in speck128_xts_setkey()
226 unsigned int keylen) in speck64_xts_setkey() argument
231 if (keylen % 2) in speck64_xts_setkey()
234 keylen /= 2; in speck64_xts_setkey()
236 err = crypto_speck64_setkey(&ctx->main_key, key, keylen); in speck64_xts_setkey()
240 return crypto_speck64_setkey(&ctx->tweak_key, key + keylen, keylen); in speck64_xts_setkey()
Dghash-ce-glue.c104 const u8 *inkey, unsigned int keylen) in ghash_setkey() argument
109 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
Dcrc32-arm64.c116 unsigned int keylen) in chksum_setkey() argument
120 if (keylen != sizeof(mctx->key)) { in chksum_setkey()
/arch/arm/crypto/
Dspeck-neon-glue.c122 unsigned int keylen) in speck128_xts_setkey() argument
127 if (keylen % 2) in speck128_xts_setkey()
130 keylen /= 2; in speck128_xts_setkey()
132 err = crypto_speck128_setkey(&ctx->main_key, key, keylen); in speck128_xts_setkey()
136 return crypto_speck128_setkey(&ctx->tweak_key, key + keylen, keylen); in speck128_xts_setkey()
232 unsigned int keylen) in speck64_xts_setkey() argument
237 if (keylen % 2) in speck64_xts_setkey()
240 keylen /= 2; in speck64_xts_setkey()
242 err = crypto_speck64_setkey(&ctx->main_key, key, keylen); in speck64_xts_setkey()
246 return crypto_speck64_setkey(&ctx->tweak_key, key + keylen, keylen); in speck64_xts_setkey()
Dghash-ce-glue.c110 const u8 *inkey, unsigned int keylen) in ghash_setkey() argument
115 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
245 unsigned int keylen) in ghash_async_setkey() argument
254 err = crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()
/arch/powerpc/boot/
Dplanetcore.c43 int keylen = strlen(key); in planetcore_get_key() local
46 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
47 return table + keylen + 1; in planetcore_get_key()
/arch/x86/include/asm/crypto/
Dtwofish.h39 unsigned int keylen);
44 unsigned int keylen);
Dserpent-avx.h41 unsigned int keylen);
46 unsigned int keylen);
Dcamellia.h33 unsigned int keylen);
37 unsigned int keylen);
/arch/x86/crypto/
Dtwofish_glue_3way.c217 unsigned int keylen) in lrw_twofish_setkey() argument
222 err = __twofish_setkey(&ctx->twofish_ctx, key, keylen - TF_BLOCK_SIZE, in lrw_twofish_setkey()
227 return lrw_init_table(&ctx->lrw_table, key + keylen - TF_BLOCK_SIZE); in lrw_twofish_setkey()
274 unsigned int keylen) in xts_twofish_setkey() argument
280 err = xts_check_key(tfm, key, keylen); in xts_twofish_setkey()
285 err = __twofish_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); in xts_twofish_setkey()
290 return __twofish_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, in xts_twofish_setkey()
Dserpent_avx_glue.c256 unsigned int keylen) in lrw_serpent_setkey() argument
261 err = __serpent_setkey(&ctx->serpent_ctx, key, keylen - in lrw_serpent_setkey()
266 return lrw_init_table(&ctx->lrw_table, key + keylen - in lrw_serpent_setkey()
332 unsigned int keylen) in xts_serpent_setkey() argument
337 err = xts_check_key(tfm, key, keylen); in xts_serpent_setkey()
342 err = __serpent_setkey(&ctx->crypt_ctx, key, keylen / 2); in xts_serpent_setkey()
347 return __serpent_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2); in xts_serpent_setkey()
Dserpent_sse2_glue.c230 unsigned int keylen) in lrw_serpent_setkey() argument
235 err = __serpent_setkey(&ctx->serpent_ctx, key, keylen - in lrw_serpent_setkey()
240 return lrw_init_table(&ctx->lrw_table, key + keylen - in lrw_serpent_setkey()
309 unsigned int keylen) in xts_serpent_setkey() argument
314 err = xts_check_key(tfm, key, keylen); in xts_serpent_setkey()
319 err = __serpent_setkey(&ctx->crypt_ctx, key, keylen / 2); in xts_serpent_setkey()
324 return __serpent_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2); in xts_serpent_setkey()
Dcast6_avx_glue.c248 unsigned int keylen) in lrw_cast6_setkey() argument
253 err = __cast6_setkey(&ctx->cast6_ctx, key, keylen - CAST6_BLOCK_SIZE, in lrw_cast6_setkey()
258 return lrw_init_table(&ctx->lrw_table, key + keylen - CAST6_BLOCK_SIZE); in lrw_cast6_setkey()
326 unsigned int keylen) in xts_cast6_setkey() argument
332 err = xts_check_key(tfm, key, keylen); in xts_cast6_setkey()
337 err = __cast6_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); in xts_cast6_setkey()
342 return __cast6_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, in xts_cast6_setkey()
Dghash-clmulni-intel_glue.c56 const u8 *key, unsigned int keylen) in ghash_setkey() argument
62 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
261 unsigned int keylen) in ghash_async_setkey() argument
270 err = crypto_ahash_setkey(child, key, keylen); in ghash_async_setkey()
Dcrc32-pclmul_glue.c92 unsigned int keylen) in crc32_pclmul_setkey() argument
96 if (keylen != sizeof(u32)) { in crc32_pclmul_setkey()
Dfpu.c28 unsigned int keylen) in crypto_fpu_setkey() argument
37 err = crypto_blkcipher_setkey(child, key, keylen); in crypto_fpu_setkey()
Dcamellia_glue.c1441 unsigned int keylen) in lrw_camellia_setkey() argument
1447 keylen - CAMELLIA_BLOCK_SIZE, in lrw_camellia_setkey()
1453 key + keylen - CAMELLIA_BLOCK_SIZE); in lrw_camellia_setkey()
1500 unsigned int keylen) in xts_camellia_setkey() argument
1506 err = xts_check_key(tfm, key, keylen); in xts_camellia_setkey()
1511 err = __camellia_setkey(&ctx->crypt_ctx, key, keylen / 2, flags); in xts_camellia_setkey()
1516 return __camellia_setkey(&ctx->tweak_ctx, key + keylen / 2, keylen / 2, in xts_camellia_setkey()
Dcrc32c-intel_glue.c115 unsigned int keylen) in crc32c_intel_setkey() argument
119 if (keylen != sizeof(u32)) { in crc32c_intel_setkey()
Daesni-intel_glue.c559 unsigned int keylen) in lrw_aesni_setkey() argument
565 keylen - AES_BLOCK_SIZE); in lrw_aesni_setkey()
569 return lrw_init_table(&ctx->lrw_table, key + keylen - AES_BLOCK_SIZE); in lrw_aesni_setkey()
628 unsigned int keylen) in xts_aesni_setkey() argument
633 err = xts_check_key(tfm, key, keylen); in xts_aesni_setkey()
638 err = aes_set_key_common(tfm, ctx->raw_crypt_ctx, key, keylen / 2); in xts_aesni_setkey()
643 return aes_set_key_common(tfm, ctx->raw_tweak_ctx, key + keylen / 2, in xts_aesni_setkey()
644 keylen / 2); in xts_aesni_setkey()
/arch/s390/crypto/
Dghash_s390.c41 const u8 *key, unsigned int keylen) in ghash_setkey() argument
45 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
/arch/sparc/crypto/
Dcrc32c_glue.c31 unsigned int keylen) in crc32c_sparc64_setkey() argument
35 if (keylen != sizeof(u32)) { in crc32c_sparc64_setkey()
/arch/powerpc/crypto/
Dcrc32c-vpmsum_glue.c69 unsigned int keylen) in crc32c_vpmsum_setkey() argument
73 if (keylen != sizeof(u32)) { in crc32c_vpmsum_setkey()
/arch/cris/include/uapi/arch-v32/arch/
Dcryptocop.h75 size_t keylen; member
/arch/cris/include/arch-v32/arch/
Dcryptocop.h37 unsigned int keylen; member
/arch/cris/arch-v32/drivers/
Dcryptocop.c455 get_aes_decrypt_key(tc->tctx->dec_key, tc->tctx->init.key, tc->tctx->init.keylen); in setup_key_dl_desc()
459 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc()
462 key_desc->dma_descr->after = key_desc->dma_descr->buf + tc->tctx->init.keylen/8; in setup_key_dl_desc()
466 switch (tc->tctx->init.keylen) { in setup_key_dl_desc()
1463 if (tinit->keylen != 0) { in transform_ok()
1464 …_API(printk("transform_ok: non-zero keylength, %d, for a digest/csum algorithm\n", tinit->keylen)); in transform_ok()
1469 if (tinit->keylen != 64) { in transform_ok()
1470 DEBUG_API(printk("transform_ok: keylen %d invalid for DES\n", tinit->keylen)); in transform_ok()
1475 if (tinit->keylen != 192) { in transform_ok()
1476 DEBUG_API(printk("transform_ok: keylen %d invalid for 3DES\n", tinit->keylen)); in transform_ok()
[all …]

12