Skip to content

Commit babd0c3

Browse files
committed
Remove crypto_core_ristretto255_from_string
1 parent ed661cd commit babd0c3

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

dist-build/emscripten-symbols.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ _crypto_core_keccak1600_xor_bytes 0 1
202202
_crypto_core_ristretto255_add 0 1
203203
_crypto_core_ristretto255_bytes 0 1
204204
_crypto_core_ristretto255_from_hash 0 1
205-
_crypto_core_ristretto255_from_string 0 1
206205
_crypto_core_ristretto255_from_string_ro 0 1
207206
_crypto_core_ristretto255_hashbytes 0 1
208207
_crypto_core_ristretto255_is_valid_point 0 1

dist-build/emscripten.sh

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/libsodium/crypto_core/ed25519/core_ristretto255.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,13 @@ _string_to_element(unsigned char *p,
8080
return 0;
8181
}
8282

83-
int
84-
crypto_core_ristretto255_from_string(unsigned char p[crypto_core_ristretto255_BYTES],
85-
const unsigned char *ctx, size_t ctx_len,
86-
const unsigned char *msg, size_t msg_len,
87-
int hash_alg)
88-
{
89-
return _string_to_element(p, ctx, ctx_len, msg, msg_len, hash_alg);
90-
}
91-
9283
int
9384
crypto_core_ristretto255_from_string_ro(unsigned char p[crypto_core_ristretto255_BYTES],
9485
const unsigned char *ctx, size_t ctx_len,
9586
const unsigned char *msg, size_t msg_len,
9687
int hash_alg)
9788
{
98-
return crypto_core_ristretto255_from_string(p, ctx, ctx_len, msg, msg_len, hash_alg);
89+
return _string_to_element(p, ctx, ctx_len, msg, msg_len, hash_alg);
9990
}
10091

10192
void

src/libsodium/include/sodium/crypto_core_ristretto255.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ int crypto_core_ristretto255_from_hash(unsigned char *p,
4646
const unsigned char *r)
4747
__attribute__ ((nonnull));
4848

49-
SODIUM_EXPORT
50-
int crypto_core_ristretto255_from_string(unsigned char p[crypto_core_ristretto255_BYTES],
51-
const unsigned char *ctx, size_t ctx_len,
52-
const unsigned char *msg, size_t msg_len,
53-
int hash_alg)
54-
__attribute__ ((nonnull(1)));
55-
5649
SODIUM_EXPORT
5750
int crypto_core_ristretto255_from_string_ro(unsigned char p[crypto_core_ristretto255_BYTES],
5851
const unsigned char *ctx, size_t ctx_len,

test/symbols/all-symbols.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ crypto_core_keccak1600_xor_bytes
231231
crypto_core_ristretto255_add
232232
crypto_core_ristretto255_bytes
233233
crypto_core_ristretto255_from_hash
234-
crypto_core_ristretto255_from_string
235234
crypto_core_ristretto255_from_string_ro
236235
crypto_core_ristretto255_hashbytes
237236
crypto_core_ristretto255_is_valid_point

0 commit comments

Comments
 (0)