Skip to content

Commit

Permalink
Curve25519: Add missing static assertion.
Browse files Browse the repository at this point in the history
Sync with BoringSSL.
  • Loading branch information
briansmith committed Oct 30, 2023
1 parent b6c35d5 commit 19a93d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/curve25519/curve25519.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ static void fe_copy(fe *h, const fe *f) {
}

static void fe_copy_lt(fe_loose *h, const fe *f) {
OPENSSL_STATIC_ASSERT(sizeof(fe_loose) == sizeof(fe), "fe and fe_loose mismatch");
fe_limbs_copy(h->v, f->v);
}

Expand Down

0 comments on commit 19a93d2

Please sign in to comment.