security: documentation: Fix doc comment for PublicKey constructor and getDigest.