Browse Source

Change MUST_HAVE_AVX to MUST_HAVE_AVX2 since the other flags assume AVX2.

Fix some doc copypasta on goldilocks_verify.
master
Michael Hamburg 11 years ago
parent
commit
2265248265
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      Makefile
  2. +5
    -5
      goldilocks.h

+ 1
- 1
Makefile View File

@@ -3,7 +3,7 @@


CC = clang CC = clang
CFLAGS = -O3 -std=c99 -pedantic -Wall -Wextra -Werror \ CFLAGS = -O3 -std=c99 -pedantic -Wall -Wextra -Werror \
-mssse3 -maes -mavx2 -DMUST_HAVE_AVX -mbmi2 \
-mssse3 -maes -mavx2 -DMUST_HAVE_AVX2 -mbmi2 \
-ffunction-sections -fdata-sections -fomit-frame-pointer -fPIC \ -ffunction-sections -fdata-sections -fomit-frame-pointer -fPIC \
-DEXPERIMENT_ECDH_OBLITERATE_CT=1 -DEXPERIMENT_ECDH_STIR_IN_PUBKEYS=1 -DEXPERIMENT_ECDH_OBLITERATE_CT=1 -DEXPERIMENT_ECDH_STIR_IN_PUBKEYS=1




+ 5
- 5
goldilocks.h View File

@@ -148,13 +148,13 @@ goldilocks_sign (
* @warning This isn't even my final form! * @warning This isn't even my final form!
* @warning This function contains endian bugs. (TODO) * @warning This function contains endian bugs. (TODO)
* *
* @param [out] signature_out Space for the output signature.
* @param [in] message The message to be signed.
* @param [in] message_len The length of the message to be signed.
* @param [in] privkey My private key.
* @param [out] signature_out The signature.
* @param [in] message The message to be verified.
* @param [in] message_len The length of the message to be verified.
* @param [in] pubkey The signer's public key.
* *
* @retval GOLDI_EOK Success. * @retval GOLDI_EOK Success.
* @retval GOLDI_ECORRUPT My key is corrupt.
* @retval GOLDI_EINVAL The public key or signature is corrupt.
*/ */
int int
goldilocks_verify ( goldilocks_verify (


Loading…
Cancel
Save