Skip to content

Commit 03bb603

Browse files
committed
Explain the public_exponent value
1 parent 1894035 commit 03bb603

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/p11_key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ int pkcs11_rsa_keygen(PKCS11_SLOT_private *slot, unsigned int bits,
394394
CKM_RSA_PKCS_KEY_PAIR_GEN, NULL_PTR, 0
395395
};
396396
CK_ULONG num_bits = bits;
397-
CK_BYTE public_exponent[] = { 1, 0, 1 };
397+
CK_BYTE public_exponent[] = { 0x01, 0x00, 0x01 }; /* 65537 (0x10001) */
398398
CK_OBJECT_HANDLE pub_key_obj, priv_key_obj;
399399
int rv;
400400

0 commit comments

Comments
 (0)