Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a deterministic RSA key with OpenTEE #1

Open
aminusamine opened this issue Dec 15, 2015 · 5 comments
Open

Create a deterministic RSA key with OpenTEE #1

aminusamine opened this issue Dec 15, 2015 · 5 comments

Comments

@aminusamine
Copy link

Hello,

I also working on openTEE and i saw in the GPD internal API that GenerateKey function generates random keys, is there a way to generate deterministic keys according to a parameter transmitted ?

I saw that The TEE_Attribute* argument is indeed used as a public exponent but i'm not sure. Can you please help me on this,

Thank you,
Best regards

@brianmcgillion
Copy link
Member

Hi,

Unfortunately GP does not provide a mechanism to create deterministic keys, only random ones.

Br,
Brian

@aminusamine
Copy link
Author

Thanks,

I found this header in the tee_storage_api :

static TEE_Result gen_rsa_keypair(TEE_ObjectHandle obj, uint32_t key_size, TEE_Attribute *params,
uint32_t paramCount)
in this function we can found
int pub_exp_index_at_params =
get_attr_index_from_attrArr(TEE_ATTR_RSA_PUBLIC_EXPONENT, params, paramCount);

Do you think that if we create a TEE_Attribute with the public exponent, the process will be deterministic ?

BR,

@brianmcgillion
Copy link
Member

No, I do not believe so.

The public exponent is generally one of either - [3, 5, 17, 257, 65537] with 65537 the most commonly used.

@aminusamine
Copy link
Author

Thank you for your answer,

Do you think it is possible to add this feature ? and if the answer is yes, where the modification should be done ?

Thanks again,
BR

@cezane
Copy link

cezane commented Aug 9, 2018

I think this can be closed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants