6

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.

Paul Kehrer
  • 13,466
  • 4
  • 40
  • 57

1 Answers1

2

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
Ewan Mellor
  • 6,747
  • 1
  • 24
  • 39
  • Thanks for the info! I had actually trawled the Security framework source before but somehow failed to spot it. – Paul Kehrer Jun 08 '15 at 19:52