/arch/arm64/crypto/ |
D | speck-neon-glue.c | 116 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()
|
D | ghash-ce-glue.c | 104 const u8 *inkey, unsigned int keylen) in ghash_setkey() argument 109 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
|
D | crc32-arm64.c | 116 unsigned int keylen) in chksum_setkey() argument 120 if (keylen != sizeof(mctx->key)) { in chksum_setkey()
|
/arch/arm/crypto/ |
D | speck-neon-glue.c | 122 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()
|
D | ghash-ce-glue.c | 110 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/ |
D | planetcore.c | 43 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/ |
D | twofish.h | 39 unsigned int keylen); 44 unsigned int keylen);
|
D | serpent-avx.h | 41 unsigned int keylen); 46 unsigned int keylen);
|
D | camellia.h | 33 unsigned int keylen); 37 unsigned int keylen);
|
/arch/x86/crypto/ |
D | twofish_glue_3way.c | 217 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()
|
D | serpent_avx_glue.c | 256 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()
|
D | serpent_sse2_glue.c | 230 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()
|
D | cast6_avx_glue.c | 248 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()
|
D | ghash-clmulni-intel_glue.c | 56 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()
|
D | crc32-pclmul_glue.c | 92 unsigned int keylen) in crc32_pclmul_setkey() argument 96 if (keylen != sizeof(u32)) { in crc32_pclmul_setkey()
|
D | fpu.c | 28 unsigned int keylen) in crypto_fpu_setkey() argument 37 err = crypto_blkcipher_setkey(child, key, keylen); in crypto_fpu_setkey()
|
D | camellia_glue.c | 1441 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()
|
D | crc32c-intel_glue.c | 115 unsigned int keylen) in crc32c_intel_setkey() argument 119 if (keylen != sizeof(u32)) { in crc32c_intel_setkey()
|
D | aesni-intel_glue.c | 559 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/ |
D | ghash_s390.c | 41 const u8 *key, unsigned int keylen) in ghash_setkey() argument 45 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
|
/arch/sparc/crypto/ |
D | crc32c_glue.c | 31 unsigned int keylen) in crc32c_sparc64_setkey() argument 35 if (keylen != sizeof(u32)) { in crc32c_sparc64_setkey()
|
/arch/powerpc/crypto/ |
D | crc32c-vpmsum_glue.c | 69 unsigned int keylen) in crc32c_vpmsum_setkey() argument 73 if (keylen != sizeof(u32)) { in crc32c_vpmsum_setkey()
|
/arch/cris/include/uapi/arch-v32/arch/ |
D | cryptocop.h | 75 size_t keylen; member
|
/arch/cris/include/arch-v32/arch/ |
D | cryptocop.h | 37 unsigned int keylen; member
|
/arch/cris/arch-v32/drivers/ |
D | cryptocop.c | 455 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 …]
|