SecKeyGeneratePair public exponent
Asked Answered
G

1

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.

Gardening answered 9/2, 2014 at 0:32 Comment(0)
O
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
Ootid answered 8/6, 2015 at 7:10 Comment(1)
Thanks for the info! I had actually trawled the Security framework source before but somehow failed to spot it.Gardening

© 2022 - 2024 — McMap. All rights reserved.