Skip to content

Commit

Permalink
Rename SPX files to have spx_ prefix.
Browse files Browse the repository at this point in the history
We can't have two source files with the same name, it seems, so since
crypto/spx/ will be going away, move its files out of the way so that
SLH-DSA can use those names.

Change-Id: Iedee8453cb77291eeff5ec33aa9836ea5d00d9a2
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/70908
Auto-Submit: Adam Langley <agl@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
  • Loading branch information
Adam Langley authored and Boringssl LUCI CQ committed Sep 5, 2024
1 parent 9224e6d commit 97322b2
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 80 deletions.
22 changes: 11 additions & 11 deletions build.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@
"crypto/rsa_extra/rsa_crypt.c",
"crypto/rsa_extra/rsa_print.c",
"crypto/siphash/siphash.c",
"crypto/spx/address.c",
"crypto/spx/fors.c",
"crypto/spx/merkle.c",
"crypto/spx/spx_address.c",
"crypto/spx/spx_fors.c",
"crypto/spx/spx_merkle.c",
"crypto/spx/spx.c",
"crypto/spx/spx_util.c",
"crypto/spx/thash.c",
"crypto/spx/wots.c",
"crypto/spx/spx_thash.c",
"crypto/spx/spx_wots.c",
"crypto/stack/stack.c",
"crypto/thread.c",
"crypto/thread_none.c",
Expand Down Expand Up @@ -534,13 +534,13 @@
"crypto/rand_extra/getrandom_fillin.h",
"crypto/rand_extra/sysrand_internal.h",
"crypto/rsa_extra/internal.h",
"crypto/spx/address.h",
"crypto/spx/fors.h",
"crypto/spx/merkle.h",
"crypto/spx/params.h",
"crypto/spx/spx_address.h",
"crypto/spx/spx_fors.h",
"crypto/spx/spx_merkle.h",
"crypto/spx/spx_params.h",
"crypto/spx/spx_thash.h",
"crypto/spx/spx_util.h",
"crypto/spx/thash.h",
"crypto/spx/wots.h",
"crypto/spx/spx_wots.h",
"crypto/trust_token/internal.h",
"crypto/x509/ext_dat.h",
"crypto/x509/internal.h",
Expand Down
10 changes: 5 additions & 5 deletions crypto/spx/spx.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
#include <openssl/experimental/spx.h>
#include <openssl/rand.h>

#include "./address.h"
#include "./fors.h"
#include "./merkle.h"
#include "./params.h"
#include "./spx_address.h"
#include "./spx_fors.h"
#include "./spx_merkle.h"
#include "./spx_params.h"
#include "./spx_util.h"
#include "./thash.h"
#include "./spx_thash.h"

void SPX_generate_key(uint8_t out_public_key[SPX_PUBLIC_KEY_BYTES],
uint8_t out_secret_key[SPX_SECRET_KEY_BYTES]) {
Expand Down
2 changes: 1 addition & 1 deletion crypto/spx/address.c → crypto/spx/spx_address.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <string.h>

#include "../internal.h"
#include "./address.h"
#include "./spx_address.h"
#include "./spx_util.h"


Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions crypto/spx/fors.c → crypto/spx/spx_fors.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

#include <string.h>

#include "./address.h"
#include "./fors.h"
#include "./params.h"
#include "./spx_address.h"
#include "./spx_fors.h"
#include "./spx_params.h"
#include "./spx_util.h"
#include "./thash.h"
#include "./spx_thash.h"

void spx_fors_sk_gen(uint8_t *fors_sk, uint32_t idx,
const uint8_t sk_seed[SPX_N], const uint8_t pk_seed[SPX_N],
Expand Down
2 changes: 1 addition & 1 deletion crypto/spx/fors.h → crypto/spx/spx_fors.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <openssl/base.h>

#include "./params.h"
#include "./spx_params.h"

#if defined(__cplusplus)
extern "C" {
Expand Down
10 changes: 5 additions & 5 deletions crypto/spx/merkle.c → crypto/spx/spx_merkle.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

#include <string.h>

#include "./address.h"
#include "./merkle.h"
#include "./params.h"
#include "./thash.h"
#include "./wots.h"
#include "./spx_address.h"
#include "./spx_merkle.h"
#include "./spx_params.h"
#include "./spx_thash.h"
#include "./spx_wots.h"

void spx_treehash(uint8_t out_pk[SPX_N], const uint8_t sk_seed[SPX_N],
uint32_t i /*target node index*/,
Expand Down
2 changes: 1 addition & 1 deletion crypto/spx/merkle.h → crypto/spx/spx_merkle.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <sys/types.h>

#include "./params.h"
#include "./spx_params.h"

#if defined(__cplusplus)
extern "C" {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions crypto/spx/thash.c → crypto/spx/spx_thash.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

#include <openssl/sha.h>

#include "./params.h"
#include "./spx_params.h"
#include "./spx_util.h"
#include "./thash.h"
#include "./spx_thash.h"

static void spx_thash(uint8_t *output, const uint8_t *input,
size_t input_blocks, const uint8_t pk_seed[SPX_N],
Expand Down
2 changes: 1 addition & 1 deletion crypto/spx/thash.h → crypto/spx/spx_thash.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <openssl/base.h>

#include "./params.h"
#include "./spx_params.h"

#if defined(__cplusplus)
extern "C" {
Expand Down
8 changes: 4 additions & 4 deletions crypto/spx/wots.c → crypto/spx/spx_wots.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
#include <stdio.h>
#include <string.h>

#include "./address.h"
#include "./params.h"
#include "./spx_address.h"
#include "./spx_params.h"
#include "./spx_util.h"
#include "./thash.h"
#include "./wots.h"
#include "./spx_thash.h"
#include "./spx_wots.h"

// Chaining function used in WOTS+.
static void chain(uint8_t *output, const uint8_t *input, uint32_t start,
Expand Down
2 changes: 1 addition & 1 deletion crypto/spx/wots.h → crypto/spx/spx_wots.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <openssl/base.h>

#include "./params.h"
#include "./spx_params.h"

#if defined(__cplusplus)
extern "C" {
Expand Down
22 changes: 11 additions & 11 deletions gen/sources.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ crypto_sources = [
"crypto/rsa_extra/rsa_crypt.c",
"crypto/rsa_extra/rsa_print.c",
"crypto/siphash/siphash.c",
"crypto/spx/address.c",
"crypto/spx/fors.c",
"crypto/spx/merkle.c",
"crypto/spx/spx.c",
"crypto/spx/spx_address.c",
"crypto/spx/spx_fors.c",
"crypto/spx/spx_merkle.c",
"crypto/spx/spx_thash.c",
"crypto/spx/spx_util.c",
"crypto/spx/thash.c",
"crypto/spx/wots.c",
"crypto/spx/spx_wots.c",
"crypto/stack/stack.c",
"crypto/thread.c",
"crypto/thread_none.c",
Expand Down Expand Up @@ -636,13 +636,13 @@ crypto_internal_headers = [
"crypto/rand_extra/getrandom_fillin.h",
"crypto/rand_extra/sysrand_internal.h",
"crypto/rsa_extra/internal.h",
"crypto/spx/address.h",
"crypto/spx/fors.h",
"crypto/spx/merkle.h",
"crypto/spx/params.h",
"crypto/spx/spx_address.h",
"crypto/spx/spx_fors.h",
"crypto/spx/spx_merkle.h",
"crypto/spx/spx_params.h",
"crypto/spx/spx_thash.h",
"crypto/spx/spx_util.h",
"crypto/spx/thash.h",
"crypto/spx/wots.h",
"crypto/spx/spx_wots.h",
"crypto/trust_token/internal.h",
"crypto/x509/ext_dat.h",
"crypto/x509/internal.h",
Expand Down
22 changes: 11 additions & 11 deletions gen/sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,13 @@ set(
crypto/rsa_extra/rsa_crypt.c
crypto/rsa_extra/rsa_print.c
crypto/siphash/siphash.c
crypto/spx/address.c
crypto/spx/fors.c
crypto/spx/merkle.c
crypto/spx/spx.c
crypto/spx/spx_address.c
crypto/spx/spx_fors.c
crypto/spx/spx_merkle.c
crypto/spx/spx_thash.c
crypto/spx/spx_util.c
crypto/spx/thash.c
crypto/spx/wots.c
crypto/spx/spx_wots.c
crypto/stack/stack.c
crypto/thread.c
crypto/thread_none.c
Expand Down Expand Up @@ -654,13 +654,13 @@ set(
crypto/rand_extra/getrandom_fillin.h
crypto/rand_extra/sysrand_internal.h
crypto/rsa_extra/internal.h
crypto/spx/address.h
crypto/spx/fors.h
crypto/spx/merkle.h
crypto/spx/params.h
crypto/spx/spx_address.h
crypto/spx/spx_fors.h
crypto/spx/spx_merkle.h
crypto/spx/spx_params.h
crypto/spx/spx_thash.h
crypto/spx/spx_util.h
crypto/spx/thash.h
crypto/spx/wots.h
crypto/spx/spx_wots.h
crypto/trust_token/internal.h
crypto/x509/ext_dat.h
crypto/x509/internal.h
Expand Down
22 changes: 11 additions & 11 deletions gen/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ crypto_sources = [
"crypto/rsa_extra/rsa_crypt.c",
"crypto/rsa_extra/rsa_print.c",
"crypto/siphash/siphash.c",
"crypto/spx/address.c",
"crypto/spx/fors.c",
"crypto/spx/merkle.c",
"crypto/spx/spx.c",
"crypto/spx/spx_address.c",
"crypto/spx/spx_fors.c",
"crypto/spx/spx_merkle.c",
"crypto/spx/spx_thash.c",
"crypto/spx/spx_util.c",
"crypto/spx/thash.c",
"crypto/spx/wots.c",
"crypto/spx/spx_wots.c",
"crypto/stack/stack.c",
"crypto/thread.c",
"crypto/thread_none.c",
Expand Down Expand Up @@ -636,13 +636,13 @@ crypto_internal_headers = [
"crypto/rand_extra/getrandom_fillin.h",
"crypto/rand_extra/sysrand_internal.h",
"crypto/rsa_extra/internal.h",
"crypto/spx/address.h",
"crypto/spx/fors.h",
"crypto/spx/merkle.h",
"crypto/spx/params.h",
"crypto/spx/spx_address.h",
"crypto/spx/spx_fors.h",
"crypto/spx/spx_merkle.h",
"crypto/spx/spx_params.h",
"crypto/spx/spx_thash.h",
"crypto/spx/spx_util.h",
"crypto/spx/thash.h",
"crypto/spx/wots.h",
"crypto/spx/spx_wots.h",
"crypto/trust_token/internal.h",
"crypto/x509/ext_dat.h",
"crypto/x509/internal.h",
Expand Down
22 changes: 11 additions & 11 deletions gen/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@
"crypto/rsa_extra/rsa_crypt.c",
"crypto/rsa_extra/rsa_print.c",
"crypto/siphash/siphash.c",
"crypto/spx/address.c",
"crypto/spx/fors.c",
"crypto/spx/merkle.c",
"crypto/spx/spx.c",
"crypto/spx/spx_address.c",
"crypto/spx/spx_fors.c",
"crypto/spx/spx_merkle.c",
"crypto/spx/spx_thash.c",
"crypto/spx/spx_util.c",
"crypto/spx/thash.c",
"crypto/spx/wots.c",
"crypto/spx/spx_wots.c",
"crypto/stack/stack.c",
"crypto/thread.c",
"crypto/thread_none.c",
Expand Down Expand Up @@ -618,13 +618,13 @@
"crypto/rand_extra/getrandom_fillin.h",
"crypto/rand_extra/sysrand_internal.h",
"crypto/rsa_extra/internal.h",
"crypto/spx/address.h",
"crypto/spx/fors.h",
"crypto/spx/merkle.h",
"crypto/spx/params.h",
"crypto/spx/spx_address.h",
"crypto/spx/spx_fors.h",
"crypto/spx/spx_merkle.h",
"crypto/spx/spx_params.h",
"crypto/spx/spx_thash.h",
"crypto/spx/spx_util.h",
"crypto/spx/thash.h",
"crypto/spx/wots.h",
"crypto/spx/spx_wots.h",
"crypto/trust_token/internal.h",
"crypto/x509/ext_dat.h",
"crypto/x509/internal.h",
Expand Down

0 comments on commit 97322b2

Please sign in to comment.