mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 20:00:08 +01:00
Update bundled Argon2 source.
This commit is contained in:
@@ -25,7 +25,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#define VC_GE_2005(version) (version >= 1400)
|
#define VC_GE_2005(version) (version >= 1400)
|
||||||
|
|
||||||
#include <inttypes.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ enum argon2_core_constants {
|
|||||||
ARGON2_QWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 8,
|
ARGON2_QWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 8,
|
||||||
ARGON2_OWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 16,
|
ARGON2_OWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 16,
|
||||||
ARGON2_HWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 32,
|
ARGON2_HWORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 32,
|
||||||
|
ARGON2_512BIT_WORDS_IN_BLOCK = ARGON2_BLOCK_SIZE / 64,
|
||||||
|
|
||||||
/* Number of pseudo-random values generated by one call to Blake in Argon2i
|
/* Number of pseudo-random values generated by one call to Blake in Argon2i
|
||||||
to
|
to
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ typedef pthread_t argon2_thread_handle_t;
|
|||||||
* @param func A function pointer for the thread's entry point. Must not be
|
* @param func A function pointer for the thread's entry point. Must not be
|
||||||
* NULL.
|
* NULL.
|
||||||
* @param args Pointer that is passed as an argument to @func. May be NULL.
|
* @param args Pointer that is passed as an argument to @func. May be NULL.
|
||||||
* @return 0 if @handle and @func are valid pointers and a thread is successfuly
|
* @return 0 if @handle and @func are valid pointers and a thread is successfully
|
||||||
* created.
|
* created.
|
||||||
*/
|
*/
|
||||||
int argon2_thread_create(argon2_thread_handle_t *handle,
|
int argon2_thread_create(argon2_thread_handle_t *handle,
|
||||||
|
|||||||
Reference in New Issue
Block a user