Lines Matching refs:keylen
117 op->keylen); in sun8i_ss_cipher()
125 rctx->keylen = op->keylen; in sun8i_ss_cipher()
127 rctx->p_key = dma_map_single(ss->dev, op->key, op->keylen, DMA_TO_DEVICE); in sun8i_ss_cipher()
264 dma_unmap_single(ss->dev, rctx->p_key, op->keylen, DMA_TO_DEVICE); in sun8i_ss_cipher()
379 unsigned int keylen) in sun8i_ss_aes_setkey() argument
384 switch (keylen) { in sun8i_ss_aes_setkey()
392 dev_dbg(ss->dev, "ERROR: Invalid keylen %u\n", keylen); in sun8i_ss_aes_setkey()
396 op->keylen = keylen; in sun8i_ss_aes_setkey()
397 op->key = kmemdup(key, keylen, GFP_KERNEL | GFP_DMA); in sun8i_ss_aes_setkey()
404 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ss_aes_setkey()
408 unsigned int keylen) in sun8i_ss_des3_setkey() argument
413 if (unlikely(keylen != 3 * DES_KEY_SIZE)) { in sun8i_ss_des3_setkey()
414 dev_dbg(ss->dev, "Invalid keylen %u\n", keylen); in sun8i_ss_des3_setkey()
419 op->keylen = keylen; in sun8i_ss_des3_setkey()
420 op->key = kmemdup(key, keylen, GFP_KERNEL | GFP_DMA); in sun8i_ss_des3_setkey()
427 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen); in sun8i_ss_des3_setkey()