Fix class name typo
Use PUBKEY_LEN instead of hard coding