mbedTLS
psa_key_type_t
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
psa_key_type_t
psa_key_type_t
Encoding of a key type. Values of this type are generally constructed by macros called `PSA_KEY_TYPE_xxx`.
Syntax
Show:
Summary
Declaration
from
crypto_types.h:78
typedef
uint16_t
psa_key_type_t
;
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
uint16_t
psa_key_type_t
;
crypto_types.h:78
psa_key_type_t
type
)
;
crypto.h:309
psa_set_key_type()
psa_set_key_type()::type
static
psa_key_type_t
psa_get_key_type
(
const
psa_key_attributes_t
*
attributes
)
;
crypto.h:339
psa_get_key_type()
psa_key_type_t
MBEDTLS_PRIVATE
(
key_type
)
;
crypto_builtin_composites.h:81
mbedtls_psa_aead_operation_t
psa_key_type_t
MBEDTLS_PRIVATE
(
key_type
)
;
crypto_struct.h:172
psa_aead_operation_s
psa_key_type_t
MBEDTLS_PRIVATE
(
type
)
;
crypto_struct.h:300
psa_key_attributes_s
const
struct
psa_key_attributes_s
v
=
PSA_KEY_ATTRIBUTES_INIT
;
crypto_struct.h:331
psa_key_attributes_init()
psa_key_type_t
type
)
crypto_struct.h:420
psa_set_key_type()
static
inline
psa_key_type_t
psa_get_key_type
(
crypto_struct.h:425
psa_get_key_type()
PSA_KEY_TYPE_RSA_KEY_PAIR
:
pk.c:451
mbedtls_pk_get_psa_attributes()
PSA_KEY_TYPE_RSA_PUBLIC_KEY
)
)
;
pk.c:452
mbedtls_pk_get_psa_attributes()
PSA_KEY_TYPE_ECC_KEY_PAIR
(
family
)
:
pk.c:509
mbedtls_pk_get_psa_attributes()
PSA_KEY_TYPE_ECC_PUBLIC_KEY
(
family
)
)
)
;
pk.c:510
mbedtls_pk_get_psa_attributes()
if
(
psa_get_key_type
(
attributes
)
!=
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
pk.c:653
import_pair_into_psa()
psa_key_type_t
to_type
=
psa_get_key_type
(
attributes
)
;
pk.c:684
import_pair_into_psa()
if
(
to_type
!=
PSA_KEY_TYPE_ECC_KEY_PAIR
(
from_family
)
)
{
pk.c:693
import_pair_into_psa()
psa_key_type_t
psa_type
=
psa_get_key_type
(
attributes
)
;
pk.c:743
import_public_into_psa()
if
(
psa_type
!=
PSA_KEY_TYPE_RSA_PUBLIC_KEY
)
{
pk.c:757
import_public_into_psa()
if
(
psa_type
!=
PSA_KEY_TYPE_ECC_PUBLIC_KEY
(
from_family
)
)
{
pk.c:793
import_public_into_psa()
int
want_public
=
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
psa_get_key_type
(
attributes
)
)
;
pk.c:856
mbedtls_pk_import_into_psa()
psa_key_attributes_t
key_attr
=
PSA_KEY_ATTRIBUTES_INIT
;
pk.c:869
copy_from_psa()
psa_key_type_t
key_type
;
pk.c:870
copy_from_psa()
key_type
=
PSA_KEY_TYPE_PUBLIC_KEY_OF_KEY_PAIR
(
key_type
)
;
pk.c:898
copy_from_psa()
if
(
(
key_type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
||
pk.c:903
copy_from_psa()
(
key_type
==
PSA_KEY_TYPE_RSA_PUBLIC_KEY
)
)
{
pk.c:904
copy_from_psa()
if
(
key_type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
pk.c:911
copy_from_psa()
if
(
PSA_KEY_TYPE_IS_ECC_KEY_PAIR
(
key_type
)
||
pk.c:938
copy_from_psa()
PSA_KEY_TYPE_IS_ECC_PUBLIC_KEY
(
key_type
)
)
{
pk.c:939
copy_from_psa()
grp_id
=
mbedtls_ecc_group_from_psa
(
PSA_KEY_TYPE_ECC_GET_FAMILY
(
key_type
)
,
key_bits
)
;
pk.c:947
copy_from_psa()
if
(
PSA_KEY_TYPE_IS_ECC_KEY_PAIR
(
key_type
)
)
{
pk.c:953
copy_from_psa()
static
int
key_type_is_raw_bytes
(
psa_key_type_t
type
)
psa_crypto.c:86
key_type_is_raw_bytes()
key_type_is_raw_bytes()::type
return
PSA_KEY_TYPE_IS_UNSTRUCTURED
(
type
)
;
psa_crypto.c:88
key_type_is_raw_bytes()
int
psa_can_do_cipher
(
psa_key_type_t
key_type
,
psa_algorithm_t
cipher_alg
)
psa_crypto.c:290
psa_can_do_cipher()
psa_can_do_cipher()::key_type
psa_status_t
psa_validate_unstructured_key_bit_size
(
psa_key_type_t
type
,
psa_crypto.c:609
psa_validate_unstructured_key_bit_size()
psa_validate_unstructured_key_bit_size()::type
case
PSA_KEY_TYPE_RAW_DATA
:
psa_crypto.c:614
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_HMAC
:
psa_crypto.c:615
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_DERIVE
:
psa_crypto.c:616
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_PASSWORD
:
psa_crypto.c:617
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_PASSWORD_HASH
:
psa_crypto.c:618
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_AES
:
psa_crypto.c:621
psa_validate_unstructured_key_bit_size()
case
PSA_KEY_TYPE_ARIA
:
psa_crypto.c:628
psa_validate_unstructured_key_bit_size()
psa_key_type_t
key_type
)
psa_crypto.c:681
psa_mac_key_can_do()
psa_mac_key_can_do()::key_type
if
(
key_type
==
PSA_KEY_TYPE_HMAC
)
{
psa_crypto.c:684
psa_mac_key_can_do()
if
(
(
key_type
&
PSA_KEY_TYPE_CATEGORY_MASK
)
==
psa_crypto.c:692
psa_mac_key_can_do()
PSA_KEY_TYPE_CATEGORY_SYMMETRIC
)
{
psa_crypto.c:693
psa_mac_key_can_do()
if
(
PSA_BLOCK_CIPHER_BLOCK_LENGTH
(
key_type
)
>
1
)
{
psa_crypto.c:696
psa_mac_key_can_do()
psa_key_type_t
type
=
attributes
->
type
;
psa_crypto.c:742
psa_import_key_into_slot()
}
else
if
(
PSA_KEY_TYPE_IS_ASYMMETRIC
(
type
)
)
{
psa_crypto.c:764
psa_import_key_into_slot()
if
(
PSA_KEY_TYPE_IS_DH
(
type
)
)
{
psa_crypto.c:767
psa_import_key_into_slot()
if
(
PSA_KEY_TYPE_IS_ECC
(
type
)
)
{
psa_crypto.c:781
psa_import_key_into_slot()
if
(
PSA_KEY_TYPE_IS_RSA
(
type
)
)
{
psa_crypto.c:793
psa_import_key_into_slot()
psa_key_type_t
key_type
,
psa_crypto.c:813
psa_key_policy_algorithm_intersection()
psa_key_policy_algorithm_intersection()::key_type
size_t
alg1_len
=
PSA_MAC_LENGTH
(
key_type
,
0
,
alg1
)
;
psa_crypto.c:879
psa_key_policy_algorithm_intersection()
size_t
alg2_len
=
PSA_MAC_LENGTH
(
key_type
,
0
,
alg2
)
;
psa_crypto.c:880
psa_key_policy_algorithm_intersection()
static
int
psa_key_algorithm_permits
(
psa_key_type_t
key_type
,
psa_crypto.c:911
psa_key_algorithm_permits()
psa_key_algorithm_permits()::key_type
size_t
requested_output_length
=
PSA_MAC_LENGTH
(
psa_crypto.c:955
psa_key_algorithm_permits()
size_t
default_output_length
=
PSA_MAC_LENGTH
(
psa_crypto.c:957
psa_key_algorithm_permits()
psa_key_type_t
key_type
,
psa_crypto.c:1010
psa_key_policy_permits()
psa_key_policy_permits()::key_type
psa_key_type_t
key_type
,
psa_crypto.c:1050
psa_restrict_key_policy()
psa_restrict_key_policy()::key_type
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:1110
psa_get_and_lock_key_slot_with_policy()
psa_key_type_t
type
=
attributes
->
type
;
psa_crypto.c:1474
psa_export_key_internal()
PSA_KEY_TYPE_IS_RSA
(
type
)
||
psa_crypto.c:1477
psa_export_key_internal()
PSA_KEY_TYPE_IS_ECC
(
type
)
||
psa_crypto.c:1478
psa_export_key_internal()
PSA_KEY_TYPE_IS_DH
(
type
)
)
{
psa_crypto.c:1479
psa_export_key_internal()
psa_key_type_t
type
=
attributes
->
type
;
psa_crypto.c:1547
psa_export_public_key_internal()
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
type
)
&&
psa_crypto.c:1549
psa_export_public_key_internal()
(
PSA_KEY_TYPE_IS_RSA
(
type
)
||
PSA_KEY_TYPE_IS_ECC
(
type
)
||
psa_crypto.c:1550
psa_export_public_key_internal()
PSA_KEY_TYPE_IS_DH
(
type
)
)
)
{
psa_crypto.c:1551
psa_export_public_key_internal()
}
else
if
(
PSA_KEY_TYPE_IS_RSA
(
type
)
)
{
psa_crypto.c:1556
psa_export_public_key_internal()
}
else
if
(
PSA_KEY_TYPE_IS_ECC
(
type
)
)
{
psa_crypto.c:1570
psa_export_public_key_internal()
}
else
if
(
PSA_KEY_TYPE_IS_DH
(
type
)
)
{
psa_crypto.c:1584
psa_export_public_key_internal()
if
(
!
PSA_KEY_TYPE_IS_ASYMMETRIC
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:1638
psa_export_public_key()
psa_key_type_t
key_type
=
psa_get_key_type
(
attributes
)
;
psa_crypto.c:2569
psa_mac_finalize_alg_and_key_validation()
*
mac_size
=
PSA_MAC_LENGTH
(
key_type
,
key_bits
,
alg
)
;
psa_crypto.c:2583
psa_mac_finalize_alg_and_key_validation()
if
(
*
mac_size
>
PSA_MAC_LENGTH
(
key_type
,
key_bits
,
psa_crypto.c:2593
psa_mac_finalize_alg_and_key_validation()
if
(
!
PSA_KEY_TYPE_IS_KEY_PAIR
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:3005
psa_sign_internal()
if
(
attributes
->
type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
psa_crypto.c:3203
psa_sign_hash_builtin()
}
else
if
(
PSA_KEY_TYPE_IS_ECC
(
attributes
->
type
)
)
{
psa_crypto.c:3218
psa_sign_hash_builtin()
if
(
PSA_KEY_TYPE_IS_RSA
(
attributes
->
type
)
)
{
psa_crypto.c:3277
psa_verify_hash_builtin()
}
else
if
(
PSA_KEY_TYPE_IS_ECC
(
attributes
->
type
)
)
{
psa_crypto.c:3292
psa_verify_hash_builtin()
if
(
!
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
slot
->
attr
.
type
)
||
psa_crypto.c:3378
psa_asymmetric_encrypt()
PSA_KEY_TYPE_IS_KEY_PAIR
(
slot
->
attr
.
type
)
)
)
{
psa_crypto.c:3379
psa_asymmetric_encrypt()
if
(
!
PSA_KEY_TYPE_IS_KEY_PAIR
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:3437
psa_asymmetric_decrypt()
if
(
!
PSA_KEY_TYPE_IS_KEY_PAIR
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:3543
psa_sign_hash_start()
if
(
!
PSA_KEY_TYPE_IS_ECC
(
attributes
->
type
)
)
{
psa_crypto.c:3851
mbedtls_psa_sign_hash_start()
if
(
!
PSA_KEY_TYPE_IS_ECC
(
attributes
->
type
)
)
{
psa_crypto.c:4067
mbedtls_psa_verify_hash_start()
operation
->
default_iv_length
=
PSA_CIPHER_IV_LENGTH
(
slot
->
attr
.
type
,
alg
)
;
psa_crypto.c:4318
psa_cipher_setup()
default_iv_length
=
PSA_CIPHER_IV_LENGTH
(
slot
->
attr
.
type
,
alg
)
;
psa_crypto.c:4586
psa_cipher_encrypt()
if
(
input_length
<
PSA_CIPHER_IV_LENGTH
(
slot
->
attr
.
type
,
alg
)
)
{
psa_crypto.c:4661
psa_cipher_decrypt()
required_nonce_size
=
PSA_AEAD_NONCE_LENGTH
(
operation
->
key_type
,
psa_crypto.c:5087
psa_aead_generate_nonce()
psa_key_attributes_t
attributes
=
PSA_KEY_ATTRIBUTES_INIT
;
psa_crypto.c:5480
psa_key_derivation_start_hmac()
psa_set_key_type
(
&
attributes
,
PSA_KEY_TYPE_HMAC
)
;
psa_crypto.c:5481
psa_key_derivation_start_hmac()
psa_ecc_family_t
curve
=
PSA_KEY_TYPE_ECC_GET_FAMILY
(
psa_crypto.c:6195
psa_generate_derived_ecc_key_weierstrass_helper()
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:6368
psa_generate_derived_key_internal()
if
(
PSA_KEY_TYPE_IS_ECC
(
slot
->
attr
.
type
)
)
{
psa_crypto.c:6374
psa_generate_derived_key_internal()
psa_ecc_family_t
curve
=
PSA_KEY_TYPE_ECC_GET_FAMILY
(
slot
->
attr
.
type
)
;
psa_crypto.c:6375
psa_generate_derived_key_internal()
psa_key_type_t
key_type
)
psa_crypto.c:7307
psa_key_derivation_check_input_type()
psa_key_derivation_check_input_type()::key_type
if
(
key_type
==
PSA_KEY_TYPE_DERIVE
)
{
psa_crypto.c:7311
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_NONE
)
{
psa_crypto.c:7314
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_DERIVE
)
{
psa_crypto.c:7319
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_NONE
)
{
psa_crypto.c:7322
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_RAW_DATA
)
{
psa_crypto.c:7330
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_NONE
)
{
psa_crypto.c:7333
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_PASSWORD
)
{
psa_crypto.c:7338
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_DERIVE
)
{
psa_crypto.c:7341
psa_key_derivation_check_input_type()
if
(
key_type
==
PSA_KEY_TYPE_NONE
)
{
psa_crypto.c:7344
psa_key_derivation_check_input_type()
psa_key_type_t
key_type
,
psa_crypto.c:7355
psa_key_derivation_input_internal()
psa_key_derivation_input_internal()::key_type
PSA_KEY_TYPE_NONE
,
psa_crypto.c:7451
psa_key_derivation_input_bytes()
PSA_KEY_TYPE_DERIVE
,
psa_crypto.c:7610
psa_key_agreement_internal()
PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE
(
slot
->
attr
.
type
,
slot
->
attr
.
bits
)
;
psa_crypto.c:7697
psa_raw_key_agreement()
psa_key_type_t
type
,
size_t
bits
)
psa_crypto.c:7860
psa_validate_key_type_and_size_for_key_generation()
psa_validate_key_type_and_size_for_key_generation()::type
if
(
PSA_KEY_TYPE_IS_RSA
(
type
)
&&
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto.c:7871
psa_validate_key_type_and_size_for_key_generation()
if
(
PSA_KEY_TYPE_IS_ECC
(
type
)
&&
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto.c:7888
psa_validate_key_type_and_size_for_key_generation()
if
(
PSA_KEY_TYPE_IS_DH
(
type
)
&&
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto.c:7895
psa_validate_key_type_and_size_for_key_generation()
psa_key_type_t
type
=
attributes
->
type
;
psa_crypto.c:7916
psa_generate_key_internal()
if
(
type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
psa_crypto.c:7937
psa_generate_key_internal()
if
(
PSA_KEY_TYPE_IS_ECC
(
type
)
&&
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto.c:7947
psa_generate_key_internal()
if
(
PSA_KEY_TYPE_IS_DH
(
type
)
&&
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto.c:7956
psa_generate_key_internal()
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
attributes
->
type
)
)
{
psa_crypto.c:7991
psa_generate_key_custom()
if
(
attributes
->
type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
psa_crypto.c:7996
psa_generate_key_custom()
key_buffer_size
=
PSA_EXPORT_KEY_OUTPUT_SIZE
(
psa_crypto.c:8025
psa_generate_key_custom()
psa_key_type_t
type
;
psa_crypto.c:8518
psa_pake_set_password_key()
if
(
type
!=
PSA_KEY_TYPE_PASSWORD
&&
psa_crypto.c:8534
psa_pake_set_password_key()
type
!=
PSA_KEY_TYPE_PASSWORD_HASH
)
{
psa_crypto.c:8535
psa_pake_set_password_key()
if
(
PSA_BLOCK_CIPHER_BLOCK_LENGTH
(
attributes
->
type
)
!=
16
)
{
psa_crypto_aead.c:52
psa_aead_setup()
if
(
PSA_BLOCK_CIPHER_BLOCK_LENGTH
(
attributes
->
type
)
!=
16
)
{
psa_crypto_aead.c:72
psa_aead_setup()
psa_key_type_t
key_type
)
psa_crypto_cipher.c:31
mbedtls_cipher_validate_values()
mbedtls_cipher_validate_values()::key_type
MBEDTLS_ASSUME
(
key_type
!=
PSA_KEY_TYPE_CAMELLIA
)
;
psa_crypto_cipher.c:42
mbedtls_cipher_validate_values()
MBEDTLS_ASSUME
(
key_type
!=
PSA_KEY_TYPE_CHACHA20
)
;
psa_crypto_cipher.c:45
mbedtls_cipher_validate_values()
MBEDTLS_ASSUME
(
key_type
!=
PSA_KEY_TYPE_DES
)
;
psa_crypto_cipher.c:48
mbedtls_cipher_validate_values()
if
(
key_type
==
PSA_KEY_TYPE_CHACHA20
)
{
psa_crypto_cipher.c:92
mbedtls_cipher_validate_values()
if
(
key_type
==
PSA_KEY_TYPE_AES
||
psa_crypto_cipher.c:100
mbedtls_cipher_validate_values()
key_type
==
PSA_KEY_TYPE_ARIA
||
psa_crypto_cipher.c:101
mbedtls_cipher_validate_values()
key_type
==
PSA_KEY_TYPE_CAMELLIA
)
{
psa_crypto_cipher.c:102
mbedtls_cipher_validate_values()
if
(
key_type
==
PSA_KEY_TYPE_AES
||
psa_crypto_cipher.c:115
mbedtls_cipher_validate_values()
key_type
==
PSA_KEY_TYPE_ARIA
||
psa_crypto_cipher.c:116
mbedtls_cipher_validate_values()
key_type
==
PSA_KEY_TYPE_DES
||
psa_crypto_cipher.c:117
mbedtls_cipher_validate_values()
key_type
==
PSA_KEY_TYPE_CAMELLIA
)
{
psa_crypto_cipher.c:118
mbedtls_cipher_validate_values()
psa_key_type_t
key_type
,
psa_crypto_cipher.c:128
mbedtls_cipher_values_from_psa()
mbedtls_cipher_values_from_psa()::key_type
case
PSA_KEY_TYPE_AES
:
psa_crypto_cipher.c:211
mbedtls_cipher_values_from_psa()
case
PSA_KEY_TYPE_ARIA
:
psa_crypto_cipher.c:216
mbedtls_cipher_values_from_psa()
psa_key_type_t
key_type
,
psa_crypto_cipher.c:260
mbedtls_cipher_info_from_psa()
mbedtls_cipher_info_from_psa()::key_type
psa_key_type_t
key_type
=
attributes
->
type
;
psa_crypto_cipher.c:292
psa_cipher_setup()
PSA_BLOCK_CIPHER_BLOCK_LENGTH
(
key_type
)
)
;
psa_crypto_cipher.c:353
psa_cipher_setup()
operation
->
iv_length
=
PSA_CIPHER_IV_LENGTH
(
key_type
,
alg
)
;
psa_crypto_cipher.c:354
psa_cipher_setup()
psa_status_t
mbedtls_cipher_values_from_psa
(
psa_algorithm_t
alg
,
psa_key_type_t
key_type
,
psa_crypto_cipher.h:32
mbedtls_cipher_values_from_psa()
mbedtls_cipher_values_from_psa()::key_type
psa_algorithm_t
alg
,
psa_key_type_t
key_type
,
size_t
key_bits
,
psa_crypto_cipher.h:50
mbedtls_cipher_info_from_psa()
mbedtls_cipher_info_from_psa()::key_type
int
psa_can_do_cipher
(
psa_key_type_t
key_type
,
psa_algorithm_t
cipher_alg
)
;
psa_crypto_core.h:49
psa_can_do_cipher()
psa_can_do_cipher()::key_type
psa_status_t
psa_validate_unstructured_key_bit_size
(
psa_key_type_t
type
,
psa_crypto_core.h:605
psa_validate_unstructured_key_bit_size()
psa_validate_unstructured_key_bit_size()::type
psa_key_type_t
key_type
=
psa_get_key_type
(
attributes
)
;
psa_crypto_driver_wrappers.h:710
psa_driver_wrapper_get_key_buffer_size_from_key_data()
psa_key_type_t
key_type
=
psa_get_key_type
(
attributes
)
;
psa_crypto_driver_wrappers_no_static.c:91
psa_driver_wrapper_get_key_buffer_size()
psa_key_type_t
type
,
size_t
curve_bits
,
psa_crypto_ecp.c:91
mbedtls_psa_ecp_load_representation()
mbedtls_psa_ecp_load_representation()::type
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
type
)
&&
psa_crypto_ecp.c:101
mbedtls_psa_ecp_load_representation()
PSA_KEY_TYPE_ECC_GET_FAMILY
(
type
)
!=
PSA_ECC_FAMILY_MONTGOMERY
)
{
psa_crypto_ecp.c:102
mbedtls_psa_ecp_load_representation()
status
=
check_ecc_parameters
(
PSA_KEY_TYPE_ECC_GET_FAMILY
(
type
)
,
&
curve_bits
)
;
psa_crypto_ecp.c:140
mbedtls_psa_ecp_load_representation()
grp_id
=
mbedtls_ecc_group_from_psa
(
PSA_KEY_TYPE_ECC_GET_FAMILY
(
type
)
,
psa_crypto_ecp.c:146
mbedtls_psa_ecp_load_representation()
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
type
)
)
{
psa_crypto_ecp.c:160
mbedtls_psa_ecp_load_representation()
if
(
PSA_KEY_TYPE_ECC_GET_FAMILY
(
attributes
->
type
)
==
psa_crypto_ecp.c:228
mbedtls_psa_ecp_import_key()
psa_status_t
mbedtls_psa_ecp_export_key
(
psa_key_type_t
type
,
psa_crypto_ecp.c:251
mbedtls_psa_ecp_export_key()
mbedtls_psa_ecp_export_key()::type
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
type
)
)
{
psa_crypto_ecp.c:259
mbedtls_psa_ecp_export_key()
PSA_KEY_TYPE_ECC_PUBLIC_KEY
(
psa_crypto_ecp.c:306
mbedtls_psa_ecp_export_public_key()
PSA_KEY_TYPE_ECC_GET_FAMILY
(
attributes
->
type
)
)
,
psa_crypto_ecp.c:307
mbedtls_psa_ecp_export_public_key()
psa_ecc_family_t
curve
=
PSA_KEY_TYPE_ECC_GET_FAMILY
(
psa_crypto_ecp.c:327
mbedtls_psa_ecp_generate_key()
if
(
!
PSA_KEY_TYPE_IS_ECC_KEY_PAIR
(
attributes
->
type
)
||
psa_crypto_ecp.c:529
mbedtls_psa_key_agreement_ecdh()
PSA_KEY_TYPE_ECC_PUBLIC_KEY
(
curve
)
,
psa_crypto_ecp.c:550
mbedtls_psa_key_agreement_ecdh()
psa_status_t
mbedtls_psa_ecp_load_representation
(
psa_key_type_t
type
,
psa_crypto_ecp.h:33
mbedtls_psa_ecp_load_representation()
mbedtls_psa_ecp_load_representation()::type
psa_status_t
mbedtls_psa_ecp_export_key
(
psa_key_type_t
type
,
psa_crypto_ecp.h:88
mbedtls_psa_ecp_export_key()
mbedtls_psa_ecp_export_key()::type
psa_key_type_t
type
=
attributes
->
type
;
psa_crypto_ffdh.c:154
mbedtls_psa_ffdh_export_public_key()
if
(
PSA_KEY_TYPE_IS_PUBLIC_KEY
(
type
)
)
{
psa_crypto_ffdh.c:156
mbedtls_psa_ffdh_export_public_key()
if
(
!
PSA_KEY_TYPE_IS_DH_KEY_PAIR
(
psa_get_key_type
(
attributes
)
)
)
{
psa_crypto_ffdh.c:277
mbedtls_psa_ffdh_key_agreement()
psa_key_type_t
type
,
const
uint8_t
*
data
,
size_t
data_length
,
psa_crypto_rsa.c:60
mbedtls_psa_rsa_load_representation()
mbedtls_psa_rsa_load_representation()::type
if
(
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto_rsa.c:73
mbedtls_psa_rsa_load_representation()
psa_status_t
mbedtls_psa_rsa_export_key
(
psa_key_type_t
type
,
psa_crypto_rsa.c:151
mbedtls_psa_rsa_export_key()
mbedtls_psa_rsa_export_key()::type
if
(
PSA_KEY_TYPE_IS_KEY_PAIR
(
type
)
)
{
psa_crypto_rsa.c:163
mbedtls_psa_rsa_export_key()
status
=
mbedtls_psa_rsa_export_key
(
PSA_KEY_TYPE_RSA_PUBLIC_KEY
,
psa_crypto_rsa.c:201
mbedtls_psa_rsa_export_public_key()
if
(
PSA_KEY_TYPE_IS_RSA
(
attributes
->
type
)
)
{
psa_crypto_rsa.c:538
mbedtls_psa_asymmetric_encrypt()
if
(
attributes
->
type
==
PSA_KEY_TYPE_RSA_KEY_PAIR
)
{
psa_crypto_rsa.c:634
mbedtls_psa_asymmetric_decrypt()
psa_status_t
mbedtls_psa_rsa_load_representation
(
psa_key_type_t
type
,
psa_crypto_rsa.h:25
mbedtls_psa_rsa_load_representation()
mbedtls_psa_rsa_load_representation()::type
psa_status_t
mbedtls_psa_rsa_export_key
(
psa_key_type_t
type
,
psa_crypto_rsa.h:70
mbedtls_psa_rsa_export_key()
mbedtls_psa_rsa_export_key()::type
psa_key_type_t
*
type
,
ssl_misc.h:1601
mbedtls_ssl_get_psa_curve_info_from_tls_id()
mbedtls_ssl_get_psa_curve_info_from_tls_id()::type
psa_key_type_t
*
type
,
ssl_tls.c:6302
mbedtls_ssl_get_psa_curve_info_from_tls_id()
mbedtls_ssl_get_psa_curve_info_from_tls_id()::type
*
type
=
PSA_KEY_TYPE_ECC_KEY_PAIR
(
tls_id_match_table
[
i
]
.
psa_family
)
;
ssl_tls.c:6308
mbedtls_ssl_get_psa_curve_info_from_tls_id()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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
Instance
Scope
Location
Project
psa_set_key_type()::type
psa_set_key_type()
crypto.h:309
return
psa_get_key_type()
crypto.h:339
psa_aead_operation_s::key_type
psa_aead_operation_s
crypto_struct.h:172
psa_key_attributes_s::type
psa_key_attributes_s
crypto_struct.h:300
return
psa_get_key_type()
crypto_struct.h:425
mbedtls_psa_aead_operation_t::key_type
mbedtls_psa_aead_operation_t
crypto_builtin_composites.h:81
mbedtls_ssl_get_psa_curve_info_from_tls_id()::type
mbedtls_ssl_get_psa_curve_info_from_tls_id()
ssl_misc.h:1601
key_type_is_raw_bytes()::type
key_type_is_raw_bytes()
psa_crypto.c:86
psa_can_do_cipher()::key_type
psa_can_do_cipher()
psa_crypto.c:290
psa_validate_unstructured_key_bit_size()::type
psa_validate_unstructured_key_bit_size()
psa_crypto.c:609
psa_mac_key_can_do()::key_type
psa_mac_key_can_do()
psa_crypto.c:681
psa_key_policy_algorithm_intersection()::key_type
psa_key_policy_algorithm_intersection()
psa_crypto.c:813
psa_key_algorithm_permits()::key_type
psa_key_algorithm_permits()
psa_crypto.c:911
psa_key_policy_permits()::key_type
psa_key_policy_permits()
psa_crypto.c:1010
psa_restrict_key_policy()::key_type
psa_restrict_key_policy()
psa_crypto.c:1050
psa_key_derivation_check_input_type()::key_type
psa_key_derivation_check_input_type()
psa_crypto.c:7307
psa_key_derivation_input_internal()::key_type
psa_key_derivation_input_internal()
psa_crypto.c:7355
psa_validate_key_type_and_size_for_key_generation()::type
psa_validate_key_type_and_size_for_key_generation()
psa_crypto.c:7860
mbedtls_cipher_values_from_psa()::key_type
mbedtls_cipher_values_from_psa()
psa_crypto_cipher.h:32
mbedtls_cipher_info_from_psa()::key_type
mbedtls_cipher_info_from_psa()
psa_crypto_cipher.h:50
psa_can_do_cipher()::key_type
psa_can_do_cipher()
psa_crypto_core.h:49
psa_validate_unstructured_key_bit_size()::type
psa_validate_unstructured_key_bit_size()
psa_crypto_core.h:605
mbedtls_psa_rsa_load_representation()::type
mbedtls_psa_rsa_load_representation()
psa_crypto_rsa.h:25
mbedtls_psa_rsa_export_key()::type
mbedtls_psa_rsa_export_key()
psa_crypto_rsa.h:70
mbedtls_psa_ecp_load_representation()::type
mbedtls_psa_ecp_load_representation()
psa_crypto_ecp.h:33
mbedtls_psa_ecp_export_key()::type
mbedtls_psa_ecp_export_key()
psa_crypto_ecp.h:88
mbedtls_cipher_validate_values()::key_type
mbedtls_cipher_validate_values()
psa_crypto_cipher.c:31
mbedtls_cipher_values_from_psa()::key_type
mbedtls_cipher_values_from_psa()
psa_crypto_cipher.c:128
mbedtls_cipher_info_from_psa()::key_type
mbedtls_cipher_info_from_psa()
psa_crypto_cipher.c:260
mbedtls_psa_ecp_load_representation()::type
mbedtls_psa_ecp_load_representation()
psa_crypto_ecp.c:91
mbedtls_psa_ecp_export_key()::type
mbedtls_psa_ecp_export_key()
psa_crypto_ecp.c:251
mbedtls_psa_rsa_load_representation()::type
mbedtls_psa_rsa_load_representation()
psa_crypto_rsa.c:60
mbedtls_psa_rsa_export_key()::type
mbedtls_psa_rsa_export_key()
psa_crypto_rsa.c:151
mbedtls_ssl_get_psa_curve_info_from_tls_id()::type
mbedtls_ssl_get_psa_curve_info_from_tls_id()
ssl_tls.c:6302
Lifecycle
from
examples
All items filtered out
All items filtered out