<commit_before>/*
 * Argon2 source code package
 *
 * Written by <NAME> and <NAME>, 2015
 *
 * This work is licensed under a Creative Commons CC0 1.0 License/Waiver.
 *
 * You should have received a copy of the CC0 Public Domain Dedication along
 * with
 * this software. If not, see
 * <http://creativecommons.org/publicdomain/zero/1.0/>.
 */
#pragma once

#ifndef __ARGON2_H__
#define __ARGON2_H__

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>


/* The KAT file name */
const char *ARGON2_KAT_FILENAME;

/*************************Argon2 input parameter
 * restrictions**************************************************/

/* Minimum and maximum number of lanes (degree of parallelism) */
#define ARGON2_MIN_LANES 1
#define ARGON2_MAX_LANES 0xFFFFFF

/* Minimum and maximum number of threads */
#define ARGON2_MIN_THREADS 1
#define ARGON2_MAX_THREADS 0xFFFFFF

/* Number of synchronization points between lanes per pass */
#define __ARGON_SYNC_POINTS 4
#define ARGON2_SYNC_POINTS __ARGON_SYNC_POINTS

/* Minimum and maximum digest size in bytes */
#define ARGON2_MIN_OUTLEN 4
#define ARGON2_MAX_OUTLEN 0xFFFFFFFF

/* Minimum and maximum number of memory blocks (each of BLOCK_SIZE bytes) */
#define ARGON2_MIN_MEMORY (2 *(__ARGON_SYNC_POINTS)) // 2 blocks per slice
#define ARGON2_MAX_MEMORY 0xFFFFFFFF // 2^32-1 blocks

/* Minimum and maximum number of passes */
#define ARGON2_MIN_TIME 1
#define ARGON2_MAX_TIME 0xFFFFFFFF

/* Minimum and maximum password length in bytes */
#define ARGON2_MIN_PWD_LENGTH 0
#define ARGON2_MAX_PWD_LENGTH 0xFFFFFFFF

/* Minimum and maximum associated data length in bytes */
#define ARGON2_MIN_AD_LENGTH 0
#define ARGON2_MAX_AD_LENGTH 0xFFFFFFFF

/* Minimum and maximum salt length in bytes */
#define ARGON2_MIN_SALT_LENGTH 8<commit_msg>ARGON2_32BIT_LIMIT<commit_after>/*
 * Argon2 source code package
 *
 * Written by <NAME> and <NAME>, 2015
 *
 * This work is licensed under a Creative Commons CC0 1.0 License/Waiver.
 *
 * You should have received a copy of the CC0 Public Domain Dedication along
 * with
 * this software. If not, see
 * <http://creativecommons.org/publicdomain/zero/1.0/>.
 */
#pragma once

#ifndef __ARGON2_H__
#define __ARGON2_H__

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>


/* The KAT file name */
const char *ARGON2_KAT_FILENAME;

/*************************Argon2 input parameter
 * restrictions**************************************************/

/* Minimum and maximum number of lanes (degree of parallelism) */
#define ARGON2_MIN_LANES 1
#define ARGON2_MAX_LANES 0xFFFFFF

/* Minimum and maximum number of threads */
#define ARGON2_MIN_THREADS 1
#define ARGON2_MAX_THREADS 0xFFFFFF

/* Number of synchronization points between lanes per pass */
#define __ARGON_SYNC_POINTS 4
#define ARGON2_SYNC_POINTS __ARGON_SYNC_POINTS

/* Minimum and maximum digest size in bytes */
#define ARGON2_MIN_OUTLEN 4
#define ARGON2_MAX_OUTLEN 0xFFFFFFFF

/* Minimum and maximum number of memory blocks (each of BLOCK_SIZE bytes) */
#define ARGON2_MIN_MEMORY (2 *(__ARGON_SYNC_POINTS)) // 2 blocks per slice
#define ARGON2_MAX_MEMORY 0xFFFFFFFF // 2^32-1 blocks
#define ARGON2_32BIT_LIMIT 0x200000 //2^21 blocks for 32-bit machines

/* Minimum and maximum number of passes */
#define ARGON2_MIN_TIME 1
#define ARGON2_MAX_TIME 0xFFFFFFFF

/* Minimum and maximum password length in bytes */
#define ARGON2_MIN_PWD_LENGTH 0
#define ARGON2_MAX_PWD_LENGTH 0xFFFFFFFF

/* Minimum and maximum associated data length in bytes */
#define ARGON2_MIN_AD_LENGTH 0
#define ARGON2_MAX_AD_LENGTH 0xFFFFFFFF

/* Minimum and maximum salt length in bytes */
#define ARGON2_MIN_SALT_LENGTH 8
{'fraction_non_alphanumeric': 0.114215283483977, 'fraction_numerical': 0.033415502602026845, 'mean_word_length': 5.046357615894039, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 10, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2700909', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1223, 'n_words': 391}