Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SecKeyGeneratePair public exponent

Is it possible to change the default public exponent (e) when generating an RSA key pair using SecKeyGeneratePair?

I am aware 65537 is a good default, so this is just a question about whether it is technically possible.

like image 555
Paul Kehrer Avatar asked Feb 09 '14 00:02

Paul Kehrer


1 Answers

No, it's not.

From https://github.com/unofficial-opensource-apple/Security, Security/sec/Security/SecRSAKey.c:

/* TODO: Add support for kSecPublicExponent parameter. */
static uint8_t e[] = { 0x01, 0x00, 0x01 }; // Default is 65537
like image 161
Ewan Mellor Avatar answered Sep 27 '22 16:09

Ewan Mellor