Skip to content

Commit

Permalink
Include proofbytes for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
iquerejeta committed Jan 31, 2023
1 parent a5baecc commit dbb48cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libsodium/crypto_vrf/ietfdraft03/vrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ crypto_vrf_ietfdraft03_bytes(void)
return crypto_vrf_ietfdraft03_BYTES;
}

// Kept for backwards compatibility
size_t
crypto_vrf_ietfdraft03_proofbytes(void)
{
return crypto_vrf_ietfdraft03_BYTES;
}

size_t
crypto_vrf_ietfdraft03_outputbytes(void)
{
Expand Down
3 changes: 3 additions & 0 deletions src/libsodium/include/sodium/crypto_vrf_ietfdraft03.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ extern "C" {
SODIUM_EXPORT
size_t crypto_vrf_ietfdraft03_bytes(void);

SODIUM_EXPORT
size_t crypto_vrf_ietfdraft03_proofbytes(void); // Kept for backwards compatibility

#define crypto_vrf_ietfdraft03_OUTPUTBYTES 64U
SODIUM_EXPORT
size_t crypto_vrf_ietfdraft03_outputbytes(void);
Expand Down

0 comments on commit dbb48cc

Please sign in to comment.