Lines Matching refs:control_data

68 			memcpy(cdesc->control_data.token, iv, DES_BLOCK_SIZE);  in safexcel_skcipher_token()
69 cdesc->control_data.options |= EIP197_OPTION_2_TOKEN_IV_CMD; in safexcel_skcipher_token()
73 memcpy(cdesc->control_data.token, iv, DES3_EDE_BLOCK_SIZE); in safexcel_skcipher_token()
74 cdesc->control_data.options |= EIP197_OPTION_2_TOKEN_IV_CMD; in safexcel_skcipher_token()
79 memcpy(cdesc->control_data.token, iv, AES_BLOCK_SIZE); in safexcel_skcipher_token()
80 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_skcipher_token()
85 token = (struct safexcel_token *)(cdesc->control_data.token + offset); in safexcel_skcipher_token()
106 memcpy(cdesc->control_data.token, iv, AES_BLOCK_SIZE); in safexcel_aead_token()
108 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_aead_token()
111 token = (struct safexcel_token *)(cdesc->control_data.token + offset); in safexcel_aead_token()
271 cdesc->control_data.control0 |= CONTEXT_CONTROL_TYPE_ENCRYPT_HASH_OUT; in safexcel_context_control()
273 cdesc->control_data.control0 |= CONTEXT_CONTROL_TYPE_HASH_DECRYPT_IN; in safexcel_context_control()
275 cdesc->control_data.control0 |= CONTEXT_CONTROL_TYPE_CRYPTO_OUT; in safexcel_context_control()
282 cdesc->control_data.control0 |= CONTEXT_CONTROL_TYPE_NULL_IN; in safexcel_context_control()
285 cdesc->control_data.control0 |= CONTEXT_CONTROL_KEY_EN; in safexcel_context_control()
286 cdesc->control_data.control1 |= ctx->mode; in safexcel_context_control()
289 cdesc->control_data.control0 |= CONTEXT_CONTROL_DIGEST_HMAC | in safexcel_context_control()
293 cdesc->control_data.control0 |= CONTEXT_CONTROL_CRYPTO_ALG_DES; in safexcel_context_control()
295 cdesc->control_data.control0 |= CONTEXT_CONTROL_CRYPTO_ALG_3DES; in safexcel_context_control()
299 cdesc->control_data.control0 |= CONTEXT_CONTROL_CRYPTO_ALG_AES128; in safexcel_context_control()
302 cdesc->control_data.control0 |= CONTEXT_CONTROL_CRYPTO_ALG_AES192; in safexcel_context_control()
305 cdesc->control_data.control0 |= CONTEXT_CONTROL_CRYPTO_ALG_AES256; in safexcel_context_control()
318 cdesc->control_data.control0 |= CONTEXT_CONTROL_SIZE(ctrl_size); in safexcel_context_control()