If the public key is not in the curve, the verification will simply
fail. There is little point verifying the validity of a signing public
key, since you have to trust its origin in the first place.
crypto_sign_final (&ctx, signature);
}
-int crypto_check_public_key(const u8 public_key[32])
-{
- ge A; // wasted result.
- return ge_frombytes_neg(&A, public_key);
-}
-
void crypto_check_init(crypto_check_ctx *ctx,
const u8 signature[64],
const u8 public_key[32])
const uint8_t public_key[32], // optional, may be 0
const uint8_t *message, size_t message_size);
-int crypto_check_public_key(const uint8_t public_key[32]);
-
// EdDSA check context. Do not rely on its contents or its size, they
// may change without notice.
typedef struct {