mbedTLS
mbedtls_cipher_context_t::cipher_info
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
mbedtls_cipher_context_t::cipher_info
mbedtls_cipher_context_t::cipher_info field
Information about the associated cipher.
Syntax
Show:
Summary
Declaration
from
cipher.h:318
const
mbedtls_cipher_info_t
*
MBEDTLS_PRIVATE
(
cipher_info
;
Examples
References
from
examples
Code
Location
Referrer
const
mbedtls_cipher_info_t
*
MBEDTLS_PRIVATE
(
cipher_info
)
;
cipher.h:318
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
ctx_free_func
(
ctx
->
cipher_ctx
)
;
cipher.c:239
mbedtls_cipher_free()
ctx
->
cipher_info
=
cipher_info
;
cipher.c:261
mbedtls_cipher_setup()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:310
mbedtls_cipher_setkey()
if
(
(
ctx
->
cipher_info
->
flags
&
MBEDTLS_CIPHER_VARIABLE_KEY_LEN
)
==
0
&&
cipher.c:378
mbedtls_cipher_setkey()
(
int
)
mbedtls_cipher_info_get_key_bitlen
(
ctx
->
cipher_info
)
!=
key_bitlen
)
{
cipher.c:379
mbedtls_cipher_setkey()
MBEDTLS_MODE_CFB
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:391
mbedtls_cipher_setkey()
MBEDTLS_MODE_OFB
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:392
mbedtls_cipher_setkey()
MBEDTLS_MODE_CTR
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:393
mbedtls_cipher_setkey()
return
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
setkey_enc_func
(
ctx
->
cipher_ctx
,
key
,
cipher.c:394
mbedtls_cipher_setkey()
return
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
setkey_dec_func
(
ctx
->
cipher_ctx
,
key
,
cipher.c:399
mbedtls_cipher_setkey()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:418
mbedtls_cipher_set_iv()
if
(
(
ctx
->
cipher_info
->
flags
&
MBEDTLS_CIPHER_VARIABLE_IV_LEN
)
!=
0
)
{
cipher.c:435
mbedtls_cipher_set_iv()
actual_iv_size
=
mbedtls_cipher_info_get_iv_size
(
ctx
->
cipher_info
)
;
cipher.c:438
mbedtls_cipher_set_iv()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:470
mbedtls_cipher_set_iv()
if
(
MBEDTLS_MODE_CCM_STAR_NO_TAG
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:478
mbedtls_cipher_set_iv()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:513
mbedtls_cipher_reset()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:534
mbedtls_cipher_update_ad()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:548
mbedtls_cipher_update_ad()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:585
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_ECB
)
{
cipher.c:604
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
ecb_func
(
ctx
->
cipher_ctx
,
cipher.c:611
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_GCM
)
{
cipher.c:621
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_CCM_STAR_NO_TAG
)
{
cipher.c:629
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_CBC
)
{
cipher.c:650
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
cbc_func
(
ctx
->
cipher_ctx
,
cipher.c:678
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
cbc_func
(
ctx
->
cipher_ctx
,
cipher.c:721
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_CFB
)
{
cipher.c:737
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
cfb_func
(
ctx
->
cipher_ctx
,
cipher.c:738
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_OFB
)
{
cipher.c:753
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
ofb_func
(
ctx
->
cipher_ctx
,
cipher.c:754
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_CTR
)
{
cipher.c:769
mbedtls_cipher_update()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
ctr_func
(
ctx
->
cipher_ctx
,
cipher.c:770
mbedtls_cipher_update()
if
(
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
==
MBEDTLS_MODE_XTS
)
{
cipher.c:786
mbedtls_cipher_update()
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
xts_func
(
ctx
->
cipher_ctx
,
cipher.c:792
mbedtls_cipher_update()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:1017
mbedtls_cipher_finish()
if
(
MBEDTLS_MODE_CBC
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1035
mbedtls_cipher_finish()
if
(
MBEDTLS_MODE_CFB
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1042
mbedtls_cipher_finish()
MBEDTLS_MODE_OFB
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1043
mbedtls_cipher_finish()
MBEDTLS_MODE_CTR
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1044
mbedtls_cipher_finish()
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1045
mbedtls_cipher_finish()
MBEDTLS_MODE_CCM_STAR_NO_TAG
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1046
mbedtls_cipher_finish()
MBEDTLS_MODE_XTS
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
||
cipher.c:1047
mbedtls_cipher_finish()
MBEDTLS_MODE_STREAM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1048
mbedtls_cipher_finish()
if
(
(
MBEDTLS_CIPHER_CHACHA20
==
(
(
mbedtls_cipher_type_t
)
ctx
->
cipher_info
->
type
)
)
||
cipher.c:1052
mbedtls_cipher_finish()
(
MBEDTLS_CIPHER_CHACHA20_POLY1305
==
(
(
mbedtls_cipher_type_t
)
ctx
->
cipher_info
->
type
)
)
)
{
cipher.c:1053
mbedtls_cipher_finish()
if
(
MBEDTLS_MODE_ECB
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1057
mbedtls_cipher_finish()
if
(
MBEDTLS_MODE_CBC
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1066
mbedtls_cipher_finish()
if
(
0
!=
(
ret
=
mbedtls_cipher_get_base
(
ctx
->
cipher_info
)
->
cbc_func
(
ctx
->
cipher_ctx
,
cipher.c:1094
mbedtls_cipher_finish()
if
(
NULL
==
ctx
->
cipher_info
||
cipher.c:1125
mbedtls_cipher_set_padding_mode()
MBEDTLS_MODE_CBC
!=
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1126
mbedtls_cipher_set_padding_mode()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:1185
mbedtls_cipher_write_tag()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1203
mbedtls_cipher_write_tag()
if
(
ctx
->
cipher_info
==
NULL
)
{
cipher.c:1234
mbedtls_cipher_check_tag()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1255
mbedtls_cipher_check_tag()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1446
mbedtls_cipher_aead_encrypt()
if
(
MBEDTLS_MODE_CCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1454
mbedtls_cipher_aead_encrypt()
if
(
MBEDTLS_MODE_GCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1524
mbedtls_cipher_aead_decrypt()
if
(
MBEDTLS_MODE_CCM
==
(
(
mbedtls_cipher_mode_t
)
ctx
->
cipher_info
->
mode
)
)
{
cipher.c:1540
mbedtls_cipher_aead_decrypt()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:681
mbedtls_cipher_get_block_size()
return
(
unsigned
int
)
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
block_size
)
;
cipher.h:685
mbedtls_cipher_get_block_size()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:700
mbedtls_cipher_get_cipher_mode()
return
(
mbedtls_cipher_mode_t
)
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
mode
)
;
cipher.h:704
mbedtls_cipher_get_cipher_mode()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:720
mbedtls_cipher_get_iv_size()
return
(
int
)
(
(
(
int
)
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
iv_size
)
)
<
<
cipher.h:728
mbedtls_cipher_get_iv_size()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:743
mbedtls_cipher_get_type()
return
(
mbedtls_cipher_type_t
)
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
type
)
;
cipher.h:747
mbedtls_cipher_get_type()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:762
mbedtls_cipher_get_name()
return
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
name
)
;
cipher.h:766
mbedtls_cipher_get_name()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:781
mbedtls_cipher_get_key_bitlen()
return
(
int
)
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
->
MBEDTLS_PRIVATE
(
key_bitlen
)
<
<
cipher.h:785
mbedtls_cipher_get_key_bitlen()
if
(
ctx
->
MBEDTLS_PRIVATE
(
cipher_info
)
==
NULL
)
{
cipher.h:800
mbedtls_cipher_get_operation()
block_size
=
mbedtls_cipher_info_get_block_size
(
ctx
->
cipher_info
)
;
cmac.c:105
cmac_generate_subkeys()
if
(
ctx
==
NULL
||
ctx
->
cipher_info
==
NULL
||
key
==
NULL
)
{
cmac.c:163
mbedtls_cipher_cmac_starts()
type
=
mbedtls_cipher_info_get_type
(
ctx
->
cipher_info
)
;
cmac.c:172
mbedtls_cipher_cmac_starts()
if
(
ctx
==
NULL
||
ctx
->
cipher_info
==
NULL
||
input
==
NULL
||
cmac.c:206
mbedtls_cipher_cmac_update()
block_size
=
mbedtls_cipher_info_get_block_size
(
ctx
->
cipher_info
)
;
cmac.c:212
mbedtls_cipher_cmac_update()
if
(
ctx
==
NULL
||
ctx
->
cipher_info
==
NULL
||
ctx
->
cmac_ctx
==
NULL
||
cmac.c:279
mbedtls_cipher_cmac_finish()
block_size
=
mbedtls_cipher_info_get_block_size
(
ctx
->
cipher_info
)
;
cmac.c:285
mbedtls_cipher_cmac_finish()
if
(
ctx
==
NULL
||
ctx
->
cipher_info
==
NULL
||
ctx
->
cmac_ctx
==
NULL
)
{
cmac.c:331
mbedtls_cipher_cmac_reset()
size_t
block_size
=
mbedtls_cipher_info_get_block_size
(
ctx
->
cipher_info
)
;
psa_crypto_cipher.c:427
psa_cipher_update_ecb()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mbedtls_cipher_context_t::cipher_info
is written by 1 function and is read by 25 functions:
mbedtls_cipher_setup()
All items filtered out
mbedtls_cipher_context_t::cipher_info
mbedtls_cipher_get_block_size()
mbedtls_cipher_get_cipher_mode()
mbedtls_cipher_get_iv_size()
mbedtls_cipher_get_type()
mbedtls_cipher_get_name()
mbedtls_cipher_get_key_bitlen()
mbedtls_cipher_get_operation()
mbedtls_cipher_free()
mbedtls_cipher_setkey()
mbedtls_cipher_set_iv()
mbedtls_cipher_reset()
mbedtls_cipher_update_ad()
mbedtls_cipher_update()
mbedtls_cipher_finish()
mbedtls_cipher_set_padding_mode()
mbedtls_cipher_write_tag()
mbedtls_cipher_check_tag()
mbedtls_cipher_aead_encrypt()
mbedtls_cipher_aead_decrypt()
cmac_generate_subkeys()
mbedtls_cipher_cmac_starts()
mbedtls_cipher_cmac_update()
mbedtls_cipher_cmac_finish()
mbedtls_cipher_cmac_reset()
psa_cipher_update_ecb()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out