how to set RSA private key into SE050

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to set RSA private key into SE050

2,297 Views
yang_lee
Contributor III

Hi everone, now I want to set RSA private key into SE050 but this function return fail: sss_key_store_set_key(). Is there a problem with the way I pass parameters to that function? Please help me.

My code below:

sss_status_t ex_sss_entry_user_set_privKey(ex_sss_boot_ctx_t *pCtx, uint32_t objectID, uint8_t *key_inject, size_t keyLen,)
{
  sss_status_t status = kStatus_SSS_Success;
    /* Policies for key */
    const sss_policy_u key_withPol = {
        .type = KPolicy_Asym_Key,
        /*Authentication object based on SE05X_AUTH*/
        .auth_obj_id = objectID,
        .policy = {
            /*Asymmetric key policy*/
            .asymmkey = {
                /*Policy for sign*/
                .can_Sign = 1,
                /*Policy for verify*/
                .can_Verify = 1,
                /*Policy for encrypt*/
                .can_Encrypt = 1,
                /*Policy for decrypt*/
                .can_Decrypt = 1,
                /*Policy for Key Derivation*/
                .can_KD = 1,
                /*Policy for wrapped object*/
                .can_Wrap = 1,
                /*Policy to re-write object*/
                .can_Write = 1,
                /*Policy for reading object*/
                .can_Read = 1,
                /*Policy to use object for attestation*/
                .can_Attest = 1,
            }
        }
    };
 
    /* Common rules */
    const sss_policy_u common = {
        .type = KPolicy_Common,
        /*Authentication object based on SE05X_AUTH*/
        .auth_obj_id = objectID,
        .policy = {
        .common = {
        /*Secure Messaging*/
        .req_Sm = 0,
        /*Policy to Delete object*/
        .can_Delete = 1,
        /*Forbid all operations on object*/
        .forbid_All = 0,
    }
    }
    };
 
    /* create policy set */
    sss_policy_t policy_for_ec_key = {
        .nPolicies = 2,
        .policies = { &key_withPol, &common }
    };
#ifdef GET_FREE_MEM
  sss_se05x_session_t *pSession = (sss_se05x_session_t *)&pCtx->session;
  uint16_t free_mem = 0;
#endif
 
  /* initialize keyObject with key store */
  status = sss_key_object_init(&key_object, &pCtx->ks);
  if (status != kStatus_SSS_Success)
  {
    return status;  /* return error if can't initialize keyObject */
  }
 
/* allocate/pre-provision memory for new key */
  status = sss_key_object_allocate_handle(&key_object,
                                          objectID,
                                          kSSS_KeyPart_Private,
                                          kSSS_CipherType_RSA_CRT,     
                                          keyLen,
                                          kKeyObject_Mode_Persistent);
  if (status != kStatus_SSS_Success)
  {
    return status;
  }
 
/* moves data[] from memory to the destination key store */
  status = sss_key_store_set_key(&pCtx->ks, &key_object, key_inject, keyLen, keyLen * 8, &policy_for_ec_key, 0);
  if (status != kStatus_SSS_Success)
  {
    return status;
  }
 
  return status;   /* return successful if save data successfully */
}
Labels (1)
Tags (1)
0 Kudos
Reply
11 Replies

2,268 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

Which SE05x variant are you playing with? Please kindly clarify.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,259 Views
yang_lee
Contributor III

Hi Kan, 

Thanks for reply, I am using SE050C2HQ1 for my product. It seems to support RSA.

yang_lee_0-1761720445844.png

 

In addition, when I use OM-SE051 ARD-E Dev Kit to run seTool to set RSA key (using PlugAndTrust_v04.07.00_20250210), I get an error described as below image:

yang_lee_1-1761720788886.png

 

Thanks,

 

 

0 Kudos
Reply

2,208 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

Please try with RSA RAW instead, the RSA CTR doesn't accept the pri key value, please check the APDU spec for more details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,175 Views
yang_lee
Contributor III

Hi @Kan_Li ,

I noticed that the code in seTool is using kSSS_CipherType_RSA_CRT.

yang_lee_0-1761913504498.png

 

And I also tried with raw data but still failed. The RSA key that I pass into the ex_sss_entry_user_set_privKey function is attached below:

Is there any problem with this raw key?

Thanks

0 Kudos
Reply

2,099 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

How did you generate the RSA Key for SeTool externally?  Actually we have a demo of se05x_Delete_and_test_provision which provides an example for that purpose, please kindly refer to the following for details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,094 Views
yang_lee
Contributor III

Hi @Kan_Li,

I generated the RSA key by Openssl.

I think I will use it with ECC key instead of RSA key because now I have successfully used it with ECC key. Thanks for your kind support.

Brg.

0 Kudos
Reply

2,083 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

Thanks for the clarification! 

 

Please kindly have SeTool examples regarding RSA key pair as below:

openssl genpkey -algorithm RSA -out RsaKeyPair2048.pem -pkeyopt rsa_keygen_bits:2048
./seTool setRsaKeyPair 2048 0xF0000211 RsaKeyPair2048.pem none

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

2,053 Views
yang_lee
Contributor III

Hi @Kan_Li,

Thanks for suggestions.

I built Plug & Trust MW version 04.07.00 and tried with SE051 but it still fails when using RSA key while succeeds with ECC key. Details are shown in the image below:

yang_lee_1-1762248358170.png

 

Brg.

Tags (1)
0 Kudos
Reply

2,012 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

Was the RSA key file generated with the following command?

openssl genpkey -algorithm RSA -out RsaKeyPair2048.pem -pkeyopt rsa_keygen_bits:2048

Are you using OM-SE050E-ARD ? Indeed SE050E doesn't support RSA.

 

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,971 Views
yang_lee
Contributor III

Hi @Kan_Li,

1. “Was the RSA key file generated with the following command?”
Yes, the RSA key file was generated using the command:
"openssl genpkey -algorithm RSA -out RsaKeyPair2048.pem -pkeyopt rsa_keygen_bits:2048."

2. “Are you using OM-SE050E-ARD? Indeed SE050E doesn't support RSA.”
No, I am using OM-SE051-ARD (SE051C2HQ1) instead of OM-SE050E-ARD. Actually I have both of these development kits and both build SE-PLUG-TRUST-MW_04.07.00 to run the examples with SE05x. Besides, the product I am developing is using SE050C2HQ1 (for both Android and Bare metal platform), everything seems to work fine except RSA.

Best regard.

 

 

0 Kudos
Reply

1,814 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @yang_lee ,

 

Sorry, my bad! Seems this tool has updated its parameters, please use the following command instead.

seTool setRSA 2048 0xF0000211 RsaKeyPair2048.pem none

Please kindly have my result as below:

Kan_Li_0-1762482313155.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2194325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehow%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20everone%2C%20now%20I%20want%20to%20set%20RSA%20private%20key%20into%20SE050%20but%20this%20function%20return%20fail%3A%26nbsp%3Bsss_key_store_set_key().%26nbsp%3BIs%20there%20a%20problem%20with%20the%20way%20I%20pass%20parameters%20to%20that%20function%3F%20Please%20help%20me.%3C%2FP%3E%3CP%3EMy%20code%20below%3A%3C%2FP%3E%3CDIV%3Esss_status_t%20ex_sss_entry_user_set_privKey(ex_sss_boot_ctx_t%20*pCtx%2C%20uint32_t%20objectID%2C%20uint8_t%20*key_inject%2C%20size_t%20keyLen%2C)%3C%2FDIV%3E%3CDIV%3E%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20sss_status_t%20status%20%3D%20kStatus_SSS_Success%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%2F*%20Policies%20for%20key%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20const%20sss_policy_u%20key_withPol%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.type%20%3D%20KPolicy_Asym_Key%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Authentication%20object%20based%20on%20SE05X_AUTH*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.auth_obj_id%20%3D%20objectID%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.policy%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Asymmetric%20key%20policy*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.asymmkey%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20sign*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Sign%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20verify*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Verify%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20encrypt*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Encrypt%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20decrypt*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Decrypt%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20Key%20Derivation*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_KD%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20wrapped%20object*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Wrap%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20to%20re-write%20object*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Write%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20for%20reading%20object*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Read%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20to%20use%20object%20for%20attestation*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Attest%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%2F*%20Common%20rules%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20const%20sss_policy_u%20common%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.type%20%3D%20KPolicy_Common%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Authentication%20object%20based%20on%20SE05X_AUTH*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.auth_obj_id%20%3D%20objectID%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.policy%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.common%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Secure%20Messaging*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.req_Sm%20%3D%200%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Policy%20to%20Delete%20object*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.can_Delete%20%3D%201%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*Forbid%20all%20operations%20on%20object*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.forbid_All%20%3D%200%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%2F*%20create%20policy%20set%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20sss_policy_t%20policy_for_ec_key%20%3D%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.nPolicies%20%3D%202%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20.policies%20%3D%20%7B%20%26amp%3Bkey_withPol%2C%20%26amp%3Bcommon%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%7D%3B%3C%2FDIV%3E%3CDIV%3E%23ifdef%20GET_FREE_MEM%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20sss_se05x_session_t%20*pSession%20%3D%20(sss_se05x_session_t%20*)%26amp%3BpCtx-%26gt%3Bsession%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20uint16_t%20free_mem%20%3D%200%3B%3C%2FDIV%3E%3CDIV%3E%23endif%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%2F*%20initialize%20keyObject%20with%20key%20store%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20status%20%3D%20sss_key_object_init(%26amp%3Bkey_object%2C%20%26amp%3BpCtx-%26gt%3Bks)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20if%20(status%20!%3D%20kStatus_SSS_Success)%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%20status%3B%26nbsp%3B%20%2F*%20return%20error%20if%20can't%20initialize%20keyObject%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%2F*%20allocate%2Fpre-provision%20memory%20for%20new%20key%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20status%20%3D%20sss_key_object_allocate_handle(%26amp%3Bkey_object%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20objectID%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20kSSS_KeyPart_Private%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20kSSS_CipherType_RSA_CRT%2C%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20keyLen%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20kKeyObject_Mode_Persistent)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20if%20(status%20!%3D%20kStatus_SSS_Success)%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%20status%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%2F*%20moves%20data%5B%5D%20from%20memory%20to%20the%20destination%20key%20store%20*%2F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20status%20%3D%20sss_key_store_set_key(%26amp%3BpCtx-%26gt%3Bks%2C%20%26amp%3Bkey_object%2C%20key_inject%2C%20keyLen%2C%20keyLen%20*%208%2C%20%26amp%3Bpolicy_for_ec_key%2C%200)%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20if%20(status%20!%3D%20kStatus_SSS_Success)%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%26nbsp%3B%20return%20status%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20%7D%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%20return%20status%3B%26nbsp%3B%20%26nbsp%3B%2F*%20return%20successful%20if%20save%20data%20successfully%20*%2F%3C%2FDIV%3E%3CDIV%3E%7D%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2194325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ESE050%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200443%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200443%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ESorry%2C%20my%20bad!%20Seems%20this%20tool%20has%20updated%20its%20parameters%2C%20please%20use%20the%20following%20command%20instead.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EseTool%20setRSA%202048%200xF0000211%20RsaKeyPair2048.pem%20none%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EPlease%20kindly%20have%20my%20result%20as%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Kan_Li_0-1762482313155.png%22%20style%3D%22width%3A%20639px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Kan_Li_0-1762482313155.png%22%20style%3D%22width%3A%20639px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F364354i646EB4F61D3333B3%2Fimage-dimensions%2F639x214%3Fv%3Dv2%22%20width%3D%22639%22%20height%3D%22214%22%20role%3D%22button%22%20title%3D%22Kan_Li_0-1762482313155.png%22%20alt%3D%22Kan_Li_0-1762482313155.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2199611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199611%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59276%22%20target%3D%22_blank%22%3E%40Kan_Li%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%3CSTRONG%3E1.%20%E2%80%9CWas%20the%20RSA%20key%20file%20generated%20with%20the%20following%20command%3F%E2%80%9D%3C%2FSTRONG%3E%3CBR%20%2F%3EYes%2C%20the%20RSA%20key%20file%20was%20generated%20using%20the%20command%3A%3CBR%20%2F%3E%22openssl%20genpkey%20-algorithm%20RSA%20-out%20RsaKeyPair2048.pem%20-pkeyopt%20rsa_keygen_bits%3A2048.%22%3C%2FP%3E%3CP%3E%3CSTRONG%3E2.%20%E2%80%9CAre%20you%20using%20OM-SE050E-ARD%3F%20Indeed%20SE050E%20doesn't%20support%20RSA.%E2%80%9D%3C%2FSTRONG%3E%3CBR%20%2F%3ENo%2C%20I%20am%20using%20OM-SE051-ARD%20(SE051C2HQ1)%20instead%20of%20OM-SE050E-ARD.%20Actually%20I%20have%20both%20of%20these%20development%20kits%20and%20both%20build%20SE-PLUG-TRUST-MW_04.07.00%20to%20run%20the%20examples%20with%20SE05x.%20Besides%2C%20the%20product%20I%20am%20developing%20is%20using%20SE050C2HQ1%20(for%20both%20Android%20and%20Bare%20metal%20platform)%2C%20everything%20seems%20to%20work%20fine%20except%20RSA.%3C%2FP%3E%3CP%3EBest%20regard.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2198809%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198809%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWas%20the%20RSA%20key%20file%20generated%20with%20the%20following%20command%3F%3C%2FP%3E%0A%3CPRE%20class%3D%22bp-text%20bp-text-plain%20hljs%20bp-is-scrollable%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22bp-text-code%20txt%22%3Eopenssl%20genpkey%20-algorithm%20RSA%20-out%20RsaKeyPair2048.pem%20-pkeyopt%20rsa_keygen_bits%3A2048%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EAre%20you%20using%20OM-SE050E-ARD%20%3F%20Indeed%20SE050E%20doesn't%20support%20RSA.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2198195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198195%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59276%22%20target%3D%22_blank%22%3E%40Kan_Li%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EThanks%20for%20suggestions.%3C%2FP%3E%3CP%3EI%20built%20Plug%20%26amp%3B%20Trust%20MW%20version%2004.07.00%20and%20tried%20with%20SE051%20but%20it%20still%20fails%20when%20using%20RSA%20key%20while%20succeeds%20with%20ECC%20key.%20Details%20are%20shown%20in%20the%20image%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yang_lee_1-1762248358170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yang_lee_1-1762248358170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363906iF84F7EE2F0BB0D9E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yang_lee_1-1762248358170.png%22%20alt%3D%22yang_lee_1-1762248358170.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBrg.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197860%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%20for%20the%20clarification!%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20kindly%20have%20SeTool%20examples%20regarding%20RSA%20key%20pair%20as%20below%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22bp-text%20bp-text-plain%20hljs%20bp-is-scrollable%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22bp-text-code%20txt%22%3Eopenssl%20genpkey%20-algorithm%20RSA%20-out%20RsaKeyPair2048.pem%20-pkeyopt%20rsa_keygen_bits%3A2048%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CPRE%20class%3D%22bp-text%20bp-text-plain%20hljs%20bp-is-scrollable%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22bp-text-code%20txt%22%3E.%2FseTool%20setRsaKeyPair%202048%200xF0000211%20RsaKeyPair2048.pem%20none%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20that%20helps%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59276%22%20target%3D%22_blank%22%3E%40Kan_Li%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EI%20generated%20the%20RSA%20key%20by%20Openssl.%3C%2FP%3E%3CP%3EI%20think%20I%20will%20use%20it%20with%20ECC%20key%20instead%20of%20RSA%20key%20because%20now%20I%20have%20successfully%20used%20it%20with%20ECC%20key.%20Thanks%20for%20your%20kind%20support.%3C%2FP%3E%3CP%3EBrg.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197281%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197281%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHow%20did%20you%20generate%20the%20RSA%20Key%20for%20SeTool%20externally%3F%26nbsp%3B%20Actually%20we%20have%20a%20demo%20of%26nbsp%3Bse05x_Delete_and_test_provision%20which%20provides%20an%20example%20for%20that%20purpose%2C%20please%20kindly%20refer%20to%20the%20following%20for%20details.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorKan_Li_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196641%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F59276%22%20target%3D%22_blank%22%3E%40Kan_Li%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EI%20noticed%20that%20the%20code%20in%20seTool%20is%20using%20kSSS_CipherType_RSA_CRT.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yang_lee_0-1761913504498.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yang_lee_0-1761913504498.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363508i5047F9AF63F5ACFF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yang_lee_0-1761913504498.png%22%20alt%3D%22yang_lee_0-1761913504498.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAnd%20I%20also%20tried%20with%20raw%20data%20but%20still%20failed.%20The%20RSA%20key%20that%20I%20pass%20into%20the%20ex_sss_entry_user_set_privKey%20function%20is%20attached%20below%3A%3C%2FP%3E%3CP%3EIs%20there%20any%20problem%20with%20this%20raw%20key%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195634%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20try%20with%20RSA%20RAW%20instead%2C%20the%20RSA%20CTR%20doesn't%20accept%20the%20pri%20key%20value%2C%20please%20check%20the%20APDU%20spec%20for%20more%20details.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194854%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Kan%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20reply%2C%20I%20am%20using%26nbsp%3BSE050C2HQ1%20for%20my%20product.%26nbsp%3BIt%20seems%20to%20support%20RSA.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yang_lee_0-1761720445844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yang_lee_0-1761720445844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363017i35EF00EEFE24E0BE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yang_lee_0-1761720445844.png%22%20alt%3D%22yang_lee_0-1761720445844.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20addition%2C%20when%20I%20use%20OM-SE051%20ARD-E%20Dev%20Kit%20to%20run%20seTool%20to%20set%20RSA%20key%20(using%20PlugAndTrust_v04.07.00_20250210)%2C%20I%20get%20an%20error%20described%20as%20below%20image%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yang_lee_1-1761720788886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yang_lee_1-1761720788886.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F363018iC6E2DA9B762BCA05%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yang_lee_1-1761720788886.png%22%20alt%3D%22yang_lee_1-1761720788886.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194768%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20set%20RSA%20private%20key%20into%20SE050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194768%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252826%22%20target%3D%22_blank%22%3E%40yang_lee%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWhich%20SE05x%20variant%20are%20you%20playing%20with%3F%20Please%20kindly%20clarify.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20great%20day%2C%3CBR%20%2F%3EKan%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3CBR%20%2F%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E