Home
last modified time | relevance | path

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

/linux/drivers/crypto/ccree/
H A Dcc_cipher.c66 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); in cc_key_type() local
68 return ctx_p->key_type; in cc_key_type()
71 static int validate_keys_sizes(struct cc_cipher_ctx *ctx_p, u32 size) in validate_keys_sizes() argument
73 switch (ctx_p->flow_mode) { in validate_keys_sizes()
78 if (ctx_p->cipher_mode != DRV_CIPHER_XTS) in validate_keys_sizes()
85 if (ctx_p->cipher_mode == DRV_CIPHER_XTS || in validate_keys_sizes()
86 ctx_p->cipher_mode == DRV_CIPHER_ESSIV) in validate_keys_sizes()
107 static int validate_data_size(struct cc_cipher_ctx *ctx_p, in validate_data_size() argument
110 switch (ctx_p->flow_mode) { in validate_data_size()
112 switch (ctx_p->cipher_mode) { in validate_data_size()
[all …]