Use PUBKEY_LEN instead of hard coding