File tree 7 files changed +25
-25
lines changed
7 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 22
22
toolchain : stable
23
23
override : true
24
24
- name : Download Mbed Crypto
25
- run : git clone -b mbedtls-2.27 .0 https://github.com/ARMmbed/mbedtls.git
25
+ run : git clone -b v3.0 .0 https://github.com/ARMmbed/mbedtls.git
26
26
- name : armv7-unknown-linux-gnueabihf
27
27
run : |
28
28
rustup target add armv7-unknown-linux-gnueabihf
Original file line number Diff line number Diff line change 6
6
# Compile Mbed Crypto for the test application
7
7
- git clone https://github.com/ARMmbed/mbedtls.git
8
8
- pushd mbedtls
9
- - git checkout mbedtls-2.27 .0
9
+ - git checkout v3.0 .0
10
10
- ./scripts/config.py crypto
11
11
- ./scripts/config.py set MBEDTLS_PSA_CRYPTO_SE_C
12
12
- SHARED=1 make
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ int main()
53
53
PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION (PSA_KEY_PERSISTENCE_DEFAULT , (psa_key_location_t )0x000001 ));
54
54
psa_set_key_usage_flags (& key_pair_attributes , PSA_KEY_USAGE_SIGN_HASH | PSA_KEY_USAGE_VERIFY_HASH );
55
55
psa_set_key_algorithm (& key_pair_attributes , alg );
56
- psa_set_key_type (& key_pair_attributes , PSA_KEY_TYPE_ECC_KEY_PAIR (PSA_ECC_CURVE_SECP_R1 ));
56
+ psa_set_key_type (& key_pair_attributes , PSA_KEY_TYPE_ECC_KEY_PAIR (PSA_ECC_FAMILY_SECP_R1 ));
57
57
psa_set_key_bits (& key_pair_attributes , 256U );
58
58
59
59
status = psa_generate_key (& key_pair_attributes , & key_pair_handle );
Original file line number Diff line number Diff line change 14
14
git clone https://github.com/ARMmbed/mbedtls.git
15
15
fi
16
16
pushd mbedtls
17
- git checkout mbedtls-2.27 .0
17
+ git checkout v3.0 .0
18
18
popd
19
19
20
20
# ################
32
32
# C Tests #
33
33
# ##########
34
34
35
- cp /tmp/NVChip .
35
+ cp /tmp/ondisk/ NVChip .
36
36
# Start and configure TPM server
37
37
tpm_server &
38
38
sleep 5
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ use psa_crypto::types::algorithm::AsymmetricSignature;
10
10
use std:: convert:: TryFrom ;
11
11
12
12
pub ( super ) static METHODS : psa_drv_se_asymmetric_t = psa_drv_se_asymmetric_t {
13
- p_sign : Some ( p_sign) ,
14
- p_verify : Some ( p_verify) ,
15
- p_encrypt : None ,
16
- p_decrypt : None ,
13
+ private_p_sign : Some ( p_sign) ,
14
+ private_p_verify : Some ( p_verify) ,
15
+ private_p_encrypt : None ,
16
+ private_p_decrypt : None ,
17
17
} ;
18
18
19
19
unsafe extern "C" fn p_sign (
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ use psa_crypto::types::key::Attributes;
10
10
use std:: convert:: TryFrom ;
11
11
12
12
pub ( super ) static METHODS : psa_drv_se_key_management_t = psa_drv_se_key_management_t {
13
- p_allocate : Some ( p_allocate) ,
14
- p_validate_slot_number : Some ( p_validate_slot_number) ,
15
- p_import : Some ( p_import) ,
16
- p_generate : Some ( p_generate) ,
17
- p_destroy : Some ( p_destroy) ,
18
- p_export : None ,
19
- p_export_public : Some ( p_export_public) ,
13
+ private_p_allocate : Some ( p_allocate) ,
14
+ private_p_validate_slot_number : Some ( p_validate_slot_number) ,
15
+ private_p_import : Some ( p_import) ,
16
+ private_p_generate : Some ( p_generate) ,
17
+ private_p_destroy : Some ( p_destroy) ,
18
+ private_p_export : None ,
19
+ private_p_export_public : Some ( p_export_public) ,
20
20
} ;
21
21
22
22
unsafe extern "C" fn p_allocate (
Original file line number Diff line number Diff line change @@ -67,15 +67,15 @@ lazy_static! {
67
67
/// Parsec SE Driver structure
68
68
#[ no_mangle]
69
69
pub static mut PARSEC_SE_DRIVER : psa_drv_se_t = psa_drv_se_t {
70
- hal_version : 5 ,
71
- persistent_data_size : 0 ,
72
- p_init : Some ( p_init) ,
73
- key_management : & key_management:: METHODS as * const psa_drv_se_key_management_t ,
74
- mac : ptr:: null ( ) ,
75
- cipher : ptr:: null ( ) ,
76
- aead : ptr:: null ( ) ,
77
- asymmetric : & asymmetric:: METHODS as * const psa_drv_se_asymmetric_t ,
78
- derivation : ptr:: null ( ) ,
70
+ private_hal_version : 5 ,
71
+ private_persistent_data_size : 0 ,
72
+ private_p_init : Some ( p_init) ,
73
+ private_key_management : & key_management:: METHODS as * const psa_drv_se_key_management_t ,
74
+ private_mac : ptr:: null ( ) ,
75
+ private_cipher : ptr:: null ( ) ,
76
+ private_aead : ptr:: null ( ) ,
77
+ private_asymmetric : & asymmetric:: METHODS as * const psa_drv_se_asymmetric_t ,
78
+ private_derivation : ptr:: null ( ) ,
79
79
} ;
80
80
81
81
unsafe extern "C" fn p_init (
You can’t perform that action at this time.
0 commit comments