Update fiat-crypto.

The files no longer need to be patched because fiat-crypto now has its
own copy of our value barrier. It does, however, require syncing our
NO_ASM define with fiat's.

fiat-crypto is now licensed under any of MIT, BSD 1-clause, or Apache 2.
I've stuck with the MIT one as that's what we were previously importing.

No measurable perf difference before/after this CL, with GCC or Clang on
x86_64.

Change-Id: I2939fd517de37aabdea3ead49150135200a1b112
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/52045
Reviewed-by: Adam Langley <agl@google.com>
fips-20220613
David Benjamin 3 years ago committed by Adam Langley
parent 21440764db
commit 8c8e7a683f
  1. 4
      crypto/curve25519/curve25519.c
  2. 4
      crypto/fipsmodule/ec/p256.c
  3. 2
      third_party/fiat/LICENSE
  4. 6
      third_party/fiat/METADATA
  5. 1898
      third_party/fiat/curve25519_32.h
  6. 1149
      third_party/fiat/curve25519_64.h
  7. 5489
      third_party/fiat/p256_32.h
  8. 1759
      third_party/fiat/p256_64.h

@ -36,6 +36,10 @@
// Various pre-computed constants.
#include "./curve25519_tables.h"
#if defined(OPENSSL_NO_ASM)
#define FIAT_25519_NO_ASM
#endif
#if defined(BORINGSSL_CURVE25519_64BIT)
#include "../../third_party/fiat/curve25519_64.h"
#else

@ -31,8 +31,10 @@
#include "../delocate.h"
#include "./internal.h"
#if defined(OPENSSL_NO_ASM)
#define FIAT_P256_NO_ASM
#endif
// MSVC does not implement uint128_t, and crashes with intrinsics
#if defined(BORINGSSL_HAS_UINT128)
#define BORINGSSL_NISTP256_64BIT 1
#include "../../../third_party/fiat/p256_64.h"

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2015-2016 the fiat-crypto authors (see
Copyright (c) 2015-2020 the fiat-crypto authors (see
https://github.com/mit-plv/fiat-crypto/blob/master/AUTHORS).
Permission is hereby granted, free of charge, to any person obtaining a copy

@ -6,8 +6,8 @@ third_party {
type: GIT
value: "https://github.com/mit-plv/fiat-crypto"
}
version: "0884b6d374a9d937c44bf024fe3a647ffae2c540"
last_upgrade_date { year: 2020 month: 4 day: 16 }
version: "6ccc6638716d4632304baf1adbb5c47c3a12ea6f"
last_upgrade_date { year: 2022 month: 3 day: 22 }
local_modifications: "Files renamed to .h for BoringSSL integration. Select functions patched with value barriers."
local_modifications: "Files renamed to .h for BoringSSL integration. LICENSE file is LICENSE-MIT from upstream."
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save