File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1449,7 +1449,7 @@ \section{Hashing}
1449
1449
1450
1450
\index {mp\_ hash}
1451
1451
\begin {alltt }
1452
- mp_err mp_hash (mp_int *a, mp_hval *hash);
1452
+ mp_err mp_hash (const mp_int *a, mp_hval *hash);
1453
1453
\end {alltt }
1454
1454
1455
1455
This will create the hash of $ a$ following the \mbox {FNV-1a} algorithm as described on
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ Returns \fBMP_MEM\fP if the functions fails to allocate enough memory.
369
369
.in -1i
370
370
371
371
.LP
372
- .BI " mp_err mp_hash (mp_int *" a " , mp_hval *" hash " )"
372
+ .BI " mp_err mp_hash (const mp_int *" a " , mp_hval *" hash " )"
373
373
.in 1i
374
374
This will create the hash of \fB a \fP following the \fI FNV-1a \fP algorithm as described on
375
375
\fI http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-1a \fP . With the
Original file line number Diff line number Diff line change 12
12
#endif
13
13
14
14
/* computes hash of mp_int. */
15
- mp_err mp_hash (mp_int * a , mp_hval * hash )
15
+ mp_err mp_hash (const mp_int * a , mp_hval * hash )
16
16
{
17
17
int x ;
18
18
mp_hval hval = FNV_1A_INIT ;
Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ typedef uint64_t mp_hval;
499
499
#endif
500
500
501
501
/* computes hash */
502
- mp_err mp_hash (mp_int * a , mp_hval * hash ) MP_WUR ;
502
+ mp_err mp_hash (const mp_int * a , mp_hval * hash ) MP_WUR ;
503
503
504
504
/* ---> Primes <--- */
505
505
You can’t perform that action at this time.
0 commit comments