Home
last modified time | relevance | path

Searched refs:c_ctx (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_cipher.c136 static TEE_Result sec_cipher_set_key(struct sec_cipher_ctx *c_ctx, in sec_cipher_set_key() argument
144 switch (c_ctx->alg) { in sec_cipher_set_key()
152 ret = sec_cipher_aes_get_c_key_len(key_len, c_ctx->mode, in sec_cipher_set_key()
156 ret = sec_cipher_sm4_get_c_key_len(key_len, c_ctx->mode, in sec_cipher_set_key()
160 EMSG("Invalid cipher type %#"PRIx8, c_ctx->alg); in sec_cipher_set_key()
168 c_ctx->key_dma = virt_to_phys(c_ctx->key); in sec_cipher_set_key()
169 if (!c_ctx->key_dma) { in sec_cipher_set_key()
174 c_ctx->key_len = key_len; in sec_cipher_set_key()
175 c_ctx->c_key_len = c_key_len; in sec_cipher_set_key()
177 memcpy(c_ctx->key, key1, key1_len); in sec_cipher_set_key()
[all …]
/optee_os/core/drivers/crypto/stm32/
H A Dcipher.c58 struct crypto_cipher_ctx c_ctx; member
202 return container_of(ctx, struct stm32_cipher_ctx, c_ctx); in to_stm32_cipher_ctx()
249 *ctx = &c->c_ctx; in alloc_cryp_ctx()
327 *ctx = &saes_ctx->c_ctx; in stm32_saes_cipher_allocate()