-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase; remove py2 support; support minimal build
- Loading branch information
Jörn Heissler
committed
May 16, 2021
1 parent
8bba82f
commit 05562a8
Showing
11 changed files
with
502 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* Copyright 2021 Donald Stufft and individual contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifdef SODIUM_LIBRARY_MINIMAL | ||
static const int PYNACL_HAS_CRYPTO_CORE_RISTRETTO25519 = 0; | ||
|
||
size_t (*crypto_core_ristretto255_scalarbytes)(void) = NULL; | ||
size_t (*crypto_core_ristretto255_nonreducedscalarbytes)(void) = NULL; | ||
|
||
void (*crypto_core_ristretto255_scalar_add)(unsigned char *, const unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_complement)(unsigned char *, const unsigned char *) = NULL; | ||
int (*crypto_core_ristretto255_scalar_invert)(unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_mul)(unsigned char *, const unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_negate)(unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_random)(unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_reduce)(unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_scalar_sub)(unsigned char *, const unsigned char *, const unsigned char *) = NULL; | ||
|
||
size_t (*crypto_core_ristretto255_bytes)(void) = NULL; | ||
size_t (*crypto_core_ristretto255_hashbytes)(void) = NULL; | ||
|
||
int (*crypto_core_ristretto255_add)(unsigned char *, const unsigned char *, const unsigned char *) = NULL; | ||
int (*crypto_core_ristretto255_from_hash)(unsigned char *, const unsigned char *) = NULL; | ||
int (*crypto_core_ristretto255_is_valid_point)(const unsigned char *) = NULL; | ||
int (*crypto_core_ristretto255_sub)(unsigned char *, const unsigned char *, const unsigned char *) = NULL; | ||
void (*crypto_core_ristretto255_random)(unsigned char *) = NULL; | ||
#else | ||
static const int PYNACL_HAS_CRYPTO_CORE_RISTRETTO25519 = 1; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* Copyright 2021 Donald Stufft and individual contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifdef SODIUM_LIBRARY_MINIMAL | ||
static const int PYNACL_HAS_CRYPTO_SCALARMULT_RISTRETTO25519 = 0; | ||
|
||
size_t (*crypto_scalarmult_ristretto255_bytes)(void) = NULL; | ||
size_t (*crypto_scalarmult_ristretto255_scalarbytes)(void) = NULL; | ||
|
||
int (*crypto_scalarmult_ristretto255_base)(unsigned char *q, const unsigned char *n) = NULL; | ||
int (*crypto_scalarmult_ristretto255)(unsigned char *q, const unsigned char *n, const unsigned char *p) = NULL; | ||
#else | ||
static const int PYNACL_HAS_CRYPTO_SCALARMULT_RISTRETTO25519 = 1; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.