Skip to content

Commit

Permalink
Update helpers/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Dec 8, 2015
1 parent 802971c commit df49cd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,11 @@ It runs in constant-time for a given length, and considers the number to be enco

This function was introduced in libsodium 1.0.4.

## Comparing large numbers

```c
int sodium_compare(const void * const b1_, const void * const b2_, size_t len);
```
Given two numbers encoded as little-endian
This function returns `-1` is `b1_` is less than `_b2`

0 comments on commit df49cd6

Please sign in to comment.