commit 63d1cb41578a62e4d9b457eb09b7248d3a703d2b parent a5ac817a97d701bc3d0381abcbb955e3c75e78cc Author: Florian Dold <florian@dold.me> Date: Mon, 6 Oct 2025 18:03:50 +0200 remove deprecated copy of validator app As mentioned in README, the app lives in a different repo now Diffstat:
412 files changed, 7 insertions(+), 28256 deletions(-)
diff --git a/README b/README @@ -126,3 +126,10 @@ install donau: ./configure make sudo make install + + +Validator App +============= + +A validation app for donau donation statements +is available at <git://git.taler.net/taler-android.git>. diff --git a/verification-app/.gitignore b/verification-app/.gitignore @@ -1,10 +0,0 @@ -*.iml -.gradle -/local.properties -.idea -.DS_Store -/build -/captures -.externalNativeBuild -.cxx -local.properties diff --git a/verification-app/.gitlab-ci.yml b/verification-app/.gitlab-ci.yml @@ -1,16 +0,0 @@ - -stages: - - build - -build: - stage: build - rules: - - if: $CI_COMMIT_BRANCH == "main" - image: 'androidsdk/android-30' - script: - - 'chmod +x gradlew' - - './gradlew assembleDebug' - artifacts: - paths: - - app/build/outputs/apk/ - diff --git a/verification-app/README.md b/verification-app/README.md @@ -1,25 +0,0 @@ -# Donau Verify -The app verifies the donation statement made by a Donau. - -## Testing -1. With provided QR-Codes in the root app directory -2. For test purposes, a string of a valid donation statement is already hard coded. -3. With the defined URI scheme following command can be used: -```bash -adb shell am start -a android.intent.action.VIEW -d "donau://2024/EUR:15/7560001010000/1234/SAAM5BA1F9H4VT6T78CFC3X63HAMY2TXB597XBVZ0EMXEZ90QPJ3000BXDBJ3ECHGB8AEX9FFQ5BAXVSF6X6NXM98PY353F2R99PP1R/E24CDJHGSPZG20ZSSTMTBREGCCP495WKETQYCYA9C93EPMZN4FEG" -``` -## Future Work -The public key should be requested directly from the Donau over HTTPS, - for this the Donau base url is needed -> pass it with the QR code? - -## Building -### build requirements -- minimal Android SDK: 31 -- gradle -### build from command line -Mac OS, Linux: -- chmod +x gradlew -- ./gradlew - -Windows: -- gradlew.bat -\ No newline at end of file diff --git a/verification-app/app/.gitignore b/verification-app/app/.gitignore @@ -1 +0,0 @@ -/build -\ No newline at end of file diff --git a/verification-app/app/build.gradle b/verification-app/app/build.gradle @@ -1,80 +0,0 @@ -plugins { - id 'com.android.application' -} - -android { - namespace 'taler.donau.verification' - compileSdk 34 - - defaultConfig { - applicationId "taler.donau.verification" - minSdk 30 - targetSdk 34 - versionCode 1 - versionName "1.0" - - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - archivesBaseName = "Donau-Verifcation" - externalNativeBuild { - cmake { - cppFlags '' - } - } - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - buildFeatures { - viewBinding true - } - packagingOptions { - // Exclude specific files or directories that might cause conflicts - exclude 'META-INF/DEPENDENCIES' - exclude 'META-INF/LICENSE' - exclude 'META-INF/LICENSE.txt' - exclude 'META-INF/NOTICE' - exclude 'META-INF/NOTICE.txt' - exclude 'META-INF/ASL2.0' - exclude 'META-INF/*.kotlin_module' - - // Merge specific files if needed - merge 'META-INF/LGPL2.1' - merge 'META-INF/AL2.0' - - // Exclude everything under META-INF to avoid conflicts - resources.excludes.add("META-INF/**/*") - } - externalNativeBuild { - cmake { - path file('src/main/cpp/CMakeLists.txt') - version '3.22.1' - } - } -} - - - -dependencies { - - implementation 'androidx.appcompat:appcompat:1.6.1' - implementation 'com.google.android.material:material:1.10.0' - implementation 'androidx.constraintlayout:constraintlayout:2.1.4' - implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2' - implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' - implementation 'androidx.navigation:navigation-fragment:2.7.5' - implementation 'androidx.navigation:navigation-ui:2.7.5' - implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2' - // https://mvnrepository.com/artifact/org.bouncycastle/bcpkix-jdk18on - implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.70' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' -} -\ No newline at end of file diff --git a/verification-app/app/build/intermediates/apk/debug/Donau-Verifcation-debug.apk b/verification-app/app/build/intermediates/apk/debug/Donau-Verifcation-debug.apk Binary files differ. diff --git a/verification-app/app/build/intermediates/apk/debug/Donau-Verifcation-debug.apk.idsig b/verification-app/app/build/intermediates/apk/debug/Donau-Verifcation-debug.apk.idsig Binary files differ. diff --git a/verification-app/app/build/intermediates/apk/debug/output-metadata.json b/verification-app/app/build/intermediates/apk/debug/output-metadata.json @@ -1,20 +0,0 @@ -{ - "version": 3, - "artifactType": { - "type": "APK", - "kind": "Directory" - }, - "applicationId": "taler.donau.verification", - "variantName": "debug", - "elements": [ - { - "type": "SINGLE", - "filters": [], - "attributes": [], - "versionCode": 1, - "versionName": "1.0", - "outputFile": "Donau-Verifcation-debug.apk" - } - ], - "elementType": "File" -} -\ No newline at end of file diff --git a/verification-app/app/proguard-rules.pro b/verification-app/app/proguard-rules.pro @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile -\ No newline at end of file diff --git a/verification-app/app/src/androidTest/java/taler/donau/verification/ExampleInstrumentedTest.java b/verification-app/app/src/androidTest/java/taler/donau/verification/ExampleInstrumentedTest.java @@ -1,26 +0,0 @@ -package taler.donau.verification; - -import android.content.Context; - -import androidx.test.platform.app.InstrumentationRegistry; -import androidx.test.ext.junit.runners.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - assertEquals("ch.bfh.verification", appContext.getPackageName()); - } -} -\ No newline at end of file diff --git a/verification-app/app/src/main/AndroidManifest.xml b/verification-app/app/src/main/AndroidManifest.xml @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools"> - - <uses-permission android:name="android.permission.CAMERA" - android:required="true"/> - - <uses-feature - android:name="android.hardware.camera" - android:required="false"/> - - <application - android:allowBackup="true" - android:dataExtractionRules="@xml/data_extraction_rules" - android:enableOnBackInvokedCallback="true" - android:fullBackupContent="@xml/backup_rules" - android:icon="@mipmap/ic_launcher" - android:label="@string/app_name" - android:supportsRtl="true" - android:theme="@style/Theme.Verifaction" - tools:targetApi="31"> - <activity - android:name=".MainActivity" - android:label="@string/app_name" - android:exported="true"> - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - <activity android:name=".Results" - android:exported="true"> - <intent-filter> - <action android:name="android.intent.action.VIEW" /> - <category android:name="android.intent.category.DEFAULT" /> - <category android:name="android.intent.category.BROWSABLE" /> - <data android:scheme="donau"/> - </intent-filter> - </activity> - </application> - -</manifest> -\ No newline at end of file diff --git a/verification-app/app/src/main/cpp/CMakeLists.txt b/verification-app/app/src/main/cpp/CMakeLists.txt @@ -1,51 +0,0 @@ - -# For more information about using CMake with Android Studio, read the -# documentation: https://d.android.com/studio/projects/add-native-code.html. -# For more examples on how to use CMake, see https://github.com/android/ndk-samples. - -# Sets the minimum CMake version required for this project. -cmake_minimum_required(VERSION 3.22.1) - -# Declares the project name. The project name can be accessed via ${ PROJECT_NAME}, -# Since this is the top level CMakeLists.txt, the project name is also accessible -# with ${CMAKE_PROJECT_NAME} (both CMake variables are in-sync within the top level -# build script scope). -project("verification") - -# Creates and names a library, sets it as either STATIC -# or SHARED, and provides the relative paths to its source code. -# You can define multiple libraries, and CMake builds them for you. -# Gradle automatically packages shared libraries with your APK. -# -# In this top level CMakeLists.txt, ${CMAKE_PROJECT_NAME} is used to define -# the target library name; in the sub-module's CMakeLists.txt, ${PROJECT_NAME} -# is preferred for the same purpose. -# -# In order to load a library into your app from Java/Kotlin, you must call -# System.loadLibrary() and pass the name of the library defined here; -# for GameActivity/NativeActivity derived applications, the same library name must be -# used in the AndroidManifest.xml file. -add_library(${CMAKE_PROJECT_NAME} SHARED - # List C/C++ source files with relative paths to this CMakeLists.txt. - verification.cpp) - -add_library( libsodium - STATIC - IMPORTED ) - -set_target_properties( - libsodium - PROPERTIES IMPORTED_LOCATION - - ${CMAKE_CURRENT_SOURCE_DIR}/libsodium/${ANDROID_ABI}/lib/libsodium.a ) - -# Specifies libraries CMake should link to your target library. You -# can link libraries from various origins, such as libraries defined in this -# build script, prebuilt third-party libraries, or Android system libraries. -target_link_libraries(${CMAKE_PROJECT_NAME} - # List libraries link to the target library - android - libsodium - log) - -include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/libsodium/include ) diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium.h @@ -1,74 +0,0 @@ -#ifndef sodium_H -#define sodium_H - -#include "sodium/version.h" - -#include "sodium/core.h" -#include "sodium/crypto_aead_aegis128l.h" -#include "sodium/crypto_aead_aegis256.h" -#include "sodium/crypto_aead_aes256gcm.h" -#include "sodium/crypto_aead_chacha20poly1305.h" -#include "sodium/crypto_aead_xchacha20poly1305.h" -#include "sodium/crypto_auth.h" -#include "sodium/crypto_auth_hmacsha256.h" -#include "sodium/crypto_auth_hmacsha512.h" -#include "sodium/crypto_auth_hmacsha512256.h" -#include "sodium/crypto_box.h" -#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" -#include "sodium/crypto_core_hchacha20.h" -#include "sodium/crypto_core_hsalsa20.h" -#include "sodium/crypto_core_salsa20.h" -#include "sodium/crypto_core_salsa2012.h" -#include "sodium/crypto_core_salsa208.h" -#include "sodium/crypto_generichash.h" -#include "sodium/crypto_generichash_blake2b.h" -#include "sodium/crypto_hash.h" -#include "sodium/crypto_hash_sha256.h" -#include "sodium/crypto_hash_sha512.h" -#include "sodium/crypto_kdf.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kdf_blake2b.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kx.h" -#include "sodium/crypto_onetimeauth.h" -#include "sodium/crypto_onetimeauth_poly1305.h" -#include "sodium/crypto_pwhash.h" -#include "sodium/crypto_pwhash_argon2i.h" -#include "sodium/crypto_scalarmult.h" -#include "sodium/crypto_scalarmult_curve25519.h" -#include "sodium/crypto_secretbox.h" -#include "sodium/crypto_secretbox_xsalsa20poly1305.h" -#include "sodium/crypto_secretstream_xchacha20poly1305.h" -#include "sodium/crypto_shorthash.h" -#include "sodium/crypto_shorthash_siphash24.h" -#include "sodium/crypto_sign.h" -#include "sodium/crypto_sign_ed25519.h" -#include "sodium/crypto_stream.h" -#include "sodium/crypto_stream_chacha20.h" -#include "sodium/crypto_stream_salsa20.h" -#include "sodium/crypto_stream_xsalsa20.h" -#include "sodium/crypto_verify_16.h" -#include "sodium/crypto_verify_32.h" -#include "sodium/crypto_verify_64.h" -#include "sodium/randombytes.h" -#include "sodium/randombytes_internal_random.h" -#include "sodium/randombytes_sysrandom.h" -#include "sodium/runtime.h" -#include "sodium/utils.h" - -#ifndef SODIUM_LIBRARY_MINIMAL -#include "sodium/crypto_box_curve25519xchacha20poly1305.h" -#include "sodium/crypto_core_ed25519.h" -#include "sodium/crypto_core_ristretto255.h" -#include "sodium/crypto_pwhash_scryptsalsa208sha256.h" -#include "sodium/crypto_scalarmult_ed25519.h" -#include "sodium/crypto_scalarmult_ristretto255.h" -#include "sodium/crypto_secretbox_xchacha20poly1305.h" -#include "sodium/crypto_stream_salsa2012.h" -#include "sodium/crypto_stream_salsa208.h" -#include "sodium/crypto_stream_xchacha20.h" -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/core.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/core.h @@ -1,27 +0,0 @@ -#ifndef sodium_core_H -#define sodium_core_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -int sodium_init (void) -__attribute__ ((warn_unused_result)); - -/* ---- */ - -SODIUM_EXPORT -int sodium_set_misuse_handler (void (*handler)(void)); - -SODIUM_EXPORT -void sodium_misuse (void) -__attribute__ ((noreturn)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aegis128l.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aegis128l.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis128l_H -#define crypto_aead_aegis128l_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis128l_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_keybytes (void); - -#define crypto_aead_aegis128l_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_nsecbytes (void); - -#define crypto_aead_aegis128l_NPUBBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_npubbytes (void); - -#define crypto_aead_aegis128l_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_abytes (void); - -#define crypto_aead_aegis128l_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis128l_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis128l_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis128l_keygen (unsigned char - k[crypto_aead_aegis128l_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aegis256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aegis256.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis256_H -#define crypto_aead_aegis256_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_keybytes (void); - -#define crypto_aead_aegis256_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis256_nsecbytes (void); - -#define crypto_aead_aegis256_NPUBBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_npubbytes (void); - -#define crypto_aead_aegis256_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_abytes (void); - -#define crypto_aead_aegis256_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis256_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis256_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis256_keygen (unsigned char - k[crypto_aead_aegis256_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aes256gcm.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_aes256gcm.h @@ -1,188 +0,0 @@ -#ifndef crypto_aead_aes256gcm_H -#define crypto_aead_aes256gcm_H - -/* - * WARNING: Despite being the most popular AEAD construction due to its - * use in TLS, safely using AES-GCM in a different context is tricky. - * - * No more than ~ 350 GB of input data should be encrypted with a given key. - * This is for ~ 16 KB messages -- Actual figures vary according to - * message sizes. - * - * In addition, nonces are short and repeated nonces would totally destroy - * the security of this scheme. - * - * Nonces should thus come from atomic counters, which can be difficult to - * set up in a distributed environment. - * - * Unless you absolutely need AES-GCM, use crypto_aead_xchacha20poly1305_ietf_*() - * instead. It doesn't have any of these limitations. - * Or, if you don't need to authenticate additional data, just stick to - * crypto_secretbox(). - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -SODIUM_EXPORT -int crypto_aead_aes256gcm_is_available (void); - -#define crypto_aead_aes256gcm_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_keybytes (void); - -#define crypto_aead_aes256gcm_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_nsecbytes (void); - -#define crypto_aead_aes256gcm_NPUBBYTES 12U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_npubbytes (void); - -#define crypto_aead_aes256gcm_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_abytes (void); - -#define crypto_aead_aes256gcm_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aes256gcm_ABYTES, \ - (16ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_messagebytes_max (void); - -typedef struct CRYPTO_ALIGN(16) crypto_aead_aes256gcm_state_ -{ - unsigned char opaque[512]; -} crypto_aead_aes256gcm_state; - -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_statebytes (void); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_aead_aes256gcm_beforenm (crypto_aead_aes256gcm_state *ctx_, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_afternm (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_afternm (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached_afternm (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached_afternm (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aes256gcm_keygen (unsigned char - k[crypto_aead_aes256gcm_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_chacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_chacha20poly1305.h @@ -1,198 +0,0 @@ -#ifndef crypto_aead_chacha20poly1305_H -#define crypto_aead_chacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U - -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_abytes (void); - -#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \ - (64ULL * ((1ULL << 32) - 1ULL))) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned - char *mac, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_keybytes (void); - -#define crypto_aead_chacha20poly1305_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_NPUBBYTES 8U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_abytes (void); - -#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_chacha20poly1305_IETF_KEYBYTES \ - crypto_aead_chacha20poly1305_ietf_KEYBYTES -#define crypto_aead_chacha20poly1305_IETF_NSECBYTES \ - crypto_aead_chacha20poly1305_ietf_NSECBYTES -#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_chacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_chacha20poly1305_IETF_ABYTES \ - crypto_aead_chacha20poly1305_ietf_ABYTES -#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_aead_xchacha20poly1305.h @@ -1,119 +0,0 @@ -#ifndef crypto_aead_xchacha20poly1305_H -#define crypto_aead_xchacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_aead_xchacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NPUBBYTES 24U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_abytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long - mlen, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long - clen, - const unsigned - char *mac, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_xchacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_xchacha20poly1305_IETF_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -#define crypto_aead_xchacha20poly1305_IETF_NSECBYTES \ - crypto_aead_xchacha20poly1305_ietf_NSECBYTES -#define crypto_aead_xchacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_xchacha20poly1305_IETF_ABYTES \ - crypto_aead_xchacha20poly1305_ietf_ABYTES -#define crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth.h @@ -1,46 +0,0 @@ -#ifndef crypto_auth_H -#define crypto_auth_H - -#include <stddef.h> - -#include "crypto_auth_hmacsha512256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES -SODIUM_EXPORT -size_t crypto_auth_bytes (void); - -#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES -SODIUM_EXPORT -size_t crypto_auth_keybytes (void); - -#define crypto_auth_PRIMITIVE "hmacsha512256" -SODIUM_EXPORT -const char *crypto_auth_primitive (void); - -SODIUM_EXPORT -int crypto_auth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_auth_keygen (unsigned char k[crypto_auth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha256.h @@ -1,73 +0,0 @@ -#ifndef crypto_auth_hmacsha256_H -#define crypto_auth_hmacsha256_H - -#include <stddef.h> -#include "crypto_hash_sha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_bytes (void); - -#define crypto_auth_hmacsha256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha256_state -{ - crypto_hash_sha256_state ictx; - crypto_hash_sha256_state octx; -} crypto_auth_hmacsha256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_init (crypto_auth_hmacsha256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_update (crypto_auth_hmacsha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_final (crypto_auth_hmacsha256_state *state, - unsigned char *out) __attribute__ ((nonnull)); - - -SODIUM_EXPORT -void crypto_auth_hmacsha256_keygen (unsigned char - k[crypto_auth_hmacsha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha512.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha512.h @@ -1,72 +0,0 @@ -#ifndef crypto_auth_hmacsha512_H -#define crypto_auth_hmacsha512_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_bytes (void); - -#define crypto_auth_hmacsha512_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha512_state -{ - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_init (crypto_auth_hmacsha512_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_update (crypto_auth_hmacsha512_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_final (crypto_auth_hmacsha512_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512_keygen (unsigned char - k[crypto_auth_hmacsha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha512256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_auth_hmacsha512256.h @@ -1,69 +0,0 @@ -#ifndef crypto_auth_hmacsha512256_H -#define crypto_auth_hmacsha512256_H - -#include <stddef.h> -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_bytes (void); - -#define crypto_auth_hmacsha512256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ( - (nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef crypto_auth_hmacsha512_state crypto_auth_hmacsha512256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_init (crypto_auth_hmacsha512256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_update (crypto_auth_hmacsha512256_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_final (crypto_auth_hmacsha512256_state *state, - unsigned char *out) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512256_keygen (unsigned char - k[crypto_auth_hmacsha512256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box.h @@ -1,188 +0,0 @@ -#ifndef crypto_box_H -#define crypto_box_H - -/* - * THREAD SAFETY: crypto_box_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_box_curve25519xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES -SODIUM_EXPORT -size_t crypto_box_seedbytes (void); - -#define crypto_box_PUBLICKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_box_publickeybytes (void); - -#define crypto_box_SECRETKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_box_secretkeybytes (void); - -#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_box_noncebytes (void); - -#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_box_macbytes (void); - -#define crypto_box_MESSAGEBYTES_MAX \ - crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_box_messagebytes_max (void); - -#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_box_primitive (void); - -SODIUM_EXPORT -int crypto_box_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long mlen, - const unsigned char *n, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_open_detached (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -#define crypto_box_BEFORENMBYTES \ - crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES -SODIUM_EXPORT -size_t crypto_box_beforenmbytes (void); - -SODIUM_EXPORT -int crypto_box_beforenm (unsigned char *k, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, - 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_easy_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_detached_afternm (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long - mlen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_detached_afternm (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_seal (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_seal_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_box_zerobytes (void); - -#define crypto_box_BOXZEROBYTES \ - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_box_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_box (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box_curve25519xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box_curve25519xchacha20poly1305.h @@ -1,186 +0,0 @@ -#ifndef crypto_box_curve25519xchacha20poly1305_H -#define crypto_box_curve25519xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xchacha20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_seedbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_noncebytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_macbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached (unsigned char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *pk, - const unsigned - char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long - mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy_afternm (unsigned char *m, - const unsigned - char *c, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached_afternm (unsigned char *c, - unsigned char *mac, - const unsigned - char *m, - unsigned long long - mlen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached_afternm (unsigned - char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long - long clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_curve25519xchacha20poly1305_SEALBYTES \ - (crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES \ - + crypto_box_curve25519xchacha20poly1305_MACBYTES) - -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_box_curve25519xsalsa20poly1305.h @@ -1,114 +0,0 @@ -#ifndef crypto_box_curve25519xsalsa20poly1305_H -#define crypto_box_curve25519xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xsalsa20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_seedbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_noncebytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES \ - (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES \ - + crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_zerobytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open_afternm (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_ed25519.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_ed25519.h @@ -1,104 +0,0 @@ -#ifndef crypto_core_ed25519_H -#define crypto_core_ed25519_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ed25519_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_bytes (void); - -#define crypto_core_ed25519_UNIFORMBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_uniformbytes (void); - -#define crypto_core_ed25519_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_hashbytes (void); - -#define crypto_core_ed25519_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_scalarbytes (void); - -#define crypto_core_ed25519_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ed25519_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_add (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_sub (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_uniform (unsigned char *p, const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_hash (unsigned char *p, const unsigned char *h) -__attribute__ ((nonnull)) __attribute__ ((deprecated)); - -SODIUM_EXPORT -void crypto_core_ed25519_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_scalar_invert (unsigned char *recip, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_negate (unsigned char *neg, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_complement (unsigned char *comp, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_add (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_sub (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_mul (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ed25519_scalar_reduce (unsigned char *r, const unsigned - char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_hchacha20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_hchacha20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hchacha20_H -#define crypto_core_hchacha20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hchacha20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_outputbytes (void); - -#define crypto_core_hchacha20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_inputbytes (void); - -#define crypto_core_hchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_keybytes (void); - -#define crypto_core_hchacha20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hchacha20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_hsalsa20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_hsalsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hsalsa20_H -#define crypto_core_hsalsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hsalsa20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_outputbytes (void); - -#define crypto_core_hsalsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_inputbytes (void); - -#define crypto_core_hsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_keybytes (void); - -#define crypto_core_hsalsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hsalsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_ristretto255.h @@ -1,102 +0,0 @@ -#ifndef crypto_core_ristretto255_H -#define crypto_core_ristretto255_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ristretto255_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_bytes (void); - -#define crypto_core_ristretto255_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_hashbytes (void); - -#define crypto_core_ristretto255_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_scalarbytes (void); - -#define crypto_core_ristretto255_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ristretto255_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_add (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_sub (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_from_hash (unsigned char *p, - const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_scalar_invert (unsigned char *recip, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_negate (unsigned char *neg, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_complement (unsigned char *comp, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_add (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_sub (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_mul (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_reduce (unsigned char *r, - const unsigned char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa20_H -#define crypto_core_salsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa20_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa20_outputbytes (void); - -#define crypto_core_salsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_inputbytes (void); - -#define crypto_core_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa20_keybytes (void); - -#define crypto_core_salsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa2012.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa2012_H -#define crypto_core_salsa2012_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa2012_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa2012_outputbytes (void); - -#define crypto_core_salsa2012_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_inputbytes (void); - -#define crypto_core_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa2012_keybytes (void); - -#define crypto_core_salsa2012_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa2012 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa208.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_core_salsa208.h @@ -1,40 +0,0 @@ -#ifndef crypto_core_salsa208_H -#define crypto_core_salsa208_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa208_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa208_outputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_inputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_constbytes (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_core_salsa208 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_generichash.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_generichash.h @@ -1,84 +0,0 @@ -#ifndef crypto_generichash_H -#define crypto_generichash_H - -#include <stddef.h> - -#include "crypto_generichash_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_bytes_min (void); - -#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_bytes_max (void); - -#define crypto_generichash_BYTES crypto_generichash_blake2b_BYTES -SODIUM_EXPORT -size_t crypto_generichash_bytes (void); - -#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_keybytes_min (void); - -#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_keybytes_max (void); - -#define crypto_generichash_KEYBYTES crypto_generichash_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_generichash_keybytes (void); - -#define crypto_generichash_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_generichash_primitive (void); - -/* - * Important when writing bindings for other programming languages: - * the state address should be 64-bytes aligned. - */ -typedef crypto_generichash_blake2b_state crypto_generichash_state; - -SODIUM_EXPORT -size_t crypto_generichash_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash (unsigned char *out, size_t outlen, - const unsigned char *in, unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_init (crypto_generichash_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_update (crypto_generichash_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_final (crypto_generichash_state *state, - unsigned char *out, const size_t outlen) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_generichash_keygen (unsigned char k[crypto_generichash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_generichash_blake2b.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_generichash_blake2b.h @@ -1,128 +0,0 @@ -#ifndef crypto_generichash_blake2b_H -#define crypto_generichash_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#ifdef __IBMC__ -# pragma pack(1) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack(1) -#else -# pragma pack(push, 1) -#endif - -typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state -{ - unsigned char opaque[384]; -} crypto_generichash_blake2b_state; - -#ifdef __IBMC__ -# pragma pack(pop) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack() -#else -# pragma pack(pop) -#endif - -#define crypto_generichash_blake2b_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_min (void); - -#define crypto_generichash_blake2b_BYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_max (void); - -#define crypto_generichash_blake2b_BYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes (void); - -#define crypto_generichash_blake2b_KEYBYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_min (void); - -#define crypto_generichash_blake2b_KEYBYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_max (void); - -#define crypto_generichash_blake2b_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes (void); - -#define crypto_generichash_blake2b_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_saltbytes (void); - -#define crypto_generichash_blake2b_PERSONALBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_personalbytes (void); - -SODIUM_EXPORT -size_t crypto_generichash_blake2b_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash_blake2b (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_salt_personal (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, - size_t keylen, - const unsigned char *salt, - const unsigned char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init (crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init_salt_personal ( - crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const - size_t outlen, - const unsigned char *salt, - const unsigned - char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_update (crypto_generichash_blake2b_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_final (crypto_generichash_blake2b_state *state, - unsigned char *out, - const size_t outlen) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_generichash_blake2b_keygen (unsigned char - k[crypto_generichash_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash.h @@ -1,40 +0,0 @@ -#ifndef crypto_hash_H -#define crypto_hash_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> - -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_hash_BYTES crypto_hash_sha512_BYTES -SODIUM_EXPORT -size_t crypto_hash_bytes (void); - -SODIUM_EXPORT -int crypto_hash (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -#define crypto_hash_PRIMITIVE "sha512" -SODIUM_EXPORT -const char *crypto_hash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash_sha256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash_sha256.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha256_H -#define crypto_hash_sha256_H - -/* - * WARNING: Unless you absolutely need to use SHA256 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA256, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha256_state -{ - uint32_t state[8]; - uint64_t count; - uint8_t buf[64]; -} crypto_hash_sha256_state; - -SODIUM_EXPORT -size_t crypto_hash_sha256_statebytes (void); - -#define crypto_hash_sha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_hash_sha256_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha256 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_init (crypto_hash_sha256_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha256_update (crypto_hash_sha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_final (crypto_hash_sha256_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash_sha512.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_hash_sha512.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha512_H -#define crypto_hash_sha512_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha512_state -{ - uint64_t state[8]; - uint64_t count[2]; - uint8_t buf[128]; -} crypto_hash_sha512_state; - -SODIUM_EXPORT -size_t crypto_hash_sha512_statebytes (void); - -#define crypto_hash_sha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_hash_sha512_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_init (crypto_hash_sha512_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha512_update (crypto_hash_sha512_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_final (crypto_hash_sha512_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf.h @@ -1,53 +0,0 @@ -#ifndef crypto_kdf_H -#define crypto_kdf_H - -#include <stddef.h> -#include <stdint.h> - -#include "crypto_kdf_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_BYTES_MIN crypto_kdf_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_kdf_bytes_min (void); - -#define crypto_kdf_BYTES_MAX crypto_kdf_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_kdf_bytes_max (void); - -#define crypto_kdf_CONTEXTBYTES crypto_kdf_blake2b_CONTEXTBYTES -SODIUM_EXPORT -size_t crypto_kdf_contextbytes (void); - -#define crypto_kdf_KEYBYTES crypto_kdf_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_kdf_keybytes (void); - -#define crypto_kdf_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_kdf_primitive (void) -__attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int crypto_kdf_derive_from_key (unsigned char *subkey, size_t subkey_len, - uint64_t subkey_id, - const char ctx[crypto_kdf_CONTEXTBYTES], - const unsigned char key[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_kdf_keygen (unsigned char k[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_blake2b.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_blake2b.h @@ -1,47 +0,0 @@ -#ifndef crypto_kdf_blake2b_H -#define crypto_kdf_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_blake2b_BYTES_MIN 16 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_min (void); - -#define crypto_kdf_blake2b_BYTES_MAX 64 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_max (void); - -#define crypto_kdf_blake2b_CONTEXTBYTES 8 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_contextbytes (void); - -#define crypto_kdf_blake2b_KEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_keybytes (void); - -SODIUM_EXPORT -int crypto_kdf_blake2b_derive_from_key (unsigned char *subkey, size_t - subkey_len, - uint64_t subkey_id, - const char - ctx[crypto_kdf_blake2b_CONTEXTBYTES], - const unsigned char - key[crypto_kdf_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_hkdf_sha256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_hkdf_sha256.h @@ -1,81 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha256_H -#define crypto_kdf_hkdf_sha256_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha256_KEYBYTES crypto_auth_hmacsha256_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_keybytes (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_min (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MAX (0xff * crypto_auth_hmacsha256_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(4))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha256_keygen (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha256_state -{ - crypto_auth_hmacsha256_state st; -} crypto_kdf_hkdf_sha256_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_init (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_update (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_final (crypto_kdf_hkdf_sha256_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_hkdf_sha512.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kdf_hkdf_sha512.h @@ -1,82 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha512_H -#define crypto_kdf_hkdf_sha512_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha512_KEYBYTES crypto_auth_hmacsha512_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_keybytes (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_min (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MAX (0xff * crypto_auth_hmacsha512_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha512_keygen (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha512_state -{ - crypto_auth_hmacsha512_state st; -} crypto_kdf_hkdf_sha512_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_init (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_update (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_final (crypto_kdf_hkdf_sha512_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kx.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_kx.h @@ -1,72 +0,0 @@ -#ifndef crypto_kx_H -#define crypto_kx_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kx_PUBLICKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_publickeybytes (void); - -#define crypto_kx_SECRETKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_secretkeybytes (void); - -#define crypto_kx_SEEDBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_seedbytes (void); - -#define crypto_kx_SESSIONKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_sessionkeybytes (void); - -#define crypto_kx_PRIMITIVE "x25519blake2b" -SODIUM_EXPORT -const char *crypto_kx_primitive (void); - -SODIUM_EXPORT -int crypto_kx_seed_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES], - const unsigned char seed[crypto_kx_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_client_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - client_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -SODIUM_EXPORT -int crypto_kx_server_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - server_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_onetimeauth.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_onetimeauth.h @@ -1,66 +0,0 @@ -#ifndef crypto_onetimeauth_H -#define crypto_onetimeauth_H - -#include <stddef.h> - -#include "crypto_onetimeauth_poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_statebytes (void); - -#define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_bytes (void); - -#define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_keybytes (void); - -#define crypto_onetimeauth_PRIMITIVE "poly1305" -SODIUM_EXPORT -const char *crypto_onetimeauth_primitive (void); - -SODIUM_EXPORT -int crypto_onetimeauth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_init (crypto_onetimeauth_state *state, - const unsigned char *key) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_update (crypto_onetimeauth_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_final (crypto_onetimeauth_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_keygen (unsigned char k[crypto_onetimeauth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_onetimeauth_poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_onetimeauth_poly1305.h @@ -1,75 +0,0 @@ -#ifndef crypto_onetimeauth_poly1305_H -#define crypto_onetimeauth_poly1305_H - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state -{ - unsigned char opaque[256]; -} crypto_onetimeauth_poly1305_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_statebytes (void); - -#define crypto_onetimeauth_poly1305_BYTES 16U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_bytes (void); - -#define crypto_onetimeauth_poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_keybytes (void); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_init (crypto_onetimeauth_poly1305_state *state, - const unsigned char *key) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_update ( - crypto_onetimeauth_poly1305_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_final (crypto_onetimeauth_poly1305_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_poly1305_keygen (unsigned char - k[crypto_onetimeauth_poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash.h @@ -1,154 +0,0 @@ -#ifndef crypto_pwhash_H -#define crypto_pwhash_H - -#include <stddef.h> - -#include "crypto_pwhash_argon2i.h" -#include "crypto_pwhash_argon2id.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2i13 (void); - -#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2id13 (void); - -#define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_default (void); - -#define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN -SODIUM_EXPORT -size_t crypto_pwhash_bytes_min (void); - -#define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX -SODIUM_EXPORT -size_t crypto_pwhash_bytes_max (void); - -#define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN -SODIUM_EXPORT -size_t crypto_pwhash_passwd_min (void); - -#define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX -SODIUM_EXPORT -size_t crypto_pwhash_passwd_max (void); - -#define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES -SODIUM_EXPORT -size_t crypto_pwhash_saltbytes (void); - -#define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES -SODIUM_EXPORT -size_t crypto_pwhash_strbytes (void); - -#define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX -SODIUM_EXPORT -const char *crypto_pwhash_strprefix (void); - -#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_min (void); - -#define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_max (void); - -#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_min (void); - -#define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_max (void); - -#define crypto_pwhash_OPSLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_interactive (void); - -#define crypto_pwhash_MEMLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_interactive (void); - -#define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_moderate (void); - -#define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_moderate (void); - -#define crypto_pwhash_OPSLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_sensitive (void); - -#define crypto_pwhash_MEMLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_sensitive (void); - -/* - * With this function, do not forget to store all parameters, including the - * algorithm identifier in order to produce deterministic output. - * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, - * may change. - */ -SODIUM_EXPORT -int crypto_pwhash (unsigned char *const out, unsigned long long outlen, - const char *const passwd, unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* - * The output string already includes all the required parameters, including - * the algorithm identifier. The string is all that has to be stored in - * order to verify a password. - */ -SODIUM_EXPORT -int crypto_pwhash_str (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_alg (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long - passwdlen, - unsigned long long opslimit, size_t memlimit, int - alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#define crypto_pwhash_PRIMITIVE "argon2id,argon2i" -SODIUM_EXPORT -const char *crypto_pwhash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_argon2i.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_argon2i.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2i_H -#define crypto_pwhash_argon2i_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2i_ALG_ARGON2I13 1 -SODIUM_EXPORT -int crypto_pwhash_argon2i_alg_argon2i13 (void); - -#define crypto_pwhash_argon2i_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_min (void); - -#define crypto_pwhash_argon2i_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_max (void); - -#define crypto_pwhash_argon2i_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_min (void); - -#define crypto_pwhash_argon2i_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_max (void); - -#define crypto_pwhash_argon2i_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_saltbytes (void); - -#define crypto_pwhash_argon2i_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_strbytes (void); - -#define crypto_pwhash_argon2i_STRPREFIX "$argon2i$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2i_strprefix (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MIN 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_min (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_max (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_min (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_max (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_interactive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_interactive (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MODERATE 6U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_moderate (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MODERATE 134217728U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_moderate (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE 8U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_sensitive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE 536870912U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2i (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str (char out[crypto_pwhash_argon2i_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_argon2id.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_argon2id.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2id_H -#define crypto_pwhash_argon2id_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 -SODIUM_EXPORT -int crypto_pwhash_argon2id_alg_argon2id13 (void); - -#define crypto_pwhash_argon2id_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_min (void); - -#define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_max (void); - -#define crypto_pwhash_argon2id_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_min (void); - -#define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_max (void); - -#define crypto_pwhash_argon2id_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_saltbytes (void); - -#define crypto_pwhash_argon2id_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_strbytes (void); - -#define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2id_strprefix (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_min (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_max (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_min (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_max (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_interactive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_interactive (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_moderate (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_moderate (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_sensitive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2id (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str (char out[crypto_pwhash_argon2id_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_scryptsalsa208sha256_H -#define crypto_pwhash_scryptsalsa208sha256_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 0x1fffffffe0ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_SALTBYTES 32U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_saltbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_strbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRPREFIX "$7$" -SODIUM_EXPORT -const char *crypto_pwhash_scryptsalsa208sha256_strprefix (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN 32768U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX \ - SODIUM_MIN (SIZE_MAX, 68719476736ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE 524288U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256 (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str (char - out[ - crypto_pwhash_scryptsalsa208sha256_STRBYTES - ], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_ll (const uint8_t *passwd, size_t - passwdlen, - const uint8_t *salt, size_t saltlen, - uint64_t N, uint32_t r, uint32_t p, - uint8_t *buf, size_t buflen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash (const char *str, - unsigned long long - opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult.h @@ -1,46 +0,0 @@ -#ifndef crypto_scalarmult_H -#define crypto_scalarmult_H - -#include <stddef.h> - -#include "crypto_scalarmult_curve25519.h" -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES -SODIUM_EXPORT -size_t crypto_scalarmult_bytes (void); - -#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES -SODIUM_EXPORT -size_t crypto_scalarmult_scalarbytes (void); - -#define crypto_scalarmult_PRIMITIVE "curve25519" -SODIUM_EXPORT -const char *crypto_scalarmult_primitive (void); - -SODIUM_EXPORT -int crypto_scalarmult_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_curve25519.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_curve25519.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_curve25519_H -#define crypto_scalarmult_curve25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_curve25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_bytes (void); - -#define crypto_scalarmult_curve25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_curve25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_curve25519_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_ed25519.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_ed25519.h @@ -1,51 +0,0 @@ -#ifndef crypto_scalarmult_ed25519_H -#define crypto_scalarmult_ed25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ed25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_bytes (void); - -#define crypto_scalarmult_ed25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ed25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_noclamp (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base_noclamp (unsigned char *q, const unsigned - char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_scalarmult_ristretto255.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_ristretto255_H -#define crypto_scalarmult_ristretto255_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ristretto255_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_bytes (void); - -#define crypto_scalarmult_ristretto255_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ristretto255 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ristretto255_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox.h @@ -1,97 +0,0 @@ -#ifndef crypto_secretbox_H -#define crypto_secretbox_H - -#include <stddef.h> - -#include "crypto_secretbox_xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretbox_keybytes (void); - -#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_secretbox_noncebytes (void); - -#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_secretbox_macbytes (void); - -#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_secretbox_primitive (void); - -#define crypto_secretbox_MESSAGEBYTES_MAX \ - crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_secretbox_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -SODIUM_EXPORT -void crypto_secretbox_keygen (unsigned char k[crypto_secretbox_KEYBYTES]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_zerobytes (void); - -#define crypto_secretbox_BOXZEROBYTES \ - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_secretbox (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox_xchacha20poly1305.h @@ -1,71 +0,0 @@ -#ifndef crypto_secretbox_xchacha20poly1305_H -#define crypto_secretbox_xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xchacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_keybytes (void); - -#define crypto_secretbox_xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_noncebytes (void); - -#define crypto_secretbox_xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_macbytes (void); - -#define crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -1,73 +0,0 @@ -#ifndef crypto_secretbox_xsalsa20poly1305_H -#define crypto_secretbox_xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_keybytes (void); - -#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_noncebytes (void); - -#define crypto_secretbox_xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -void crypto_secretbox_xsalsa20poly1305_keygen (unsigned char - k[ - crypto_secretbox_xsalsa20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes (void); - -#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES \ - (crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES \ - + crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_zerobytes (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretstream_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -1,117 +0,0 @@ -#ifndef crypto_secretstream_xchacha20poly1305_H -#define crypto_secretstream_xchacha20poly1305_H - -#include <stddef.h> - -#include "crypto_aead_xchacha20poly1305.h" -#include "crypto_stream_chacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretstream_xchacha20poly1305_ABYTES \ - (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_abytes (void); - -#define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_headerbytes (void); - -#define crypto_secretstream_xchacha20poly1305_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_keybytes (void); - -#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ - (64ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_messagebytes_max (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_message (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_push (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ - (crypto_secretstream_xchacha20poly1305_TAG_PUSH \ - | crypto_secretstream_xchacha20poly1305_TAG_REKEY) -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_final (void); - -typedef struct crypto_secretstream_xchacha20poly1305_state -{ - unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; - unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; - unsigned char _pad[8]; -} crypto_secretstream_xchacha20poly1305_state; - -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_statebytes (void); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_keygen - (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_push - (crypto_secretstream_xchacha20poly1305_state * state, - unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_push ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *c, unsigned long - long *clen_p, - const unsigned char *m, unsigned - long long mlen, - const unsigned char *ad, - unsigned long long adlen, unsigned char tag) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char - header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char - k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *m, unsigned long - long *mlen_p, unsigned char *tag_p, - const unsigned char *c, unsigned - long long clen, - const unsigned char *ad, - unsigned long long adlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey ( - crypto_secretstream_xchacha20poly1305_state *state); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_shorthash.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_shorthash.h @@ -1,41 +0,0 @@ -#ifndef crypto_shorthash_H -#define crypto_shorthash_H - -#include <stddef.h> - -#include "crypto_shorthash_siphash24.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES -SODIUM_EXPORT -size_t crypto_shorthash_bytes (void); - -#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES -SODIUM_EXPORT -size_t crypto_shorthash_keybytes (void); - -#define crypto_shorthash_PRIMITIVE "siphash24" -SODIUM_EXPORT -const char *crypto_shorthash_primitive (void); - -SODIUM_EXPORT -int crypto_shorthash (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_shorthash_keygen (unsigned char k[crypto_shorthash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_shorthash_siphash24.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_shorthash_siphash24.h @@ -1,53 +0,0 @@ -#ifndef crypto_shorthash_siphash24_H -#define crypto_shorthash_siphash24_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- 64-bit output -- */ - -#define crypto_shorthash_siphash24_BYTES 8U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_bytes (void); - -#define crypto_shorthash_siphash24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphash24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#ifndef SODIUM_LIBRARY_MINIMAL -/* -- 128-bit output -- */ - -#define crypto_shorthash_siphashx24_BYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_bytes (void); - -#define crypto_shorthash_siphashx24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphashx24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign.h @@ -1,109 +0,0 @@ -#ifndef crypto_sign_H -#define crypto_sign_H - -/* - * THREAD SAFETY: crypto_sign_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions, including crypto_sign_seed_keypair() are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_sign_ed25519.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_sign_ed25519ph_state crypto_sign_state; - -SODIUM_EXPORT -size_t crypto_sign_statebytes (void); - -#define crypto_sign_BYTES crypto_sign_ed25519_BYTES -SODIUM_EXPORT -size_t crypto_sign_bytes (void); - -#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES -SODIUM_EXPORT -size_t crypto_sign_seedbytes (void); - -#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_publickeybytes (void); - -#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_secretkeybytes (void); - -#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_sign_messagebytes_max (void); - -#define crypto_sign_PRIMITIVE "ed25519" -SODIUM_EXPORT -const char *crypto_sign_primitive (void); - -SODIUM_EXPORT -int crypto_sign_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_detached (unsigned char *sig, unsigned long long *siglen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, - 5))); - -SODIUM_EXPORT -int crypto_sign_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_init (crypto_sign_state *state); - -SODIUM_EXPORT -int crypto_sign_update (crypto_sign_state *state, - const unsigned char *m, unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_final_create (crypto_sign_state *state, unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_final_verify (crypto_sign_state *state, const unsigned - char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign_ed25519.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign_ed25519.h @@ -1,126 +0,0 @@ -#ifndef crypto_sign_ed25519_H -#define crypto_sign_ed25519_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_sign_ed25519ph_state -{ - crypto_hash_sha512_state hs; -} crypto_sign_ed25519ph_state; - -SODIUM_EXPORT -size_t crypto_sign_ed25519ph_statebytes (void); - -#define crypto_sign_ed25519_BYTES 64U -SODIUM_EXPORT -size_t crypto_sign_ed25519_bytes (void); - -#define crypto_sign_ed25519_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_seedbytes (void); - -#define crypto_sign_ed25519_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_publickeybytes (void); - -#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) -SODIUM_EXPORT -size_t crypto_sign_ed25519_secretkeybytes (void); - -#define crypto_sign_ed25519_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - crypto_sign_ed25519_BYTES) -SODIUM_EXPORT -size_t crypto_sign_ed25519_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_sign_ed25519 (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_detached (unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_pk_to_curve25519 (unsigned char *curve25519_pk, - const unsigned char *ed25519_pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_curve25519 (unsigned char *curve25519_sk, - const unsigned char *ed25519_sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_seed (unsigned char *seed, - const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_pk (unsigned char *pk, const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_init (crypto_sign_ed25519ph_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_update (crypto_sign_ed25519ph_state *state, - const unsigned char *m, - unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_create (crypto_sign_ed25519ph_state *state, - unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_verify (crypto_sign_ed25519ph_state *state, - const unsigned char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign_edwards25519sha512batch.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -1,57 +0,0 @@ -#ifndef crypto_sign_edwards25519sha512batch_H -#define crypto_sign_edwards25519sha512batch_H - -/* - * WARNING: This construction was a prototype, which should not be used - * any more in new projects. - * - * crypto_sign_edwards25519sha512batch is provided for applications - * initially built with NaCl, but as recommended by the author of this - * construction, new applications should use ed25519 instead. - * - * In Sodium, you should use the high-level crypto_sign_*() functions instead. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_sign_edwards25519sha512batch_BYTES 64U -#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) -#define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - \ - crypto_sign_edwards25519sha512batch_BYTES) - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch (unsigned char *sm, - unsigned long long *smlen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_open (unsigned char *m, - unsigned long long *mlen_p, - const unsigned char *sm, - unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream.h @@ -1,59 +0,0 @@ -#ifndef crypto_stream_H -#define crypto_stream_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> - -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES -SODIUM_EXPORT -size_t crypto_stream_keybytes (void); - -#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES -SODIUM_EXPORT -size_t crypto_stream_noncebytes (void); - -#define crypto_stream_MESSAGEBYTES_MAX crypto_stream_xsalsa20_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_stream_messagebytes_max (void); - -#define crypto_stream_PRIMITIVE "xsalsa20" -SODIUM_EXPORT -const char *crypto_stream_primitive (void); - -SODIUM_EXPORT -int crypto_stream (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_keygen (unsigned char k[crypto_stream_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_chacha20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_chacha20.h @@ -1,113 +0,0 @@ -#ifndef crypto_stream_chacha20_H -#define crypto_stream_chacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_chacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_keybytes (void); - -#define crypto_stream_chacha20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_chacha20_noncebytes (void); - -#define crypto_stream_chacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_chacha20_messagebytes_max (void); - -/* ChaCha20 with a 64-bit nonce and a 64-bit counter, as originally designed */ - -SODIUM_EXPORT -int crypto_stream_chacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_keygen (unsigned char - k[crypto_stream_chacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -/* ChaCha20 with a 96-bit nonce and a 32-bit counter (IETF) */ - -#define crypto_stream_chacha20_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_keybytes (void); - -#define crypto_stream_chacha20_ietf_NONCEBYTES 12U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_noncebytes (void); - -#define crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 64ULL * (1ULL << 32)) -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor_ic (unsigned char *c, const unsigned - char *m, - unsigned long long mlen, - const unsigned char *n, uint32_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_ietf_keygen (unsigned char - k[crypto_stream_chacha20_ietf_KEYBYTES]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_stream_chacha20_IETF_KEYBYTES \ - crypto_stream_chacha20_ietf_KEYBYTES -#define crypto_stream_chacha20_IETF_NONCEBYTES \ - crypto_stream_chacha20_ietf_NONCEBYTES -#define crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX \ - crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_salsa20_H -#define crypto_stream_salsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa20_keybytes (void); - -#define crypto_stream_salsa20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa20_noncebytes (void); - -#define crypto_stream_salsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa20_keygen (unsigned char - k[crypto_stream_salsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa2012.h @@ -1,55 +0,0 @@ -#ifndef crypto_stream_salsa2012_H -#define crypto_stream_salsa2012_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_keybytes (void); - -#define crypto_stream_salsa2012_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_noncebytes (void); - -#define crypto_stream_salsa2012_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa2012_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa2012 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa2012_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa2012_keygen (unsigned char - k[crypto_stream_salsa2012_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa208.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_salsa208.h @@ -1,57 +0,0 @@ -#ifndef crypto_stream_salsa208_H -#define crypto_stream_salsa208_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa208_noncebytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa208_messagebytes_max (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_stream_salsa208 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa208_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa208_keygen (unsigned char - k[crypto_stream_salsa208_KEYBYTES]) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_xchacha20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_xchacha20.h @@ -1,63 +0,0 @@ -#ifndef crypto_stream_xchacha20_H -#define crypto_stream_xchacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_keybytes (void); - -#define crypto_stream_xchacha20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_noncebytes (void); - -#define crypto_stream_xchacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xchacha20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xchacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xchacha20_keygen (unsigned char - k[crypto_stream_xchacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_xsalsa20.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_stream_xsalsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_xsalsa20_H -#define crypto_stream_xsalsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_keybytes (void); - -#define crypto_stream_xsalsa20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_noncebytes (void); - -#define crypto_stream_xsalsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xsalsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xsalsa20_keygen (unsigned char - k[crypto_stream_xsalsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_16.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_16.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_16_H -#define crypto_verify_16_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_16_BYTES 16U -SODIUM_EXPORT -size_t crypto_verify_16_bytes (void); - -SODIUM_EXPORT -int crypto_verify_16 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_32.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_32.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_32_H -#define crypto_verify_32_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_32_BYTES 32U -SODIUM_EXPORT -size_t crypto_verify_32_bytes (void); - -SODIUM_EXPORT -int crypto_verify_32 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_64.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/crypto_verify_64.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_64_H -#define crypto_verify_64_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_64_BYTES 64U -SODIUM_EXPORT -size_t crypto_verify_64_bytes (void); - -SODIUM_EXPORT -int crypto_verify_64 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/export.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/export.h @@ -1,56 +0,0 @@ -#ifndef sodium_export_H -#define sodium_export_H - -#include <stddef.h> -#include <stdint.h> -#include <limits.h> - -#if ! defined(__clang__) && ! defined(__GNUC__) -# ifdef __attribute__ -# undef __attribute__ -# endif -# define __attribute__(a) -#endif - -#ifdef SODIUM_STATIC -# define SODIUM_EXPORT -# define SODIUM_EXPORT_WEAK -#else -# if defined(_MSC_VER) -# ifdef SODIUM_DLL_EXPORT -# define SODIUM_EXPORT __declspec(dllexport) -# else -# define SODIUM_EXPORT __declspec(dllimport) -# endif -# else -# if defined(__SUNPRO_C) -# ifndef __GNU_C__ -# define SODIUM_EXPORT __attribute__ (visibility (__global)) -# else -# define SODIUM_EXPORT __attribute__ __global -# endif -# elif defined(_MSG_VER) -# define SODIUM_EXPORT extern __declspec(dllexport) -# else -# define SODIUM_EXPORT __attribute__ ((visibility ("default"))) -# endif -# endif -# if defined(__ELF__) && ! defined(SODIUM_DISABLE_WEAK_FUNCTIONS) -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak)) -# else -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT -# endif -#endif - -#ifndef CRYPTO_ALIGN -# if defined(__INTEL_COMPILER) || defined(_MSC_VER) -# define CRYPTO_ALIGN(x) __declspec(align (x)) -# else -# define CRYPTO_ALIGN(x) __attribute__ ((aligned (x))) -# endif -#endif - -#define SODIUM_MIN(A, B) ((A) < (B) ? (A) : (B)) -#define SODIUM_SIZE_MAX SODIUM_MIN (UINT64_MAX, SIZE_MAX) - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes.h @@ -1,73 +0,0 @@ -#ifndef randombytes_H -#define randombytes_H - -#include <stddef.h> -#include <stdint.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct randombytes_implementation -{ - const char *(*implementation_name)(void); /* required */ - uint32_t (*random)(void); /* required */ - void (*stir)(void); /* optional */ - uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ - void (*buf)(void *const buf, const size_t size); /* required */ - int (*close)(void); /* optional */ -} randombytes_implementation; - -#define randombytes_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, 0xffffffffUL) - -#define randombytes_SEEDBYTES 32U -SODIUM_EXPORT -size_t randombytes_seedbytes (void); - -SODIUM_EXPORT -void randombytes_buf (void *const buf, const size_t size) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void randombytes_buf_deterministic (void *const buf, const size_t size, - const unsigned char - seed[randombytes_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -uint32_t randombytes_random (void); - -SODIUM_EXPORT -uint32_t randombytes_uniform (const uint32_t upper_bound); - -SODIUM_EXPORT -void randombytes_stir (void); - -SODIUM_EXPORT -int randombytes_close (void); - -SODIUM_EXPORT -int randombytes_set_implementation (const randombytes_implementation *impl) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -const char *randombytes_implementation_name (void); - -/* -- NaCl compatibility interface -- */ - -SODIUM_EXPORT -void randombytes (unsigned char *const buf, const unsigned long long buf_len) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes_internal_random.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes_internal_random.h @@ -1,21 +0,0 @@ -#ifndef randombytes_internal_random_H -#define randombytes_internal_random_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_internal_implementation; - -/* Backwards compatibility with libsodium < 1.0.18 */ -#define randombytes_salsa20_implementation randombytes_internal_implementation - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes_sysrandom.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/randombytes_sysrandom.h @@ -1,18 +0,0 @@ -#ifndef randombytes_sysrandom_H -#define randombytes_sysrandom_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_sysrandom_implementation; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/runtime.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/runtime.h @@ -1,54 +0,0 @@ -#ifndef sodium_runtime_H -#define sodium_runtime_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_neon (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_armcrypto (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_ssse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse41 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx512f (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_pclmul (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_aesni (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_rdrand (void); - -/* ------------------------------------------------------------------------- */ - -int _sodium_runtime_get_cpu_features (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/utils.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/utils.h @@ -1,182 +0,0 @@ -#ifndef sodium_utils_H -#define sodium_utils_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef SODIUM_C99 -# if defined(__cplusplus) || ! defined(__STDC_VERSION__) || __STDC_VERSION__ < \ - 199901L -# define SODIUM_C99(X) -# else -# define SODIUM_C99(X) X -# endif -#endif - -SODIUM_EXPORT -void sodium_memzero (void *const pnt, const size_t len); - -SODIUM_EXPORT -void sodium_stackzero (const size_t len); - -/* - * WARNING: sodium_memcmp() must be used to verify if two secret keys - * are equal, in constant time. - * It returns 0 if the keys are equal, and -1 if they differ. - * This function is not designed for lexicographical comparisons. - */ -SODIUM_EXPORT -int sodium_memcmp (const void *const b1_, const void *const b2_, size_t len) -__attribute__ ((warn_unused_result)); - -/* - * sodium_compare() returns -1 if b1_ < b2_, 1 if b1_ > b2_ and 0 if b1_ == b2_ - * It is suitable for lexicographical comparisons, or to compare nonces - * and counters stored in little-endian format. - * However, it is slower than sodium_memcmp(). - */ -SODIUM_EXPORT -int sodium_compare (const unsigned char *b1_, const unsigned char *b2_, - size_t len) __attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int sodium_is_zero (const unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_increment (unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_add (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -void sodium_sub (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -char *sodium_bin2hex (char *const hex, const size_t hex_maxlen, - const unsigned char *const bin, const size_t bin_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_hex2bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const hex, const size_t hex_len, - const char *const ignore, size_t *const bin_len, - const char **const hex_end) -__attribute__ ((nonnull(1))); - -#define sodium_base64_VARIANT_ORIGINAL 1 -#define sodium_base64_VARIANT_ORIGINAL_NO_PADDING 3 -#define sodium_base64_VARIANT_URLSAFE 5 -#define sodium_base64_VARIANT_URLSAFE_NO_PADDING 7 - -/* - * Computes the required length to encode BIN_LEN bytes as a base64 string - * using the given variant. The computed length includes a trailing \0. - */ -#define sodium_base64_ENCODED_LEN(BIN_LEN, VARIANT) \ - (((BIN_LEN) / 3U) * 4U \ - + ((((BIN_LEN) -((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) -((BIN_LEN) / 3U) \ - * 3U) >> 1)) & 1U) \ - * (4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) -((BIN_LEN) \ - / 3U) \ - * 3U)))) + 1U) - -SODIUM_EXPORT -size_t sodium_base64_encoded_len (const size_t bin_len, const int variant); - -SODIUM_EXPORT -char *sodium_bin2base64 (char *const b64, const size_t b64_maxlen, - const unsigned char *const bin, const size_t bin_len, - const int variant) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_base642bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const b64, const size_t b64_len, - const char *const ignore, size_t *const bin_len, - const char **const b64_end, const int variant) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_mlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_munlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -/* WARNING: sodium_malloc() and sodium_allocarray() are not general-purpose - * allocation functions. - * - * They return a pointer to a region filled with 0xd0 bytes, immediately - * followed by a guard page. - * As a result, accessing a single byte after the requested allocation size - * will intentionally trigger a segmentation fault. - * - * A canary and an additional guard page placed before the beginning of the - * region may also kill the process if a buffer underflow is detected. - * - * The memory layout is: - * [unprotected region size (read only)][guard page (no access)][unprotected pages (read/write)][guard page (no access)] - * With the layout of the unprotected pages being: - * [optional padding][16-bytes canary][user region] - * - * However: - * - These functions are significantly slower than standard functions - * - Each allocation requires 3 or 4 additional pages - * - The returned address will not be aligned if the allocation size is not - * a multiple of the required alignment. For this reason, these functions - * are designed to store data, such as secret keys and messages. - * - * sodium_malloc() can be used to allocate any libsodium data structure. - * - * The crypto_generichash_state structure is packed and its length is - * either 357 or 361 bytes. For this reason, when using sodium_malloc() to - * allocate a crypto_generichash_state structure, padding must be added in - * order to ensure proper alignment. crypto_generichash_statebytes() - * returns the rounded up structure size, and should be preferred to sizeof(): - * state = sodium_malloc(crypto_generichash_statebytes()); - */ - -SODIUM_EXPORT -void *sodium_malloc (const size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void *sodium_allocarray (size_t count, size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void sodium_free (void *ptr); - -SODIUM_EXPORT -int sodium_mprotect_noaccess (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readonly (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readwrite (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_pad (size_t *padded_buflen_p, unsigned char *buf, - size_t unpadded_buflen, size_t blocksize, size_t max_buflen) -__attribute__ ((nonnull(2))); - -SODIUM_EXPORT -int sodium_unpad (size_t *unpadded_buflen_p, const unsigned char *buf, - size_t padded_buflen, size_t blocksize) -__attribute__ ((nonnull(2))); - -/* -------- */ - -int _sodium_alloc_init (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/version.h b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/include/sodium/version.h @@ -1,32 +0,0 @@ -#ifndef sodium_version_H -#define sodium_version_H - -#include "export.h" - -#define SODIUM_VERSION_STRING "1.0.20" - -#define SODIUM_LIBRARY_VERSION_MAJOR 26 -#define SODIUM_LIBRARY_VERSION_MINOR 2 -#define SODIUM_LIBRARY_MINIMAL 1 - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -const char *sodium_version_string (void); - -SODIUM_EXPORT -int sodium_library_version_major (void); - -SODIUM_EXPORT -int sodium_library_version_minor (void); - -SODIUM_EXPORT -int sodium_library_minimal (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.a b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.a Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.la b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.la @@ -1,41 +0,0 @@ -# libsodium.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.7 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='libsodium.so' - -# Names of this library. -library_names='libsodium.so' - -# The name of the static archive. -old_library='libsodium.a' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags=' -pthread' - -# Libraries that this one depends upon. -dependency_libs='' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for libsodium. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=no - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/home/enigma/Downloads/libsodium-stable/libsodium-android-armv8-a+crypto/lib' diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.so b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/libsodium.so Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/pkgconfig/libsodium.pc b/verification-app/app/src/main/cpp/libsodium/arm64-v8a/lib/pkgconfig/libsodium.pc @@ -1,12 +0,0 @@ -prefix=/home/enigma/Downloads/libsodium-stable/libsodium-android-armv8-a+crypto -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: libsodium -Version: 1.0.20 -Description: A modern and easy-to-use crypto library - -Libs: -L${libdir} -lsodium -Libs.private: -pthread -Cflags: -I${includedir} diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium.h @@ -1,74 +0,0 @@ -#ifndef sodium_H -#define sodium_H - -#include "sodium/version.h" - -#include "sodium/core.h" -#include "sodium/crypto_aead_aegis128l.h" -#include "sodium/crypto_aead_aegis256.h" -#include "sodium/crypto_aead_aes256gcm.h" -#include "sodium/crypto_aead_chacha20poly1305.h" -#include "sodium/crypto_aead_xchacha20poly1305.h" -#include "sodium/crypto_auth.h" -#include "sodium/crypto_auth_hmacsha256.h" -#include "sodium/crypto_auth_hmacsha512.h" -#include "sodium/crypto_auth_hmacsha512256.h" -#include "sodium/crypto_box.h" -#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" -#include "sodium/crypto_core_hchacha20.h" -#include "sodium/crypto_core_hsalsa20.h" -#include "sodium/crypto_core_salsa20.h" -#include "sodium/crypto_core_salsa2012.h" -#include "sodium/crypto_core_salsa208.h" -#include "sodium/crypto_generichash.h" -#include "sodium/crypto_generichash_blake2b.h" -#include "sodium/crypto_hash.h" -#include "sodium/crypto_hash_sha256.h" -#include "sodium/crypto_hash_sha512.h" -#include "sodium/crypto_kdf.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kdf_blake2b.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kx.h" -#include "sodium/crypto_onetimeauth.h" -#include "sodium/crypto_onetimeauth_poly1305.h" -#include "sodium/crypto_pwhash.h" -#include "sodium/crypto_pwhash_argon2i.h" -#include "sodium/crypto_scalarmult.h" -#include "sodium/crypto_scalarmult_curve25519.h" -#include "sodium/crypto_secretbox.h" -#include "sodium/crypto_secretbox_xsalsa20poly1305.h" -#include "sodium/crypto_secretstream_xchacha20poly1305.h" -#include "sodium/crypto_shorthash.h" -#include "sodium/crypto_shorthash_siphash24.h" -#include "sodium/crypto_sign.h" -#include "sodium/crypto_sign_ed25519.h" -#include "sodium/crypto_stream.h" -#include "sodium/crypto_stream_chacha20.h" -#include "sodium/crypto_stream_salsa20.h" -#include "sodium/crypto_stream_xsalsa20.h" -#include "sodium/crypto_verify_16.h" -#include "sodium/crypto_verify_32.h" -#include "sodium/crypto_verify_64.h" -#include "sodium/randombytes.h" -#include "sodium/randombytes_internal_random.h" -#include "sodium/randombytes_sysrandom.h" -#include "sodium/runtime.h" -#include "sodium/utils.h" - -#ifndef SODIUM_LIBRARY_MINIMAL -#include "sodium/crypto_box_curve25519xchacha20poly1305.h" -#include "sodium/crypto_core_ed25519.h" -#include "sodium/crypto_core_ristretto255.h" -#include "sodium/crypto_pwhash_scryptsalsa208sha256.h" -#include "sodium/crypto_scalarmult_ed25519.h" -#include "sodium/crypto_scalarmult_ristretto255.h" -#include "sodium/crypto_secretbox_xchacha20poly1305.h" -#include "sodium/crypto_stream_salsa2012.h" -#include "sodium/crypto_stream_salsa208.h" -#include "sodium/crypto_stream_xchacha20.h" -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/core.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/core.h @@ -1,27 +0,0 @@ -#ifndef sodium_core_H -#define sodium_core_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -int sodium_init (void) -__attribute__ ((warn_unused_result)); - -/* ---- */ - -SODIUM_EXPORT -int sodium_set_misuse_handler (void (*handler)(void)); - -SODIUM_EXPORT -void sodium_misuse (void) -__attribute__ ((noreturn)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aegis128l.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aegis128l.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis128l_H -#define crypto_aead_aegis128l_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis128l_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_keybytes (void); - -#define crypto_aead_aegis128l_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_nsecbytes (void); - -#define crypto_aead_aegis128l_NPUBBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_npubbytes (void); - -#define crypto_aead_aegis128l_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_abytes (void); - -#define crypto_aead_aegis128l_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis128l_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis128l_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis128l_keygen (unsigned char - k[crypto_aead_aegis128l_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aegis256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aegis256.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis256_H -#define crypto_aead_aegis256_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_keybytes (void); - -#define crypto_aead_aegis256_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis256_nsecbytes (void); - -#define crypto_aead_aegis256_NPUBBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_npubbytes (void); - -#define crypto_aead_aegis256_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_abytes (void); - -#define crypto_aead_aegis256_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis256_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis256_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis256_keygen (unsigned char - k[crypto_aead_aegis256_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aes256gcm.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_aes256gcm.h @@ -1,188 +0,0 @@ -#ifndef crypto_aead_aes256gcm_H -#define crypto_aead_aes256gcm_H - -/* - * WARNING: Despite being the most popular AEAD construction due to its - * use in TLS, safely using AES-GCM in a different context is tricky. - * - * No more than ~ 350 GB of input data should be encrypted with a given key. - * This is for ~ 16 KB messages -- Actual figures vary according to - * message sizes. - * - * In addition, nonces are short and repeated nonces would totally destroy - * the security of this scheme. - * - * Nonces should thus come from atomic counters, which can be difficult to - * set up in a distributed environment. - * - * Unless you absolutely need AES-GCM, use crypto_aead_xchacha20poly1305_ietf_*() - * instead. It doesn't have any of these limitations. - * Or, if you don't need to authenticate additional data, just stick to - * crypto_secretbox(). - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -SODIUM_EXPORT -int crypto_aead_aes256gcm_is_available (void); - -#define crypto_aead_aes256gcm_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_keybytes (void); - -#define crypto_aead_aes256gcm_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_nsecbytes (void); - -#define crypto_aead_aes256gcm_NPUBBYTES 12U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_npubbytes (void); - -#define crypto_aead_aes256gcm_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_abytes (void); - -#define crypto_aead_aes256gcm_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aes256gcm_ABYTES, \ - (16ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_messagebytes_max (void); - -typedef struct CRYPTO_ALIGN(16) crypto_aead_aes256gcm_state_ -{ - unsigned char opaque[512]; -} crypto_aead_aes256gcm_state; - -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_statebytes (void); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_aead_aes256gcm_beforenm (crypto_aead_aes256gcm_state *ctx_, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_afternm (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_afternm (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached_afternm (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached_afternm (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aes256gcm_keygen (unsigned char - k[crypto_aead_aes256gcm_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_chacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_chacha20poly1305.h @@ -1,198 +0,0 @@ -#ifndef crypto_aead_chacha20poly1305_H -#define crypto_aead_chacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U - -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_abytes (void); - -#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \ - (64ULL * ((1ULL << 32) - 1ULL))) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned - char *mac, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_keybytes (void); - -#define crypto_aead_chacha20poly1305_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_NPUBBYTES 8U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_abytes (void); - -#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_chacha20poly1305_IETF_KEYBYTES \ - crypto_aead_chacha20poly1305_ietf_KEYBYTES -#define crypto_aead_chacha20poly1305_IETF_NSECBYTES \ - crypto_aead_chacha20poly1305_ietf_NSECBYTES -#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_chacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_chacha20poly1305_IETF_ABYTES \ - crypto_aead_chacha20poly1305_ietf_ABYTES -#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_aead_xchacha20poly1305.h @@ -1,119 +0,0 @@ -#ifndef crypto_aead_xchacha20poly1305_H -#define crypto_aead_xchacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_aead_xchacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NPUBBYTES 24U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_abytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long - mlen, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long - clen, - const unsigned - char *mac, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_xchacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_xchacha20poly1305_IETF_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -#define crypto_aead_xchacha20poly1305_IETF_NSECBYTES \ - crypto_aead_xchacha20poly1305_ietf_NSECBYTES -#define crypto_aead_xchacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_xchacha20poly1305_IETF_ABYTES \ - crypto_aead_xchacha20poly1305_ietf_ABYTES -#define crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth.h @@ -1,46 +0,0 @@ -#ifndef crypto_auth_H -#define crypto_auth_H - -#include <stddef.h> - -#include "crypto_auth_hmacsha512256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES -SODIUM_EXPORT -size_t crypto_auth_bytes (void); - -#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES -SODIUM_EXPORT -size_t crypto_auth_keybytes (void); - -#define crypto_auth_PRIMITIVE "hmacsha512256" -SODIUM_EXPORT -const char *crypto_auth_primitive (void); - -SODIUM_EXPORT -int crypto_auth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_auth_keygen (unsigned char k[crypto_auth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha256.h @@ -1,73 +0,0 @@ -#ifndef crypto_auth_hmacsha256_H -#define crypto_auth_hmacsha256_H - -#include <stddef.h> -#include "crypto_hash_sha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_bytes (void); - -#define crypto_auth_hmacsha256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha256_state -{ - crypto_hash_sha256_state ictx; - crypto_hash_sha256_state octx; -} crypto_auth_hmacsha256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_init (crypto_auth_hmacsha256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_update (crypto_auth_hmacsha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_final (crypto_auth_hmacsha256_state *state, - unsigned char *out) __attribute__ ((nonnull)); - - -SODIUM_EXPORT -void crypto_auth_hmacsha256_keygen (unsigned char - k[crypto_auth_hmacsha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha512.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha512.h @@ -1,72 +0,0 @@ -#ifndef crypto_auth_hmacsha512_H -#define crypto_auth_hmacsha512_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_bytes (void); - -#define crypto_auth_hmacsha512_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha512_state -{ - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_init (crypto_auth_hmacsha512_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_update (crypto_auth_hmacsha512_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_final (crypto_auth_hmacsha512_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512_keygen (unsigned char - k[crypto_auth_hmacsha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha512256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_auth_hmacsha512256.h @@ -1,69 +0,0 @@ -#ifndef crypto_auth_hmacsha512256_H -#define crypto_auth_hmacsha512256_H - -#include <stddef.h> -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_bytes (void); - -#define crypto_auth_hmacsha512256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ( - (nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef crypto_auth_hmacsha512_state crypto_auth_hmacsha512256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_init (crypto_auth_hmacsha512256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_update (crypto_auth_hmacsha512256_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_final (crypto_auth_hmacsha512256_state *state, - unsigned char *out) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512256_keygen (unsigned char - k[crypto_auth_hmacsha512256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box.h @@ -1,188 +0,0 @@ -#ifndef crypto_box_H -#define crypto_box_H - -/* - * THREAD SAFETY: crypto_box_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_box_curve25519xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES -SODIUM_EXPORT -size_t crypto_box_seedbytes (void); - -#define crypto_box_PUBLICKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_box_publickeybytes (void); - -#define crypto_box_SECRETKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_box_secretkeybytes (void); - -#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_box_noncebytes (void); - -#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_box_macbytes (void); - -#define crypto_box_MESSAGEBYTES_MAX \ - crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_box_messagebytes_max (void); - -#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_box_primitive (void); - -SODIUM_EXPORT -int crypto_box_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long mlen, - const unsigned char *n, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_open_detached (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -#define crypto_box_BEFORENMBYTES \ - crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES -SODIUM_EXPORT -size_t crypto_box_beforenmbytes (void); - -SODIUM_EXPORT -int crypto_box_beforenm (unsigned char *k, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, - 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_easy_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_detached_afternm (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long - mlen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_detached_afternm (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_seal (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_seal_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_box_zerobytes (void); - -#define crypto_box_BOXZEROBYTES \ - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_box_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_box (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box_curve25519xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box_curve25519xchacha20poly1305.h @@ -1,186 +0,0 @@ -#ifndef crypto_box_curve25519xchacha20poly1305_H -#define crypto_box_curve25519xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xchacha20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_seedbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_noncebytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_macbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached (unsigned char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *pk, - const unsigned - char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long - mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy_afternm (unsigned char *m, - const unsigned - char *c, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached_afternm (unsigned char *c, - unsigned char *mac, - const unsigned - char *m, - unsigned long long - mlen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached_afternm (unsigned - char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long - long clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_curve25519xchacha20poly1305_SEALBYTES \ - (crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES \ - + crypto_box_curve25519xchacha20poly1305_MACBYTES) - -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_box_curve25519xsalsa20poly1305.h @@ -1,114 +0,0 @@ -#ifndef crypto_box_curve25519xsalsa20poly1305_H -#define crypto_box_curve25519xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xsalsa20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_seedbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_noncebytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES \ - (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES \ - + crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_zerobytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open_afternm (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_ed25519.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_ed25519.h @@ -1,104 +0,0 @@ -#ifndef crypto_core_ed25519_H -#define crypto_core_ed25519_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ed25519_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_bytes (void); - -#define crypto_core_ed25519_UNIFORMBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_uniformbytes (void); - -#define crypto_core_ed25519_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_hashbytes (void); - -#define crypto_core_ed25519_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_scalarbytes (void); - -#define crypto_core_ed25519_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ed25519_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_add (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_sub (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_uniform (unsigned char *p, const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_hash (unsigned char *p, const unsigned char *h) -__attribute__ ((nonnull)) __attribute__ ((deprecated)); - -SODIUM_EXPORT -void crypto_core_ed25519_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_scalar_invert (unsigned char *recip, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_negate (unsigned char *neg, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_complement (unsigned char *comp, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_add (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_sub (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_mul (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ed25519_scalar_reduce (unsigned char *r, const unsigned - char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_hchacha20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_hchacha20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hchacha20_H -#define crypto_core_hchacha20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hchacha20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_outputbytes (void); - -#define crypto_core_hchacha20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_inputbytes (void); - -#define crypto_core_hchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_keybytes (void); - -#define crypto_core_hchacha20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hchacha20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_hsalsa20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_hsalsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hsalsa20_H -#define crypto_core_hsalsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hsalsa20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_outputbytes (void); - -#define crypto_core_hsalsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_inputbytes (void); - -#define crypto_core_hsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_keybytes (void); - -#define crypto_core_hsalsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hsalsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_ristretto255.h @@ -1,102 +0,0 @@ -#ifndef crypto_core_ristretto255_H -#define crypto_core_ristretto255_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ristretto255_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_bytes (void); - -#define crypto_core_ristretto255_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_hashbytes (void); - -#define crypto_core_ristretto255_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_scalarbytes (void); - -#define crypto_core_ristretto255_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ristretto255_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_add (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_sub (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_from_hash (unsigned char *p, - const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_scalar_invert (unsigned char *recip, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_negate (unsigned char *neg, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_complement (unsigned char *comp, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_add (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_sub (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_mul (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_reduce (unsigned char *r, - const unsigned char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa20_H -#define crypto_core_salsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa20_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa20_outputbytes (void); - -#define crypto_core_salsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_inputbytes (void); - -#define crypto_core_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa20_keybytes (void); - -#define crypto_core_salsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa2012.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa2012_H -#define crypto_core_salsa2012_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa2012_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa2012_outputbytes (void); - -#define crypto_core_salsa2012_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_inputbytes (void); - -#define crypto_core_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa2012_keybytes (void); - -#define crypto_core_salsa2012_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa2012 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa208.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_core_salsa208.h @@ -1,40 +0,0 @@ -#ifndef crypto_core_salsa208_H -#define crypto_core_salsa208_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa208_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa208_outputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_inputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_constbytes (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_core_salsa208 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_generichash.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_generichash.h @@ -1,84 +0,0 @@ -#ifndef crypto_generichash_H -#define crypto_generichash_H - -#include <stddef.h> - -#include "crypto_generichash_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_bytes_min (void); - -#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_bytes_max (void); - -#define crypto_generichash_BYTES crypto_generichash_blake2b_BYTES -SODIUM_EXPORT -size_t crypto_generichash_bytes (void); - -#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_keybytes_min (void); - -#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_keybytes_max (void); - -#define crypto_generichash_KEYBYTES crypto_generichash_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_generichash_keybytes (void); - -#define crypto_generichash_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_generichash_primitive (void); - -/* - * Important when writing bindings for other programming languages: - * the state address should be 64-bytes aligned. - */ -typedef crypto_generichash_blake2b_state crypto_generichash_state; - -SODIUM_EXPORT -size_t crypto_generichash_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash (unsigned char *out, size_t outlen, - const unsigned char *in, unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_init (crypto_generichash_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_update (crypto_generichash_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_final (crypto_generichash_state *state, - unsigned char *out, const size_t outlen) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_generichash_keygen (unsigned char k[crypto_generichash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_generichash_blake2b.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_generichash_blake2b.h @@ -1,128 +0,0 @@ -#ifndef crypto_generichash_blake2b_H -#define crypto_generichash_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#ifdef __IBMC__ -# pragma pack(1) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack(1) -#else -# pragma pack(push, 1) -#endif - -typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state -{ - unsigned char opaque[384]; -} crypto_generichash_blake2b_state; - -#ifdef __IBMC__ -# pragma pack(pop) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack() -#else -# pragma pack(pop) -#endif - -#define crypto_generichash_blake2b_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_min (void); - -#define crypto_generichash_blake2b_BYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_max (void); - -#define crypto_generichash_blake2b_BYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes (void); - -#define crypto_generichash_blake2b_KEYBYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_min (void); - -#define crypto_generichash_blake2b_KEYBYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_max (void); - -#define crypto_generichash_blake2b_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes (void); - -#define crypto_generichash_blake2b_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_saltbytes (void); - -#define crypto_generichash_blake2b_PERSONALBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_personalbytes (void); - -SODIUM_EXPORT -size_t crypto_generichash_blake2b_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash_blake2b (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_salt_personal (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, - size_t keylen, - const unsigned char *salt, - const unsigned char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init (crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init_salt_personal ( - crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const - size_t outlen, - const unsigned char *salt, - const unsigned - char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_update (crypto_generichash_blake2b_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_final (crypto_generichash_blake2b_state *state, - unsigned char *out, - const size_t outlen) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_generichash_blake2b_keygen (unsigned char - k[crypto_generichash_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash.h @@ -1,40 +0,0 @@ -#ifndef crypto_hash_H -#define crypto_hash_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> - -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_hash_BYTES crypto_hash_sha512_BYTES -SODIUM_EXPORT -size_t crypto_hash_bytes (void); - -SODIUM_EXPORT -int crypto_hash (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -#define crypto_hash_PRIMITIVE "sha512" -SODIUM_EXPORT -const char *crypto_hash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash_sha256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash_sha256.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha256_H -#define crypto_hash_sha256_H - -/* - * WARNING: Unless you absolutely need to use SHA256 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA256, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha256_state -{ - uint32_t state[8]; - uint64_t count; - uint8_t buf[64]; -} crypto_hash_sha256_state; - -SODIUM_EXPORT -size_t crypto_hash_sha256_statebytes (void); - -#define crypto_hash_sha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_hash_sha256_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha256 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_init (crypto_hash_sha256_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha256_update (crypto_hash_sha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_final (crypto_hash_sha256_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash_sha512.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_hash_sha512.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha512_H -#define crypto_hash_sha512_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha512_state -{ - uint64_t state[8]; - uint64_t count[2]; - uint8_t buf[128]; -} crypto_hash_sha512_state; - -SODIUM_EXPORT -size_t crypto_hash_sha512_statebytes (void); - -#define crypto_hash_sha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_hash_sha512_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_init (crypto_hash_sha512_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha512_update (crypto_hash_sha512_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_final (crypto_hash_sha512_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf.h @@ -1,53 +0,0 @@ -#ifndef crypto_kdf_H -#define crypto_kdf_H - -#include <stddef.h> -#include <stdint.h> - -#include "crypto_kdf_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_BYTES_MIN crypto_kdf_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_kdf_bytes_min (void); - -#define crypto_kdf_BYTES_MAX crypto_kdf_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_kdf_bytes_max (void); - -#define crypto_kdf_CONTEXTBYTES crypto_kdf_blake2b_CONTEXTBYTES -SODIUM_EXPORT -size_t crypto_kdf_contextbytes (void); - -#define crypto_kdf_KEYBYTES crypto_kdf_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_kdf_keybytes (void); - -#define crypto_kdf_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_kdf_primitive (void) -__attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int crypto_kdf_derive_from_key (unsigned char *subkey, size_t subkey_len, - uint64_t subkey_id, - const char ctx[crypto_kdf_CONTEXTBYTES], - const unsigned char key[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_kdf_keygen (unsigned char k[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_blake2b.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_blake2b.h @@ -1,47 +0,0 @@ -#ifndef crypto_kdf_blake2b_H -#define crypto_kdf_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_blake2b_BYTES_MIN 16 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_min (void); - -#define crypto_kdf_blake2b_BYTES_MAX 64 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_max (void); - -#define crypto_kdf_blake2b_CONTEXTBYTES 8 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_contextbytes (void); - -#define crypto_kdf_blake2b_KEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_keybytes (void); - -SODIUM_EXPORT -int crypto_kdf_blake2b_derive_from_key (unsigned char *subkey, size_t - subkey_len, - uint64_t subkey_id, - const char - ctx[crypto_kdf_blake2b_CONTEXTBYTES], - const unsigned char - key[crypto_kdf_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_hkdf_sha256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_hkdf_sha256.h @@ -1,81 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha256_H -#define crypto_kdf_hkdf_sha256_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha256_KEYBYTES crypto_auth_hmacsha256_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_keybytes (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_min (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MAX (0xff * crypto_auth_hmacsha256_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(4))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha256_keygen (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha256_state -{ - crypto_auth_hmacsha256_state st; -} crypto_kdf_hkdf_sha256_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_init (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_update (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_final (crypto_kdf_hkdf_sha256_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_hkdf_sha512.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kdf_hkdf_sha512.h @@ -1,82 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha512_H -#define crypto_kdf_hkdf_sha512_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha512_KEYBYTES crypto_auth_hmacsha512_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_keybytes (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_min (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MAX (0xff * crypto_auth_hmacsha512_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha512_keygen (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha512_state -{ - crypto_auth_hmacsha512_state st; -} crypto_kdf_hkdf_sha512_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_init (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_update (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_final (crypto_kdf_hkdf_sha512_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kx.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_kx.h @@ -1,72 +0,0 @@ -#ifndef crypto_kx_H -#define crypto_kx_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kx_PUBLICKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_publickeybytes (void); - -#define crypto_kx_SECRETKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_secretkeybytes (void); - -#define crypto_kx_SEEDBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_seedbytes (void); - -#define crypto_kx_SESSIONKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_sessionkeybytes (void); - -#define crypto_kx_PRIMITIVE "x25519blake2b" -SODIUM_EXPORT -const char *crypto_kx_primitive (void); - -SODIUM_EXPORT -int crypto_kx_seed_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES], - const unsigned char seed[crypto_kx_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_client_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - client_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -SODIUM_EXPORT -int crypto_kx_server_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - server_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_onetimeauth.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_onetimeauth.h @@ -1,66 +0,0 @@ -#ifndef crypto_onetimeauth_H -#define crypto_onetimeauth_H - -#include <stddef.h> - -#include "crypto_onetimeauth_poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_statebytes (void); - -#define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_bytes (void); - -#define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_keybytes (void); - -#define crypto_onetimeauth_PRIMITIVE "poly1305" -SODIUM_EXPORT -const char *crypto_onetimeauth_primitive (void); - -SODIUM_EXPORT -int crypto_onetimeauth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_init (crypto_onetimeauth_state *state, - const unsigned char *key) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_update (crypto_onetimeauth_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_final (crypto_onetimeauth_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_keygen (unsigned char k[crypto_onetimeauth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_onetimeauth_poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_onetimeauth_poly1305.h @@ -1,75 +0,0 @@ -#ifndef crypto_onetimeauth_poly1305_H -#define crypto_onetimeauth_poly1305_H - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state -{ - unsigned char opaque[256]; -} crypto_onetimeauth_poly1305_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_statebytes (void); - -#define crypto_onetimeauth_poly1305_BYTES 16U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_bytes (void); - -#define crypto_onetimeauth_poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_keybytes (void); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_init (crypto_onetimeauth_poly1305_state *state, - const unsigned char *key) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_update ( - crypto_onetimeauth_poly1305_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_final (crypto_onetimeauth_poly1305_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_poly1305_keygen (unsigned char - k[crypto_onetimeauth_poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash.h @@ -1,154 +0,0 @@ -#ifndef crypto_pwhash_H -#define crypto_pwhash_H - -#include <stddef.h> - -#include "crypto_pwhash_argon2i.h" -#include "crypto_pwhash_argon2id.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2i13 (void); - -#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2id13 (void); - -#define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_default (void); - -#define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN -SODIUM_EXPORT -size_t crypto_pwhash_bytes_min (void); - -#define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX -SODIUM_EXPORT -size_t crypto_pwhash_bytes_max (void); - -#define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN -SODIUM_EXPORT -size_t crypto_pwhash_passwd_min (void); - -#define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX -SODIUM_EXPORT -size_t crypto_pwhash_passwd_max (void); - -#define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES -SODIUM_EXPORT -size_t crypto_pwhash_saltbytes (void); - -#define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES -SODIUM_EXPORT -size_t crypto_pwhash_strbytes (void); - -#define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX -SODIUM_EXPORT -const char *crypto_pwhash_strprefix (void); - -#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_min (void); - -#define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_max (void); - -#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_min (void); - -#define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_max (void); - -#define crypto_pwhash_OPSLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_interactive (void); - -#define crypto_pwhash_MEMLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_interactive (void); - -#define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_moderate (void); - -#define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_moderate (void); - -#define crypto_pwhash_OPSLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_sensitive (void); - -#define crypto_pwhash_MEMLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_sensitive (void); - -/* - * With this function, do not forget to store all parameters, including the - * algorithm identifier in order to produce deterministic output. - * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, - * may change. - */ -SODIUM_EXPORT -int crypto_pwhash (unsigned char *const out, unsigned long long outlen, - const char *const passwd, unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* - * The output string already includes all the required parameters, including - * the algorithm identifier. The string is all that has to be stored in - * order to verify a password. - */ -SODIUM_EXPORT -int crypto_pwhash_str (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_alg (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long - passwdlen, - unsigned long long opslimit, size_t memlimit, int - alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#define crypto_pwhash_PRIMITIVE "argon2id,argon2i" -SODIUM_EXPORT -const char *crypto_pwhash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_argon2i.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_argon2i.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2i_H -#define crypto_pwhash_argon2i_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2i_ALG_ARGON2I13 1 -SODIUM_EXPORT -int crypto_pwhash_argon2i_alg_argon2i13 (void); - -#define crypto_pwhash_argon2i_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_min (void); - -#define crypto_pwhash_argon2i_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_max (void); - -#define crypto_pwhash_argon2i_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_min (void); - -#define crypto_pwhash_argon2i_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_max (void); - -#define crypto_pwhash_argon2i_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_saltbytes (void); - -#define crypto_pwhash_argon2i_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_strbytes (void); - -#define crypto_pwhash_argon2i_STRPREFIX "$argon2i$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2i_strprefix (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MIN 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_min (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_max (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_min (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_max (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_interactive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_interactive (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MODERATE 6U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_moderate (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MODERATE 134217728U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_moderate (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE 8U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_sensitive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE 536870912U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2i (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str (char out[crypto_pwhash_argon2i_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_argon2id.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_argon2id.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2id_H -#define crypto_pwhash_argon2id_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 -SODIUM_EXPORT -int crypto_pwhash_argon2id_alg_argon2id13 (void); - -#define crypto_pwhash_argon2id_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_min (void); - -#define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_max (void); - -#define crypto_pwhash_argon2id_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_min (void); - -#define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_max (void); - -#define crypto_pwhash_argon2id_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_saltbytes (void); - -#define crypto_pwhash_argon2id_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_strbytes (void); - -#define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2id_strprefix (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_min (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_max (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_min (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_max (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_interactive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_interactive (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_moderate (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_moderate (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_sensitive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2id (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str (char out[crypto_pwhash_argon2id_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_scryptsalsa208sha256_H -#define crypto_pwhash_scryptsalsa208sha256_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 0x1fffffffe0ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_SALTBYTES 32U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_saltbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_strbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRPREFIX "$7$" -SODIUM_EXPORT -const char *crypto_pwhash_scryptsalsa208sha256_strprefix (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN 32768U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX \ - SODIUM_MIN (SIZE_MAX, 68719476736ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE 524288U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256 (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str (char - out[ - crypto_pwhash_scryptsalsa208sha256_STRBYTES - ], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_ll (const uint8_t *passwd, size_t - passwdlen, - const uint8_t *salt, size_t saltlen, - uint64_t N, uint32_t r, uint32_t p, - uint8_t *buf, size_t buflen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash (const char *str, - unsigned long long - opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult.h @@ -1,46 +0,0 @@ -#ifndef crypto_scalarmult_H -#define crypto_scalarmult_H - -#include <stddef.h> - -#include "crypto_scalarmult_curve25519.h" -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES -SODIUM_EXPORT -size_t crypto_scalarmult_bytes (void); - -#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES -SODIUM_EXPORT -size_t crypto_scalarmult_scalarbytes (void); - -#define crypto_scalarmult_PRIMITIVE "curve25519" -SODIUM_EXPORT -const char *crypto_scalarmult_primitive (void); - -SODIUM_EXPORT -int crypto_scalarmult_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_curve25519.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_curve25519.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_curve25519_H -#define crypto_scalarmult_curve25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_curve25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_bytes (void); - -#define crypto_scalarmult_curve25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_curve25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_curve25519_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_ed25519.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_ed25519.h @@ -1,51 +0,0 @@ -#ifndef crypto_scalarmult_ed25519_H -#define crypto_scalarmult_ed25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ed25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_bytes (void); - -#define crypto_scalarmult_ed25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ed25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_noclamp (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base_noclamp (unsigned char *q, const unsigned - char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_scalarmult_ristretto255.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_ristretto255_H -#define crypto_scalarmult_ristretto255_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ristretto255_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_bytes (void); - -#define crypto_scalarmult_ristretto255_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ristretto255 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ristretto255_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox.h @@ -1,97 +0,0 @@ -#ifndef crypto_secretbox_H -#define crypto_secretbox_H - -#include <stddef.h> - -#include "crypto_secretbox_xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretbox_keybytes (void); - -#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_secretbox_noncebytes (void); - -#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_secretbox_macbytes (void); - -#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_secretbox_primitive (void); - -#define crypto_secretbox_MESSAGEBYTES_MAX \ - crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_secretbox_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -SODIUM_EXPORT -void crypto_secretbox_keygen (unsigned char k[crypto_secretbox_KEYBYTES]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_zerobytes (void); - -#define crypto_secretbox_BOXZEROBYTES \ - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_secretbox (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox_xchacha20poly1305.h @@ -1,71 +0,0 @@ -#ifndef crypto_secretbox_xchacha20poly1305_H -#define crypto_secretbox_xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xchacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_keybytes (void); - -#define crypto_secretbox_xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_noncebytes (void); - -#define crypto_secretbox_xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_macbytes (void); - -#define crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -1,73 +0,0 @@ -#ifndef crypto_secretbox_xsalsa20poly1305_H -#define crypto_secretbox_xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_keybytes (void); - -#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_noncebytes (void); - -#define crypto_secretbox_xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -void crypto_secretbox_xsalsa20poly1305_keygen (unsigned char - k[ - crypto_secretbox_xsalsa20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes (void); - -#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES \ - (crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES \ - + crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_zerobytes (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretstream_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -1,117 +0,0 @@ -#ifndef crypto_secretstream_xchacha20poly1305_H -#define crypto_secretstream_xchacha20poly1305_H - -#include <stddef.h> - -#include "crypto_aead_xchacha20poly1305.h" -#include "crypto_stream_chacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretstream_xchacha20poly1305_ABYTES \ - (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_abytes (void); - -#define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_headerbytes (void); - -#define crypto_secretstream_xchacha20poly1305_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_keybytes (void); - -#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ - (64ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_messagebytes_max (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_message (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_push (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ - (crypto_secretstream_xchacha20poly1305_TAG_PUSH \ - | crypto_secretstream_xchacha20poly1305_TAG_REKEY) -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_final (void); - -typedef struct crypto_secretstream_xchacha20poly1305_state -{ - unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; - unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; - unsigned char _pad[8]; -} crypto_secretstream_xchacha20poly1305_state; - -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_statebytes (void); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_keygen - (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_push - (crypto_secretstream_xchacha20poly1305_state * state, - unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_push ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *c, unsigned long - long *clen_p, - const unsigned char *m, unsigned - long long mlen, - const unsigned char *ad, - unsigned long long adlen, unsigned char tag) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char - header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char - k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *m, unsigned long - long *mlen_p, unsigned char *tag_p, - const unsigned char *c, unsigned - long long clen, - const unsigned char *ad, - unsigned long long adlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey ( - crypto_secretstream_xchacha20poly1305_state *state); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_shorthash.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_shorthash.h @@ -1,41 +0,0 @@ -#ifndef crypto_shorthash_H -#define crypto_shorthash_H - -#include <stddef.h> - -#include "crypto_shorthash_siphash24.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES -SODIUM_EXPORT -size_t crypto_shorthash_bytes (void); - -#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES -SODIUM_EXPORT -size_t crypto_shorthash_keybytes (void); - -#define crypto_shorthash_PRIMITIVE "siphash24" -SODIUM_EXPORT -const char *crypto_shorthash_primitive (void); - -SODIUM_EXPORT -int crypto_shorthash (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_shorthash_keygen (unsigned char k[crypto_shorthash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_shorthash_siphash24.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_shorthash_siphash24.h @@ -1,53 +0,0 @@ -#ifndef crypto_shorthash_siphash24_H -#define crypto_shorthash_siphash24_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- 64-bit output -- */ - -#define crypto_shorthash_siphash24_BYTES 8U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_bytes (void); - -#define crypto_shorthash_siphash24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphash24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#ifndef SODIUM_LIBRARY_MINIMAL -/* -- 128-bit output -- */ - -#define crypto_shorthash_siphashx24_BYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_bytes (void); - -#define crypto_shorthash_siphashx24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphashx24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign.h @@ -1,109 +0,0 @@ -#ifndef crypto_sign_H -#define crypto_sign_H - -/* - * THREAD SAFETY: crypto_sign_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions, including crypto_sign_seed_keypair() are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_sign_ed25519.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_sign_ed25519ph_state crypto_sign_state; - -SODIUM_EXPORT -size_t crypto_sign_statebytes (void); - -#define crypto_sign_BYTES crypto_sign_ed25519_BYTES -SODIUM_EXPORT -size_t crypto_sign_bytes (void); - -#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES -SODIUM_EXPORT -size_t crypto_sign_seedbytes (void); - -#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_publickeybytes (void); - -#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_secretkeybytes (void); - -#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_sign_messagebytes_max (void); - -#define crypto_sign_PRIMITIVE "ed25519" -SODIUM_EXPORT -const char *crypto_sign_primitive (void); - -SODIUM_EXPORT -int crypto_sign_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_detached (unsigned char *sig, unsigned long long *siglen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, - 5))); - -SODIUM_EXPORT -int crypto_sign_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_init (crypto_sign_state *state); - -SODIUM_EXPORT -int crypto_sign_update (crypto_sign_state *state, - const unsigned char *m, unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_final_create (crypto_sign_state *state, unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_final_verify (crypto_sign_state *state, const unsigned - char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign_ed25519.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign_ed25519.h @@ -1,126 +0,0 @@ -#ifndef crypto_sign_ed25519_H -#define crypto_sign_ed25519_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_sign_ed25519ph_state -{ - crypto_hash_sha512_state hs; -} crypto_sign_ed25519ph_state; - -SODIUM_EXPORT -size_t crypto_sign_ed25519ph_statebytes (void); - -#define crypto_sign_ed25519_BYTES 64U -SODIUM_EXPORT -size_t crypto_sign_ed25519_bytes (void); - -#define crypto_sign_ed25519_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_seedbytes (void); - -#define crypto_sign_ed25519_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_publickeybytes (void); - -#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) -SODIUM_EXPORT -size_t crypto_sign_ed25519_secretkeybytes (void); - -#define crypto_sign_ed25519_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - crypto_sign_ed25519_BYTES) -SODIUM_EXPORT -size_t crypto_sign_ed25519_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_sign_ed25519 (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_detached (unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_pk_to_curve25519 (unsigned char *curve25519_pk, - const unsigned char *ed25519_pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_curve25519 (unsigned char *curve25519_sk, - const unsigned char *ed25519_sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_seed (unsigned char *seed, - const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_pk (unsigned char *pk, const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_init (crypto_sign_ed25519ph_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_update (crypto_sign_ed25519ph_state *state, - const unsigned char *m, - unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_create (crypto_sign_ed25519ph_state *state, - unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_verify (crypto_sign_ed25519ph_state *state, - const unsigned char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign_edwards25519sha512batch.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -1,57 +0,0 @@ -#ifndef crypto_sign_edwards25519sha512batch_H -#define crypto_sign_edwards25519sha512batch_H - -/* - * WARNING: This construction was a prototype, which should not be used - * any more in new projects. - * - * crypto_sign_edwards25519sha512batch is provided for applications - * initially built with NaCl, but as recommended by the author of this - * construction, new applications should use ed25519 instead. - * - * In Sodium, you should use the high-level crypto_sign_*() functions instead. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_sign_edwards25519sha512batch_BYTES 64U -#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) -#define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - \ - crypto_sign_edwards25519sha512batch_BYTES) - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch (unsigned char *sm, - unsigned long long *smlen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_open (unsigned char *m, - unsigned long long *mlen_p, - const unsigned char *sm, - unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream.h @@ -1,59 +0,0 @@ -#ifndef crypto_stream_H -#define crypto_stream_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> - -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES -SODIUM_EXPORT -size_t crypto_stream_keybytes (void); - -#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES -SODIUM_EXPORT -size_t crypto_stream_noncebytes (void); - -#define crypto_stream_MESSAGEBYTES_MAX crypto_stream_xsalsa20_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_stream_messagebytes_max (void); - -#define crypto_stream_PRIMITIVE "xsalsa20" -SODIUM_EXPORT -const char *crypto_stream_primitive (void); - -SODIUM_EXPORT -int crypto_stream (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_keygen (unsigned char k[crypto_stream_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_chacha20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_chacha20.h @@ -1,113 +0,0 @@ -#ifndef crypto_stream_chacha20_H -#define crypto_stream_chacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_chacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_keybytes (void); - -#define crypto_stream_chacha20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_chacha20_noncebytes (void); - -#define crypto_stream_chacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_chacha20_messagebytes_max (void); - -/* ChaCha20 with a 64-bit nonce and a 64-bit counter, as originally designed */ - -SODIUM_EXPORT -int crypto_stream_chacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_keygen (unsigned char - k[crypto_stream_chacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -/* ChaCha20 with a 96-bit nonce and a 32-bit counter (IETF) */ - -#define crypto_stream_chacha20_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_keybytes (void); - -#define crypto_stream_chacha20_ietf_NONCEBYTES 12U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_noncebytes (void); - -#define crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 64ULL * (1ULL << 32)) -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor_ic (unsigned char *c, const unsigned - char *m, - unsigned long long mlen, - const unsigned char *n, uint32_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_ietf_keygen (unsigned char - k[crypto_stream_chacha20_ietf_KEYBYTES]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_stream_chacha20_IETF_KEYBYTES \ - crypto_stream_chacha20_ietf_KEYBYTES -#define crypto_stream_chacha20_IETF_NONCEBYTES \ - crypto_stream_chacha20_ietf_NONCEBYTES -#define crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX \ - crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_salsa20_H -#define crypto_stream_salsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa20_keybytes (void); - -#define crypto_stream_salsa20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa20_noncebytes (void); - -#define crypto_stream_salsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa20_keygen (unsigned char - k[crypto_stream_salsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa2012.h @@ -1,55 +0,0 @@ -#ifndef crypto_stream_salsa2012_H -#define crypto_stream_salsa2012_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_keybytes (void); - -#define crypto_stream_salsa2012_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_noncebytes (void); - -#define crypto_stream_salsa2012_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa2012_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa2012 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa2012_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa2012_keygen (unsigned char - k[crypto_stream_salsa2012_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa208.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_salsa208.h @@ -1,57 +0,0 @@ -#ifndef crypto_stream_salsa208_H -#define crypto_stream_salsa208_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa208_noncebytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa208_messagebytes_max (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_stream_salsa208 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa208_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa208_keygen (unsigned char - k[crypto_stream_salsa208_KEYBYTES]) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_xchacha20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_xchacha20.h @@ -1,63 +0,0 @@ -#ifndef crypto_stream_xchacha20_H -#define crypto_stream_xchacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_keybytes (void); - -#define crypto_stream_xchacha20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_noncebytes (void); - -#define crypto_stream_xchacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xchacha20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xchacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xchacha20_keygen (unsigned char - k[crypto_stream_xchacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_xsalsa20.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_stream_xsalsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_xsalsa20_H -#define crypto_stream_xsalsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_keybytes (void); - -#define crypto_stream_xsalsa20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_noncebytes (void); - -#define crypto_stream_xsalsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xsalsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xsalsa20_keygen (unsigned char - k[crypto_stream_xsalsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_16.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_16.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_16_H -#define crypto_verify_16_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_16_BYTES 16U -SODIUM_EXPORT -size_t crypto_verify_16_bytes (void); - -SODIUM_EXPORT -int crypto_verify_16 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_32.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_32.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_32_H -#define crypto_verify_32_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_32_BYTES 32U -SODIUM_EXPORT -size_t crypto_verify_32_bytes (void); - -SODIUM_EXPORT -int crypto_verify_32 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_64.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/crypto_verify_64.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_64_H -#define crypto_verify_64_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_64_BYTES 64U -SODIUM_EXPORT -size_t crypto_verify_64_bytes (void); - -SODIUM_EXPORT -int crypto_verify_64 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/export.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/export.h @@ -1,56 +0,0 @@ -#ifndef sodium_export_H -#define sodium_export_H - -#include <stddef.h> -#include <stdint.h> -#include <limits.h> - -#if ! defined(__clang__) && ! defined(__GNUC__) -# ifdef __attribute__ -# undef __attribute__ -# endif -# define __attribute__(a) -#endif - -#ifdef SODIUM_STATIC -# define SODIUM_EXPORT -# define SODIUM_EXPORT_WEAK -#else -# if defined(_MSC_VER) -# ifdef SODIUM_DLL_EXPORT -# define SODIUM_EXPORT __declspec(dllexport) -# else -# define SODIUM_EXPORT __declspec(dllimport) -# endif -# else -# if defined(__SUNPRO_C) -# ifndef __GNU_C__ -# define SODIUM_EXPORT __attribute__ (visibility (__global)) -# else -# define SODIUM_EXPORT __attribute__ __global -# endif -# elif defined(_MSG_VER) -# define SODIUM_EXPORT extern __declspec(dllexport) -# else -# define SODIUM_EXPORT __attribute__ ((visibility ("default"))) -# endif -# endif -# if defined(__ELF__) && ! defined(SODIUM_DISABLE_WEAK_FUNCTIONS) -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak)) -# else -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT -# endif -#endif - -#ifndef CRYPTO_ALIGN -# if defined(__INTEL_COMPILER) || defined(_MSC_VER) -# define CRYPTO_ALIGN(x) __declspec(align (x)) -# else -# define CRYPTO_ALIGN(x) __attribute__ ((aligned (x))) -# endif -#endif - -#define SODIUM_MIN(A, B) ((A) < (B) ? (A) : (B)) -#define SODIUM_SIZE_MAX SODIUM_MIN (UINT64_MAX, SIZE_MAX) - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes.h @@ -1,73 +0,0 @@ -#ifndef randombytes_H -#define randombytes_H - -#include <stddef.h> -#include <stdint.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct randombytes_implementation -{ - const char *(*implementation_name)(void); /* required */ - uint32_t (*random)(void); /* required */ - void (*stir)(void); /* optional */ - uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ - void (*buf)(void *const buf, const size_t size); /* required */ - int (*close)(void); /* optional */ -} randombytes_implementation; - -#define randombytes_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, 0xffffffffUL) - -#define randombytes_SEEDBYTES 32U -SODIUM_EXPORT -size_t randombytes_seedbytes (void); - -SODIUM_EXPORT -void randombytes_buf (void *const buf, const size_t size) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void randombytes_buf_deterministic (void *const buf, const size_t size, - const unsigned char - seed[randombytes_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -uint32_t randombytes_random (void); - -SODIUM_EXPORT -uint32_t randombytes_uniform (const uint32_t upper_bound); - -SODIUM_EXPORT -void randombytes_stir (void); - -SODIUM_EXPORT -int randombytes_close (void); - -SODIUM_EXPORT -int randombytes_set_implementation (const randombytes_implementation *impl) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -const char *randombytes_implementation_name (void); - -/* -- NaCl compatibility interface -- */ - -SODIUM_EXPORT -void randombytes (unsigned char *const buf, const unsigned long long buf_len) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes_internal_random.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes_internal_random.h @@ -1,21 +0,0 @@ -#ifndef randombytes_internal_random_H -#define randombytes_internal_random_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_internal_implementation; - -/* Backwards compatibility with libsodium < 1.0.18 */ -#define randombytes_salsa20_implementation randombytes_internal_implementation - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes_sysrandom.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/randombytes_sysrandom.h @@ -1,18 +0,0 @@ -#ifndef randombytes_sysrandom_H -#define randombytes_sysrandom_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_sysrandom_implementation; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/runtime.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/runtime.h @@ -1,54 +0,0 @@ -#ifndef sodium_runtime_H -#define sodium_runtime_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_neon (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_armcrypto (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_ssse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse41 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx512f (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_pclmul (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_aesni (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_rdrand (void); - -/* ------------------------------------------------------------------------- */ - -int _sodium_runtime_get_cpu_features (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/utils.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/utils.h @@ -1,182 +0,0 @@ -#ifndef sodium_utils_H -#define sodium_utils_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef SODIUM_C99 -# if defined(__cplusplus) || ! defined(__STDC_VERSION__) || __STDC_VERSION__ < \ - 199901L -# define SODIUM_C99(X) -# else -# define SODIUM_C99(X) X -# endif -#endif - -SODIUM_EXPORT -void sodium_memzero (void *const pnt, const size_t len); - -SODIUM_EXPORT -void sodium_stackzero (const size_t len); - -/* - * WARNING: sodium_memcmp() must be used to verify if two secret keys - * are equal, in constant time. - * It returns 0 if the keys are equal, and -1 if they differ. - * This function is not designed for lexicographical comparisons. - */ -SODIUM_EXPORT -int sodium_memcmp (const void *const b1_, const void *const b2_, size_t len) -__attribute__ ((warn_unused_result)); - -/* - * sodium_compare() returns -1 if b1_ < b2_, 1 if b1_ > b2_ and 0 if b1_ == b2_ - * It is suitable for lexicographical comparisons, or to compare nonces - * and counters stored in little-endian format. - * However, it is slower than sodium_memcmp(). - */ -SODIUM_EXPORT -int sodium_compare (const unsigned char *b1_, const unsigned char *b2_, - size_t len) __attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int sodium_is_zero (const unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_increment (unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_add (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -void sodium_sub (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -char *sodium_bin2hex (char *const hex, const size_t hex_maxlen, - const unsigned char *const bin, const size_t bin_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_hex2bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const hex, const size_t hex_len, - const char *const ignore, size_t *const bin_len, - const char **const hex_end) -__attribute__ ((nonnull(1))); - -#define sodium_base64_VARIANT_ORIGINAL 1 -#define sodium_base64_VARIANT_ORIGINAL_NO_PADDING 3 -#define sodium_base64_VARIANT_URLSAFE 5 -#define sodium_base64_VARIANT_URLSAFE_NO_PADDING 7 - -/* - * Computes the required length to encode BIN_LEN bytes as a base64 string - * using the given variant. The computed length includes a trailing \0. - */ -#define sodium_base64_ENCODED_LEN(BIN_LEN, VARIANT) \ - (((BIN_LEN) / 3U) * 4U \ - + ((((BIN_LEN) -((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) -((BIN_LEN) / 3U) \ - * 3U) >> 1)) & 1U) \ - * (4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) -((BIN_LEN) \ - / 3U) \ - * 3U)))) + 1U) - -SODIUM_EXPORT -size_t sodium_base64_encoded_len (const size_t bin_len, const int variant); - -SODIUM_EXPORT -char *sodium_bin2base64 (char *const b64, const size_t b64_maxlen, - const unsigned char *const bin, const size_t bin_len, - const int variant) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_base642bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const b64, const size_t b64_len, - const char *const ignore, size_t *const bin_len, - const char **const b64_end, const int variant) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_mlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_munlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -/* WARNING: sodium_malloc() and sodium_allocarray() are not general-purpose - * allocation functions. - * - * They return a pointer to a region filled with 0xd0 bytes, immediately - * followed by a guard page. - * As a result, accessing a single byte after the requested allocation size - * will intentionally trigger a segmentation fault. - * - * A canary and an additional guard page placed before the beginning of the - * region may also kill the process if a buffer underflow is detected. - * - * The memory layout is: - * [unprotected region size (read only)][guard page (no access)][unprotected pages (read/write)][guard page (no access)] - * With the layout of the unprotected pages being: - * [optional padding][16-bytes canary][user region] - * - * However: - * - These functions are significantly slower than standard functions - * - Each allocation requires 3 or 4 additional pages - * - The returned address will not be aligned if the allocation size is not - * a multiple of the required alignment. For this reason, these functions - * are designed to store data, such as secret keys and messages. - * - * sodium_malloc() can be used to allocate any libsodium data structure. - * - * The crypto_generichash_state structure is packed and its length is - * either 357 or 361 bytes. For this reason, when using sodium_malloc() to - * allocate a crypto_generichash_state structure, padding must be added in - * order to ensure proper alignment. crypto_generichash_statebytes() - * returns the rounded up structure size, and should be preferred to sizeof(): - * state = sodium_malloc(crypto_generichash_statebytes()); - */ - -SODIUM_EXPORT -void *sodium_malloc (const size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void *sodium_allocarray (size_t count, size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void sodium_free (void *ptr); - -SODIUM_EXPORT -int sodium_mprotect_noaccess (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readonly (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readwrite (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_pad (size_t *padded_buflen_p, unsigned char *buf, - size_t unpadded_buflen, size_t blocksize, size_t max_buflen) -__attribute__ ((nonnull(2))); - -SODIUM_EXPORT -int sodium_unpad (size_t *unpadded_buflen_p, const unsigned char *buf, - size_t padded_buflen, size_t blocksize) -__attribute__ ((nonnull(2))); - -/* -------- */ - -int _sodium_alloc_init (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/version.h b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/include/sodium/version.h @@ -1,32 +0,0 @@ -#ifndef sodium_version_H -#define sodium_version_H - -#include "export.h" - -#define SODIUM_VERSION_STRING "1.0.20" - -#define SODIUM_LIBRARY_VERSION_MAJOR 26 -#define SODIUM_LIBRARY_VERSION_MINOR 2 -#define SODIUM_LIBRARY_MINIMAL 1 - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -const char *sodium_version_string (void); - -SODIUM_EXPORT -int sodium_library_version_major (void); - -SODIUM_EXPORT -int sodium_library_version_minor (void); - -SODIUM_EXPORT -int sodium_library_minimal (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.a b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.a Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.la b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.la @@ -1,41 +0,0 @@ -# libsodium.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.7 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='libsodium.so' - -# Names of this library. -library_names='libsodium.so' - -# The name of the static archive. -old_library='libsodium.a' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags=' -pthread' - -# Libraries that this one depends upon. -dependency_libs='' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for libsodium. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=no - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/home/enigma/Downloads/libsodium-stable/libsodium-android-armv7-a/lib' diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.so b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/libsodium.so Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/pkgconfig/libsodium.pc b/verification-app/app/src/main/cpp/libsodium/armeabi-v7a/lib/pkgconfig/libsodium.pc @@ -1,12 +0,0 @@ -prefix=/home/enigma/Downloads/libsodium-stable/libsodium-android-armv7-a -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: libsodium -Version: 1.0.20 -Description: A modern and easy-to-use crypto library - -Libs: -L${libdir} -lsodium -Libs.private: -pthread -Cflags: -I${includedir} diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium.h b/verification-app/app/src/main/cpp/libsodium/include/sodium.h @@ -1,74 +0,0 @@ -#ifndef sodium_H -#define sodium_H - -#include "sodium/version.h" - -#include "sodium/core.h" -#include "sodium/crypto_aead_aegis128l.h" -#include "sodium/crypto_aead_aegis256.h" -#include "sodium/crypto_aead_aes256gcm.h" -#include "sodium/crypto_aead_chacha20poly1305.h" -#include "sodium/crypto_aead_xchacha20poly1305.h" -#include "sodium/crypto_auth.h" -#include "sodium/crypto_auth_hmacsha256.h" -#include "sodium/crypto_auth_hmacsha512.h" -#include "sodium/crypto_auth_hmacsha512256.h" -#include "sodium/crypto_box.h" -#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" -#include "sodium/crypto_core_hchacha20.h" -#include "sodium/crypto_core_hsalsa20.h" -#include "sodium/crypto_core_salsa20.h" -#include "sodium/crypto_core_salsa2012.h" -#include "sodium/crypto_core_salsa208.h" -#include "sodium/crypto_generichash.h" -#include "sodium/crypto_generichash_blake2b.h" -#include "sodium/crypto_hash.h" -#include "sodium/crypto_hash_sha256.h" -#include "sodium/crypto_hash_sha512.h" -#include "sodium/crypto_kdf.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kdf_blake2b.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kx.h" -#include "sodium/crypto_onetimeauth.h" -#include "sodium/crypto_onetimeauth_poly1305.h" -#include "sodium/crypto_pwhash.h" -#include "sodium/crypto_pwhash_argon2i.h" -#include "sodium/crypto_scalarmult.h" -#include "sodium/crypto_scalarmult_curve25519.h" -#include "sodium/crypto_secretbox.h" -#include "sodium/crypto_secretbox_xsalsa20poly1305.h" -#include "sodium/crypto_secretstream_xchacha20poly1305.h" -#include "sodium/crypto_shorthash.h" -#include "sodium/crypto_shorthash_siphash24.h" -#include "sodium/crypto_sign.h" -#include "sodium/crypto_sign_ed25519.h" -#include "sodium/crypto_stream.h" -#include "sodium/crypto_stream_chacha20.h" -#include "sodium/crypto_stream_salsa20.h" -#include "sodium/crypto_stream_xsalsa20.h" -#include "sodium/crypto_verify_16.h" -#include "sodium/crypto_verify_32.h" -#include "sodium/crypto_verify_64.h" -#include "sodium/randombytes.h" -#include "sodium/randombytes_internal_random.h" -#include "sodium/randombytes_sysrandom.h" -#include "sodium/runtime.h" -#include "sodium/utils.h" - -#ifndef SODIUM_LIBRARY_MINIMAL -#include "sodium/crypto_box_curve25519xchacha20poly1305.h" -#include "sodium/crypto_core_ed25519.h" -#include "sodium/crypto_core_ristretto255.h" -#include "sodium/crypto_pwhash_scryptsalsa208sha256.h" -#include "sodium/crypto_scalarmult_ed25519.h" -#include "sodium/crypto_scalarmult_ristretto255.h" -#include "sodium/crypto_secretbox_xchacha20poly1305.h" -#include "sodium/crypto_stream_salsa2012.h" -#include "sodium/crypto_stream_salsa208.h" -#include "sodium/crypto_stream_xchacha20.h" -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/core.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/core.h @@ -1,27 +0,0 @@ -#ifndef sodium_core_H -#define sodium_core_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -int sodium_init (void) -__attribute__ ((warn_unused_result)); - -/* ---- */ - -SODIUM_EXPORT -int sodium_set_misuse_handler (void (*handler)(void)); - -SODIUM_EXPORT -void sodium_misuse (void) -__attribute__ ((noreturn)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aegis128l.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aegis128l.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis128l_H -#define crypto_aead_aegis128l_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis128l_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_keybytes (void); - -#define crypto_aead_aegis128l_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_nsecbytes (void); - -#define crypto_aead_aegis128l_NPUBBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_npubbytes (void); - -#define crypto_aead_aegis128l_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_abytes (void); - -#define crypto_aead_aegis128l_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis128l_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis128l_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis128l_keygen (unsigned char - k[crypto_aead_aegis128l_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aegis256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aegis256.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis256_H -#define crypto_aead_aegis256_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_keybytes (void); - -#define crypto_aead_aegis256_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis256_nsecbytes (void); - -#define crypto_aead_aegis256_NPUBBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_npubbytes (void); - -#define crypto_aead_aegis256_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_abytes (void); - -#define crypto_aead_aegis256_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis256_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis256_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis256_keygen (unsigned char - k[crypto_aead_aegis256_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aes256gcm.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_aes256gcm.h @@ -1,188 +0,0 @@ -#ifndef crypto_aead_aes256gcm_H -#define crypto_aead_aes256gcm_H - -/* - * WARNING: Despite being the most popular AEAD construction due to its - * use in TLS, safely using AES-GCM in a different context is tricky. - * - * No more than ~ 350 GB of input data should be encrypted with a given key. - * This is for ~ 16 KB messages -- Actual figures vary according to - * message sizes. - * - * In addition, nonces are short and repeated nonces would totally destroy - * the security of this scheme. - * - * Nonces should thus come from atomic counters, which can be difficult to - * set up in a distributed environment. - * - * Unless you absolutely need AES-GCM, use crypto_aead_xchacha20poly1305_ietf_*() - * instead. It doesn't have any of these limitations. - * Or, if you don't need to authenticate additional data, just stick to - * crypto_secretbox(). - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -SODIUM_EXPORT -int crypto_aead_aes256gcm_is_available (void); - -#define crypto_aead_aes256gcm_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_keybytes (void); - -#define crypto_aead_aes256gcm_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_nsecbytes (void); - -#define crypto_aead_aes256gcm_NPUBBYTES 12U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_npubbytes (void); - -#define crypto_aead_aes256gcm_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_abytes (void); - -#define crypto_aead_aes256gcm_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aes256gcm_ABYTES, \ - (16ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_messagebytes_max (void); - -typedef struct CRYPTO_ALIGN(16) crypto_aead_aes256gcm_state_ -{ - unsigned char opaque[512]; -} crypto_aead_aes256gcm_state; - -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_statebytes (void); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_aead_aes256gcm_beforenm (crypto_aead_aes256gcm_state *ctx_, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_afternm (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_afternm (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached_afternm (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached_afternm (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aes256gcm_keygen (unsigned char - k[crypto_aead_aes256gcm_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_chacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_chacha20poly1305.h @@ -1,198 +0,0 @@ -#ifndef crypto_aead_chacha20poly1305_H -#define crypto_aead_chacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U - -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_abytes (void); - -#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \ - (64ULL * ((1ULL << 32) - 1ULL))) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned - char *mac, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_keybytes (void); - -#define crypto_aead_chacha20poly1305_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_NPUBBYTES 8U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_abytes (void); - -#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_chacha20poly1305_IETF_KEYBYTES \ - crypto_aead_chacha20poly1305_ietf_KEYBYTES -#define crypto_aead_chacha20poly1305_IETF_NSECBYTES \ - crypto_aead_chacha20poly1305_ietf_NSECBYTES -#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_chacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_chacha20poly1305_IETF_ABYTES \ - crypto_aead_chacha20poly1305_ietf_ABYTES -#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_aead_xchacha20poly1305.h @@ -1,119 +0,0 @@ -#ifndef crypto_aead_xchacha20poly1305_H -#define crypto_aead_xchacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_aead_xchacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NPUBBYTES 24U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_abytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long - mlen, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long - clen, - const unsigned - char *mac, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_xchacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_xchacha20poly1305_IETF_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -#define crypto_aead_xchacha20poly1305_IETF_NSECBYTES \ - crypto_aead_xchacha20poly1305_ietf_NSECBYTES -#define crypto_aead_xchacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_xchacha20poly1305_IETF_ABYTES \ - crypto_aead_xchacha20poly1305_ietf_ABYTES -#define crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth.h @@ -1,46 +0,0 @@ -#ifndef crypto_auth_H -#define crypto_auth_H - -#include <stddef.h> - -#include "crypto_auth_hmacsha512256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES -SODIUM_EXPORT -size_t crypto_auth_bytes (void); - -#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES -SODIUM_EXPORT -size_t crypto_auth_keybytes (void); - -#define crypto_auth_PRIMITIVE "hmacsha512256" -SODIUM_EXPORT -const char *crypto_auth_primitive (void); - -SODIUM_EXPORT -int crypto_auth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_auth_keygen (unsigned char k[crypto_auth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha256.h @@ -1,73 +0,0 @@ -#ifndef crypto_auth_hmacsha256_H -#define crypto_auth_hmacsha256_H - -#include <stddef.h> -#include "crypto_hash_sha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_bytes (void); - -#define crypto_auth_hmacsha256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha256_state -{ - crypto_hash_sha256_state ictx; - crypto_hash_sha256_state octx; -} crypto_auth_hmacsha256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_init (crypto_auth_hmacsha256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_update (crypto_auth_hmacsha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_final (crypto_auth_hmacsha256_state *state, - unsigned char *out) __attribute__ ((nonnull)); - - -SODIUM_EXPORT -void crypto_auth_hmacsha256_keygen (unsigned char - k[crypto_auth_hmacsha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha512.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha512.h @@ -1,72 +0,0 @@ -#ifndef crypto_auth_hmacsha512_H -#define crypto_auth_hmacsha512_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_bytes (void); - -#define crypto_auth_hmacsha512_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha512_state -{ - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_init (crypto_auth_hmacsha512_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_update (crypto_auth_hmacsha512_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_final (crypto_auth_hmacsha512_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512_keygen (unsigned char - k[crypto_auth_hmacsha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha512256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_auth_hmacsha512256.h @@ -1,69 +0,0 @@ -#ifndef crypto_auth_hmacsha512256_H -#define crypto_auth_hmacsha512256_H - -#include <stddef.h> -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_bytes (void); - -#define crypto_auth_hmacsha512256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ( - (nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef crypto_auth_hmacsha512_state crypto_auth_hmacsha512256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_init (crypto_auth_hmacsha512256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_update (crypto_auth_hmacsha512256_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_final (crypto_auth_hmacsha512256_state *state, - unsigned char *out) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512256_keygen (unsigned char - k[crypto_auth_hmacsha512256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box.h @@ -1,188 +0,0 @@ -#ifndef crypto_box_H -#define crypto_box_H - -/* - * THREAD SAFETY: crypto_box_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_box_curve25519xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES -SODIUM_EXPORT -size_t crypto_box_seedbytes (void); - -#define crypto_box_PUBLICKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_box_publickeybytes (void); - -#define crypto_box_SECRETKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_box_secretkeybytes (void); - -#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_box_noncebytes (void); - -#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_box_macbytes (void); - -#define crypto_box_MESSAGEBYTES_MAX \ - crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_box_messagebytes_max (void); - -#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_box_primitive (void); - -SODIUM_EXPORT -int crypto_box_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long mlen, - const unsigned char *n, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_open_detached (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -#define crypto_box_BEFORENMBYTES \ - crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES -SODIUM_EXPORT -size_t crypto_box_beforenmbytes (void); - -SODIUM_EXPORT -int crypto_box_beforenm (unsigned char *k, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, - 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_easy_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_detached_afternm (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long - mlen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_detached_afternm (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_seal (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_seal_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_box_zerobytes (void); - -#define crypto_box_BOXZEROBYTES \ - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_box_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_box (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box_curve25519xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box_curve25519xchacha20poly1305.h @@ -1,186 +0,0 @@ -#ifndef crypto_box_curve25519xchacha20poly1305_H -#define crypto_box_curve25519xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xchacha20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_seedbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_noncebytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_macbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached (unsigned char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *pk, - const unsigned - char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long - mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy_afternm (unsigned char *m, - const unsigned - char *c, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached_afternm (unsigned char *c, - unsigned char *mac, - const unsigned - char *m, - unsigned long long - mlen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached_afternm (unsigned - char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long - long clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_curve25519xchacha20poly1305_SEALBYTES \ - (crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES \ - + crypto_box_curve25519xchacha20poly1305_MACBYTES) - -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h @@ -1,114 +0,0 @@ -#ifndef crypto_box_curve25519xsalsa20poly1305_H -#define crypto_box_curve25519xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xsalsa20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_seedbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_noncebytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES \ - (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES \ - + crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_zerobytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open_afternm (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_ed25519.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_ed25519.h @@ -1,104 +0,0 @@ -#ifndef crypto_core_ed25519_H -#define crypto_core_ed25519_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ed25519_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_bytes (void); - -#define crypto_core_ed25519_UNIFORMBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_uniformbytes (void); - -#define crypto_core_ed25519_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_hashbytes (void); - -#define crypto_core_ed25519_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_scalarbytes (void); - -#define crypto_core_ed25519_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ed25519_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_add (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_sub (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_uniform (unsigned char *p, const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_hash (unsigned char *p, const unsigned char *h) -__attribute__ ((nonnull)) __attribute__ ((deprecated)); - -SODIUM_EXPORT -void crypto_core_ed25519_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_scalar_invert (unsigned char *recip, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_negate (unsigned char *neg, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_complement (unsigned char *comp, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_add (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_sub (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_mul (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ed25519_scalar_reduce (unsigned char *r, const unsigned - char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_hchacha20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_hchacha20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hchacha20_H -#define crypto_core_hchacha20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hchacha20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_outputbytes (void); - -#define crypto_core_hchacha20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_inputbytes (void); - -#define crypto_core_hchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_keybytes (void); - -#define crypto_core_hchacha20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hchacha20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_hsalsa20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_hsalsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hsalsa20_H -#define crypto_core_hsalsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hsalsa20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_outputbytes (void); - -#define crypto_core_hsalsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_inputbytes (void); - -#define crypto_core_hsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_keybytes (void); - -#define crypto_core_hsalsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hsalsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_ristretto255.h @@ -1,102 +0,0 @@ -#ifndef crypto_core_ristretto255_H -#define crypto_core_ristretto255_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ristretto255_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_bytes (void); - -#define crypto_core_ristretto255_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_hashbytes (void); - -#define crypto_core_ristretto255_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_scalarbytes (void); - -#define crypto_core_ristretto255_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ristretto255_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_add (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_sub (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_from_hash (unsigned char *p, - const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_scalar_invert (unsigned char *recip, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_negate (unsigned char *neg, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_complement (unsigned char *comp, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_add (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_sub (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_mul (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_reduce (unsigned char *r, - const unsigned char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa20_H -#define crypto_core_salsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa20_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa20_outputbytes (void); - -#define crypto_core_salsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_inputbytes (void); - -#define crypto_core_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa20_keybytes (void); - -#define crypto_core_salsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa2012.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa2012_H -#define crypto_core_salsa2012_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa2012_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa2012_outputbytes (void); - -#define crypto_core_salsa2012_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_inputbytes (void); - -#define crypto_core_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa2012_keybytes (void); - -#define crypto_core_salsa2012_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa2012 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa208.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_core_salsa208.h @@ -1,40 +0,0 @@ -#ifndef crypto_core_salsa208_H -#define crypto_core_salsa208_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa208_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa208_outputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_inputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_constbytes (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_core_salsa208 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_generichash.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_generichash.h @@ -1,84 +0,0 @@ -#ifndef crypto_generichash_H -#define crypto_generichash_H - -#include <stddef.h> - -#include "crypto_generichash_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_bytes_min (void); - -#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_bytes_max (void); - -#define crypto_generichash_BYTES crypto_generichash_blake2b_BYTES -SODIUM_EXPORT -size_t crypto_generichash_bytes (void); - -#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_keybytes_min (void); - -#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_keybytes_max (void); - -#define crypto_generichash_KEYBYTES crypto_generichash_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_generichash_keybytes (void); - -#define crypto_generichash_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_generichash_primitive (void); - -/* - * Important when writing bindings for other programming languages: - * the state address should be 64-bytes aligned. - */ -typedef crypto_generichash_blake2b_state crypto_generichash_state; - -SODIUM_EXPORT -size_t crypto_generichash_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash (unsigned char *out, size_t outlen, - const unsigned char *in, unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_init (crypto_generichash_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_update (crypto_generichash_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_final (crypto_generichash_state *state, - unsigned char *out, const size_t outlen) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_generichash_keygen (unsigned char k[crypto_generichash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_generichash_blake2b.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_generichash_blake2b.h @@ -1,128 +0,0 @@ -#ifndef crypto_generichash_blake2b_H -#define crypto_generichash_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#ifdef __IBMC__ -# pragma pack(1) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack(1) -#else -# pragma pack(push, 1) -#endif - -typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state -{ - unsigned char opaque[384]; -} crypto_generichash_blake2b_state; - -#ifdef __IBMC__ -# pragma pack(pop) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack() -#else -# pragma pack(pop) -#endif - -#define crypto_generichash_blake2b_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_min (void); - -#define crypto_generichash_blake2b_BYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_max (void); - -#define crypto_generichash_blake2b_BYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes (void); - -#define crypto_generichash_blake2b_KEYBYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_min (void); - -#define crypto_generichash_blake2b_KEYBYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_max (void); - -#define crypto_generichash_blake2b_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes (void); - -#define crypto_generichash_blake2b_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_saltbytes (void); - -#define crypto_generichash_blake2b_PERSONALBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_personalbytes (void); - -SODIUM_EXPORT -size_t crypto_generichash_blake2b_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash_blake2b (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_salt_personal (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, - size_t keylen, - const unsigned char *salt, - const unsigned char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init (crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init_salt_personal ( - crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const - size_t outlen, - const unsigned char *salt, - const unsigned - char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_update (crypto_generichash_blake2b_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_final (crypto_generichash_blake2b_state *state, - unsigned char *out, - const size_t outlen) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_generichash_blake2b_keygen (unsigned char - k[crypto_generichash_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash.h @@ -1,40 +0,0 @@ -#ifndef crypto_hash_H -#define crypto_hash_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> - -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_hash_BYTES crypto_hash_sha512_BYTES -SODIUM_EXPORT -size_t crypto_hash_bytes (void); - -SODIUM_EXPORT -int crypto_hash (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -#define crypto_hash_PRIMITIVE "sha512" -SODIUM_EXPORT -const char *crypto_hash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash_sha256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash_sha256.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha256_H -#define crypto_hash_sha256_H - -/* - * WARNING: Unless you absolutely need to use SHA256 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA256, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha256_state -{ - uint32_t state[8]; - uint64_t count; - uint8_t buf[64]; -} crypto_hash_sha256_state; - -SODIUM_EXPORT -size_t crypto_hash_sha256_statebytes (void); - -#define crypto_hash_sha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_hash_sha256_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha256 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_init (crypto_hash_sha256_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha256_update (crypto_hash_sha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_final (crypto_hash_sha256_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash_sha512.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_hash_sha512.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha512_H -#define crypto_hash_sha512_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha512_state -{ - uint64_t state[8]; - uint64_t count[2]; - uint8_t buf[128]; -} crypto_hash_sha512_state; - -SODIUM_EXPORT -size_t crypto_hash_sha512_statebytes (void); - -#define crypto_hash_sha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_hash_sha512_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_init (crypto_hash_sha512_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha512_update (crypto_hash_sha512_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_final (crypto_hash_sha512_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf.h @@ -1,53 +0,0 @@ -#ifndef crypto_kdf_H -#define crypto_kdf_H - -#include <stddef.h> -#include <stdint.h> - -#include "crypto_kdf_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_BYTES_MIN crypto_kdf_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_kdf_bytes_min (void); - -#define crypto_kdf_BYTES_MAX crypto_kdf_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_kdf_bytes_max (void); - -#define crypto_kdf_CONTEXTBYTES crypto_kdf_blake2b_CONTEXTBYTES -SODIUM_EXPORT -size_t crypto_kdf_contextbytes (void); - -#define crypto_kdf_KEYBYTES crypto_kdf_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_kdf_keybytes (void); - -#define crypto_kdf_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_kdf_primitive (void) -__attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int crypto_kdf_derive_from_key (unsigned char *subkey, size_t subkey_len, - uint64_t subkey_id, - const char ctx[crypto_kdf_CONTEXTBYTES], - const unsigned char key[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_kdf_keygen (unsigned char k[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_blake2b.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_blake2b.h @@ -1,47 +0,0 @@ -#ifndef crypto_kdf_blake2b_H -#define crypto_kdf_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_blake2b_BYTES_MIN 16 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_min (void); - -#define crypto_kdf_blake2b_BYTES_MAX 64 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_max (void); - -#define crypto_kdf_blake2b_CONTEXTBYTES 8 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_contextbytes (void); - -#define crypto_kdf_blake2b_KEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_keybytes (void); - -SODIUM_EXPORT -int crypto_kdf_blake2b_derive_from_key (unsigned char *subkey, size_t - subkey_len, - uint64_t subkey_id, - const char - ctx[crypto_kdf_blake2b_CONTEXTBYTES], - const unsigned char - key[crypto_kdf_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_hkdf_sha256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_hkdf_sha256.h @@ -1,81 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha256_H -#define crypto_kdf_hkdf_sha256_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha256_KEYBYTES crypto_auth_hmacsha256_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_keybytes (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_min (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MAX (0xff * crypto_auth_hmacsha256_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(4))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha256_keygen (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha256_state -{ - crypto_auth_hmacsha256_state st; -} crypto_kdf_hkdf_sha256_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_init (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_update (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_final (crypto_kdf_hkdf_sha256_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_hkdf_sha512.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kdf_hkdf_sha512.h @@ -1,82 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha512_H -#define crypto_kdf_hkdf_sha512_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha512_KEYBYTES crypto_auth_hmacsha512_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_keybytes (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_min (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MAX (0xff * crypto_auth_hmacsha512_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha512_keygen (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha512_state -{ - crypto_auth_hmacsha512_state st; -} crypto_kdf_hkdf_sha512_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_init (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_update (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_final (crypto_kdf_hkdf_sha512_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kx.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_kx.h @@ -1,72 +0,0 @@ -#ifndef crypto_kx_H -#define crypto_kx_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kx_PUBLICKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_publickeybytes (void); - -#define crypto_kx_SECRETKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_secretkeybytes (void); - -#define crypto_kx_SEEDBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_seedbytes (void); - -#define crypto_kx_SESSIONKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_sessionkeybytes (void); - -#define crypto_kx_PRIMITIVE "x25519blake2b" -SODIUM_EXPORT -const char *crypto_kx_primitive (void); - -SODIUM_EXPORT -int crypto_kx_seed_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES], - const unsigned char seed[crypto_kx_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_client_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - client_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -SODIUM_EXPORT -int crypto_kx_server_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - server_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_onetimeauth.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_onetimeauth.h @@ -1,66 +0,0 @@ -#ifndef crypto_onetimeauth_H -#define crypto_onetimeauth_H - -#include <stddef.h> - -#include "crypto_onetimeauth_poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_statebytes (void); - -#define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_bytes (void); - -#define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_keybytes (void); - -#define crypto_onetimeauth_PRIMITIVE "poly1305" -SODIUM_EXPORT -const char *crypto_onetimeauth_primitive (void); - -SODIUM_EXPORT -int crypto_onetimeauth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_init (crypto_onetimeauth_state *state, - const unsigned char *key) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_update (crypto_onetimeauth_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_final (crypto_onetimeauth_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_keygen (unsigned char k[crypto_onetimeauth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_onetimeauth_poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_onetimeauth_poly1305.h @@ -1,75 +0,0 @@ -#ifndef crypto_onetimeauth_poly1305_H -#define crypto_onetimeauth_poly1305_H - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state -{ - unsigned char opaque[256]; -} crypto_onetimeauth_poly1305_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_statebytes (void); - -#define crypto_onetimeauth_poly1305_BYTES 16U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_bytes (void); - -#define crypto_onetimeauth_poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_keybytes (void); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_init (crypto_onetimeauth_poly1305_state *state, - const unsigned char *key) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_update ( - crypto_onetimeauth_poly1305_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_final (crypto_onetimeauth_poly1305_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_poly1305_keygen (unsigned char - k[crypto_onetimeauth_poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash.h @@ -1,154 +0,0 @@ -#ifndef crypto_pwhash_H -#define crypto_pwhash_H - -#include <stddef.h> - -#include "crypto_pwhash_argon2i.h" -#include "crypto_pwhash_argon2id.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2i13 (void); - -#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2id13 (void); - -#define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_default (void); - -#define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN -SODIUM_EXPORT -size_t crypto_pwhash_bytes_min (void); - -#define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX -SODIUM_EXPORT -size_t crypto_pwhash_bytes_max (void); - -#define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN -SODIUM_EXPORT -size_t crypto_pwhash_passwd_min (void); - -#define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX -SODIUM_EXPORT -size_t crypto_pwhash_passwd_max (void); - -#define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES -SODIUM_EXPORT -size_t crypto_pwhash_saltbytes (void); - -#define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES -SODIUM_EXPORT -size_t crypto_pwhash_strbytes (void); - -#define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX -SODIUM_EXPORT -const char *crypto_pwhash_strprefix (void); - -#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_min (void); - -#define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_max (void); - -#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_min (void); - -#define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_max (void); - -#define crypto_pwhash_OPSLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_interactive (void); - -#define crypto_pwhash_MEMLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_interactive (void); - -#define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_moderate (void); - -#define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_moderate (void); - -#define crypto_pwhash_OPSLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_sensitive (void); - -#define crypto_pwhash_MEMLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_sensitive (void); - -/* - * With this function, do not forget to store all parameters, including the - * algorithm identifier in order to produce deterministic output. - * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, - * may change. - */ -SODIUM_EXPORT -int crypto_pwhash (unsigned char *const out, unsigned long long outlen, - const char *const passwd, unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* - * The output string already includes all the required parameters, including - * the algorithm identifier. The string is all that has to be stored in - * order to verify a password. - */ -SODIUM_EXPORT -int crypto_pwhash_str (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_alg (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long - passwdlen, - unsigned long long opslimit, size_t memlimit, int - alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#define crypto_pwhash_PRIMITIVE "argon2id,argon2i" -SODIUM_EXPORT -const char *crypto_pwhash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_argon2i.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_argon2i.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2i_H -#define crypto_pwhash_argon2i_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2i_ALG_ARGON2I13 1 -SODIUM_EXPORT -int crypto_pwhash_argon2i_alg_argon2i13 (void); - -#define crypto_pwhash_argon2i_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_min (void); - -#define crypto_pwhash_argon2i_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_max (void); - -#define crypto_pwhash_argon2i_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_min (void); - -#define crypto_pwhash_argon2i_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_max (void); - -#define crypto_pwhash_argon2i_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_saltbytes (void); - -#define crypto_pwhash_argon2i_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_strbytes (void); - -#define crypto_pwhash_argon2i_STRPREFIX "$argon2i$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2i_strprefix (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MIN 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_min (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_max (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_min (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_max (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_interactive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_interactive (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MODERATE 6U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_moderate (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MODERATE 134217728U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_moderate (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE 8U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_sensitive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE 536870912U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2i (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str (char out[crypto_pwhash_argon2i_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_argon2id.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_argon2id.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2id_H -#define crypto_pwhash_argon2id_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 -SODIUM_EXPORT -int crypto_pwhash_argon2id_alg_argon2id13 (void); - -#define crypto_pwhash_argon2id_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_min (void); - -#define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_max (void); - -#define crypto_pwhash_argon2id_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_min (void); - -#define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_max (void); - -#define crypto_pwhash_argon2id_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_saltbytes (void); - -#define crypto_pwhash_argon2id_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_strbytes (void); - -#define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2id_strprefix (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_min (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_max (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_min (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_max (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_interactive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_interactive (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_moderate (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_moderate (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_sensitive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2id (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str (char out[crypto_pwhash_argon2id_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_scryptsalsa208sha256_H -#define crypto_pwhash_scryptsalsa208sha256_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 0x1fffffffe0ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_SALTBYTES 32U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_saltbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_strbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRPREFIX "$7$" -SODIUM_EXPORT -const char *crypto_pwhash_scryptsalsa208sha256_strprefix (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN 32768U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX \ - SODIUM_MIN (SIZE_MAX, 68719476736ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE 524288U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256 (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str (char - out[ - crypto_pwhash_scryptsalsa208sha256_STRBYTES - ], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_ll (const uint8_t *passwd, size_t - passwdlen, - const uint8_t *salt, size_t saltlen, - uint64_t N, uint32_t r, uint32_t p, - uint8_t *buf, size_t buflen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash (const char *str, - unsigned long long - opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult.h @@ -1,46 +0,0 @@ -#ifndef crypto_scalarmult_H -#define crypto_scalarmult_H - -#include <stddef.h> - -#include "crypto_scalarmult_curve25519.h" -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES -SODIUM_EXPORT -size_t crypto_scalarmult_bytes (void); - -#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES -SODIUM_EXPORT -size_t crypto_scalarmult_scalarbytes (void); - -#define crypto_scalarmult_PRIMITIVE "curve25519" -SODIUM_EXPORT -const char *crypto_scalarmult_primitive (void); - -SODIUM_EXPORT -int crypto_scalarmult_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_curve25519.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_curve25519.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_curve25519_H -#define crypto_scalarmult_curve25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_curve25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_bytes (void); - -#define crypto_scalarmult_curve25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_curve25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_curve25519_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_ed25519.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_ed25519.h @@ -1,51 +0,0 @@ -#ifndef crypto_scalarmult_ed25519_H -#define crypto_scalarmult_ed25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ed25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_bytes (void); - -#define crypto_scalarmult_ed25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ed25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_noclamp (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base_noclamp (unsigned char *q, const unsigned - char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_scalarmult_ristretto255.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_ristretto255_H -#define crypto_scalarmult_ristretto255_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ristretto255_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_bytes (void); - -#define crypto_scalarmult_ristretto255_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ristretto255 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ristretto255_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox.h @@ -1,97 +0,0 @@ -#ifndef crypto_secretbox_H -#define crypto_secretbox_H - -#include <stddef.h> - -#include "crypto_secretbox_xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretbox_keybytes (void); - -#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_secretbox_noncebytes (void); - -#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_secretbox_macbytes (void); - -#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_secretbox_primitive (void); - -#define crypto_secretbox_MESSAGEBYTES_MAX \ - crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_secretbox_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -SODIUM_EXPORT -void crypto_secretbox_keygen (unsigned char k[crypto_secretbox_KEYBYTES]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_zerobytes (void); - -#define crypto_secretbox_BOXZEROBYTES \ - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_secretbox (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox_xchacha20poly1305.h @@ -1,71 +0,0 @@ -#ifndef crypto_secretbox_xchacha20poly1305_H -#define crypto_secretbox_xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xchacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_keybytes (void); - -#define crypto_secretbox_xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_noncebytes (void); - -#define crypto_secretbox_xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_macbytes (void); - -#define crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -1,73 +0,0 @@ -#ifndef crypto_secretbox_xsalsa20poly1305_H -#define crypto_secretbox_xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_keybytes (void); - -#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_noncebytes (void); - -#define crypto_secretbox_xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -void crypto_secretbox_xsalsa20poly1305_keygen (unsigned char - k[ - crypto_secretbox_xsalsa20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes (void); - -#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES \ - (crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES \ - + crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_zerobytes (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -1,117 +0,0 @@ -#ifndef crypto_secretstream_xchacha20poly1305_H -#define crypto_secretstream_xchacha20poly1305_H - -#include <stddef.h> - -#include "crypto_aead_xchacha20poly1305.h" -#include "crypto_stream_chacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretstream_xchacha20poly1305_ABYTES \ - (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_abytes (void); - -#define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_headerbytes (void); - -#define crypto_secretstream_xchacha20poly1305_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_keybytes (void); - -#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ - (64ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_messagebytes_max (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_message (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_push (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ - (crypto_secretstream_xchacha20poly1305_TAG_PUSH \ - | crypto_secretstream_xchacha20poly1305_TAG_REKEY) -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_final (void); - -typedef struct crypto_secretstream_xchacha20poly1305_state -{ - unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; - unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; - unsigned char _pad[8]; -} crypto_secretstream_xchacha20poly1305_state; - -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_statebytes (void); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_keygen - (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_push - (crypto_secretstream_xchacha20poly1305_state * state, - unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_push ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *c, unsigned long - long *clen_p, - const unsigned char *m, unsigned - long long mlen, - const unsigned char *ad, - unsigned long long adlen, unsigned char tag) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char - header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char - k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *m, unsigned long - long *mlen_p, unsigned char *tag_p, - const unsigned char *c, unsigned - long long clen, - const unsigned char *ad, - unsigned long long adlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey ( - crypto_secretstream_xchacha20poly1305_state *state); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_shorthash.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_shorthash.h @@ -1,41 +0,0 @@ -#ifndef crypto_shorthash_H -#define crypto_shorthash_H - -#include <stddef.h> - -#include "crypto_shorthash_siphash24.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES -SODIUM_EXPORT -size_t crypto_shorthash_bytes (void); - -#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES -SODIUM_EXPORT -size_t crypto_shorthash_keybytes (void); - -#define crypto_shorthash_PRIMITIVE "siphash24" -SODIUM_EXPORT -const char *crypto_shorthash_primitive (void); - -SODIUM_EXPORT -int crypto_shorthash (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_shorthash_keygen (unsigned char k[crypto_shorthash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_shorthash_siphash24.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_shorthash_siphash24.h @@ -1,53 +0,0 @@ -#ifndef crypto_shorthash_siphash24_H -#define crypto_shorthash_siphash24_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- 64-bit output -- */ - -#define crypto_shorthash_siphash24_BYTES 8U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_bytes (void); - -#define crypto_shorthash_siphash24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphash24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#ifndef SODIUM_LIBRARY_MINIMAL -/* -- 128-bit output -- */ - -#define crypto_shorthash_siphashx24_BYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_bytes (void); - -#define crypto_shorthash_siphashx24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphashx24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign.h @@ -1,109 +0,0 @@ -#ifndef crypto_sign_H -#define crypto_sign_H - -/* - * THREAD SAFETY: crypto_sign_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions, including crypto_sign_seed_keypair() are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_sign_ed25519.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_sign_ed25519ph_state crypto_sign_state; - -SODIUM_EXPORT -size_t crypto_sign_statebytes (void); - -#define crypto_sign_BYTES crypto_sign_ed25519_BYTES -SODIUM_EXPORT -size_t crypto_sign_bytes (void); - -#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES -SODIUM_EXPORT -size_t crypto_sign_seedbytes (void); - -#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_publickeybytes (void); - -#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_secretkeybytes (void); - -#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_sign_messagebytes_max (void); - -#define crypto_sign_PRIMITIVE "ed25519" -SODIUM_EXPORT -const char *crypto_sign_primitive (void); - -SODIUM_EXPORT -int crypto_sign_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_detached (unsigned char *sig, unsigned long long *siglen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, - 5))); - -SODIUM_EXPORT -int crypto_sign_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_init (crypto_sign_state *state); - -SODIUM_EXPORT -int crypto_sign_update (crypto_sign_state *state, - const unsigned char *m, unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_final_create (crypto_sign_state *state, unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_final_verify (crypto_sign_state *state, const unsigned - char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign_ed25519.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign_ed25519.h @@ -1,126 +0,0 @@ -#ifndef crypto_sign_ed25519_H -#define crypto_sign_ed25519_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_sign_ed25519ph_state -{ - crypto_hash_sha512_state hs; -} crypto_sign_ed25519ph_state; - -SODIUM_EXPORT -size_t crypto_sign_ed25519ph_statebytes (void); - -#define crypto_sign_ed25519_BYTES 64U -SODIUM_EXPORT -size_t crypto_sign_ed25519_bytes (void); - -#define crypto_sign_ed25519_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_seedbytes (void); - -#define crypto_sign_ed25519_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_publickeybytes (void); - -#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) -SODIUM_EXPORT -size_t crypto_sign_ed25519_secretkeybytes (void); - -#define crypto_sign_ed25519_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - crypto_sign_ed25519_BYTES) -SODIUM_EXPORT -size_t crypto_sign_ed25519_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_sign_ed25519 (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_detached (unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_pk_to_curve25519 (unsigned char *curve25519_pk, - const unsigned char *ed25519_pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_curve25519 (unsigned char *curve25519_sk, - const unsigned char *ed25519_sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_seed (unsigned char *seed, - const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_pk (unsigned char *pk, const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_init (crypto_sign_ed25519ph_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_update (crypto_sign_ed25519ph_state *state, - const unsigned char *m, - unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_create (crypto_sign_ed25519ph_state *state, - unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_verify (crypto_sign_ed25519ph_state *state, - const unsigned char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -1,57 +0,0 @@ -#ifndef crypto_sign_edwards25519sha512batch_H -#define crypto_sign_edwards25519sha512batch_H - -/* - * WARNING: This construction was a prototype, which should not be used - * any more in new projects. - * - * crypto_sign_edwards25519sha512batch is provided for applications - * initially built with NaCl, but as recommended by the author of this - * construction, new applications should use ed25519 instead. - * - * In Sodium, you should use the high-level crypto_sign_*() functions instead. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_sign_edwards25519sha512batch_BYTES 64U -#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) -#define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - \ - crypto_sign_edwards25519sha512batch_BYTES) - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch (unsigned char *sm, - unsigned long long *smlen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_open (unsigned char *m, - unsigned long long *mlen_p, - const unsigned char *sm, - unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream.h @@ -1,59 +0,0 @@ -#ifndef crypto_stream_H -#define crypto_stream_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> - -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES -SODIUM_EXPORT -size_t crypto_stream_keybytes (void); - -#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES -SODIUM_EXPORT -size_t crypto_stream_noncebytes (void); - -#define crypto_stream_MESSAGEBYTES_MAX crypto_stream_xsalsa20_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_stream_messagebytes_max (void); - -#define crypto_stream_PRIMITIVE "xsalsa20" -SODIUM_EXPORT -const char *crypto_stream_primitive (void); - -SODIUM_EXPORT -int crypto_stream (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_keygen (unsigned char k[crypto_stream_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_chacha20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_chacha20.h @@ -1,113 +0,0 @@ -#ifndef crypto_stream_chacha20_H -#define crypto_stream_chacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_chacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_keybytes (void); - -#define crypto_stream_chacha20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_chacha20_noncebytes (void); - -#define crypto_stream_chacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_chacha20_messagebytes_max (void); - -/* ChaCha20 with a 64-bit nonce and a 64-bit counter, as originally designed */ - -SODIUM_EXPORT -int crypto_stream_chacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_keygen (unsigned char - k[crypto_stream_chacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -/* ChaCha20 with a 96-bit nonce and a 32-bit counter (IETF) */ - -#define crypto_stream_chacha20_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_keybytes (void); - -#define crypto_stream_chacha20_ietf_NONCEBYTES 12U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_noncebytes (void); - -#define crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 64ULL * (1ULL << 32)) -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor_ic (unsigned char *c, const unsigned - char *m, - unsigned long long mlen, - const unsigned char *n, uint32_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_ietf_keygen (unsigned char - k[crypto_stream_chacha20_ietf_KEYBYTES]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_stream_chacha20_IETF_KEYBYTES \ - crypto_stream_chacha20_ietf_KEYBYTES -#define crypto_stream_chacha20_IETF_NONCEBYTES \ - crypto_stream_chacha20_ietf_NONCEBYTES -#define crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX \ - crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_salsa20_H -#define crypto_stream_salsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa20_keybytes (void); - -#define crypto_stream_salsa20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa20_noncebytes (void); - -#define crypto_stream_salsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa20_keygen (unsigned char - k[crypto_stream_salsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa2012.h @@ -1,55 +0,0 @@ -#ifndef crypto_stream_salsa2012_H -#define crypto_stream_salsa2012_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_keybytes (void); - -#define crypto_stream_salsa2012_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_noncebytes (void); - -#define crypto_stream_salsa2012_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa2012_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa2012 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa2012_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa2012_keygen (unsigned char - k[crypto_stream_salsa2012_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa208.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_salsa208.h @@ -1,57 +0,0 @@ -#ifndef crypto_stream_salsa208_H -#define crypto_stream_salsa208_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa208_noncebytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa208_messagebytes_max (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_stream_salsa208 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa208_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa208_keygen (unsigned char - k[crypto_stream_salsa208_KEYBYTES]) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_xchacha20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_xchacha20.h @@ -1,63 +0,0 @@ -#ifndef crypto_stream_xchacha20_H -#define crypto_stream_xchacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_keybytes (void); - -#define crypto_stream_xchacha20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_noncebytes (void); - -#define crypto_stream_xchacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xchacha20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xchacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xchacha20_keygen (unsigned char - k[crypto_stream_xchacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_xsalsa20.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_stream_xsalsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_xsalsa20_H -#define crypto_stream_xsalsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_keybytes (void); - -#define crypto_stream_xsalsa20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_noncebytes (void); - -#define crypto_stream_xsalsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xsalsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xsalsa20_keygen (unsigned char - k[crypto_stream_xsalsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_16.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_16.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_16_H -#define crypto_verify_16_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_16_BYTES 16U -SODIUM_EXPORT -size_t crypto_verify_16_bytes (void); - -SODIUM_EXPORT -int crypto_verify_16 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_32.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_32.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_32_H -#define crypto_verify_32_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_32_BYTES 32U -SODIUM_EXPORT -size_t crypto_verify_32_bytes (void); - -SODIUM_EXPORT -int crypto_verify_32 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_64.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/crypto_verify_64.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_64_H -#define crypto_verify_64_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_64_BYTES 64U -SODIUM_EXPORT -size_t crypto_verify_64_bytes (void); - -SODIUM_EXPORT -int crypto_verify_64 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/export.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/export.h @@ -1,56 +0,0 @@ -#ifndef sodium_export_H -#define sodium_export_H - -#include <stddef.h> -#include <stdint.h> -#include <limits.h> - -#if ! defined(__clang__) && ! defined(__GNUC__) -# ifdef __attribute__ -# undef __attribute__ -# endif -# define __attribute__(a) -#endif - -#ifdef SODIUM_STATIC -# define SODIUM_EXPORT -# define SODIUM_EXPORT_WEAK -#else -# if defined(_MSC_VER) -# ifdef SODIUM_DLL_EXPORT -# define SODIUM_EXPORT __declspec(dllexport) -# else -# define SODIUM_EXPORT __declspec(dllimport) -# endif -# else -# if defined(__SUNPRO_C) -# ifndef __GNU_C__ -# define SODIUM_EXPORT __attribute__ (visibility (__global)) -# else -# define SODIUM_EXPORT __attribute__ __global -# endif -# elif defined(_MSG_VER) -# define SODIUM_EXPORT extern __declspec(dllexport) -# else -# define SODIUM_EXPORT __attribute__ ((visibility ("default"))) -# endif -# endif -# if defined(__ELF__) && ! defined(SODIUM_DISABLE_WEAK_FUNCTIONS) -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak)) -# else -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT -# endif -#endif - -#ifndef CRYPTO_ALIGN -# if defined(__INTEL_COMPILER) || defined(_MSC_VER) -# define CRYPTO_ALIGN(x) __declspec(align (x)) -# else -# define CRYPTO_ALIGN(x) __attribute__ ((aligned (x))) -# endif -#endif - -#define SODIUM_MIN(A, B) ((A) < (B) ? (A) : (B)) -#define SODIUM_SIZE_MAX SODIUM_MIN (UINT64_MAX, SIZE_MAX) - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes.h @@ -1,73 +0,0 @@ -#ifndef randombytes_H -#define randombytes_H - -#include <stddef.h> -#include <stdint.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct randombytes_implementation -{ - const char *(*implementation_name)(void); /* required */ - uint32_t (*random)(void); /* required */ - void (*stir)(void); /* optional */ - uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ - void (*buf)(void *const buf, const size_t size); /* required */ - int (*close)(void); /* optional */ -} randombytes_implementation; - -#define randombytes_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, 0xffffffffUL) - -#define randombytes_SEEDBYTES 32U -SODIUM_EXPORT -size_t randombytes_seedbytes (void); - -SODIUM_EXPORT -void randombytes_buf (void *const buf, const size_t size) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void randombytes_buf_deterministic (void *const buf, const size_t size, - const unsigned char - seed[randombytes_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -uint32_t randombytes_random (void); - -SODIUM_EXPORT -uint32_t randombytes_uniform (const uint32_t upper_bound); - -SODIUM_EXPORT -void randombytes_stir (void); - -SODIUM_EXPORT -int randombytes_close (void); - -SODIUM_EXPORT -int randombytes_set_implementation (const randombytes_implementation *impl) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -const char *randombytes_implementation_name (void); - -/* -- NaCl compatibility interface -- */ - -SODIUM_EXPORT -void randombytes (unsigned char *const buf, const unsigned long long buf_len) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes_internal_random.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes_internal_random.h @@ -1,21 +0,0 @@ -#ifndef randombytes_internal_random_H -#define randombytes_internal_random_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_internal_implementation; - -/* Backwards compatibility with libsodium < 1.0.18 */ -#define randombytes_salsa20_implementation randombytes_internal_implementation - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes_sysrandom.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/randombytes_sysrandom.h @@ -1,18 +0,0 @@ -#ifndef randombytes_sysrandom_H -#define randombytes_sysrandom_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_sysrandom_implementation; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/runtime.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/runtime.h @@ -1,54 +0,0 @@ -#ifndef sodium_runtime_H -#define sodium_runtime_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_neon (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_armcrypto (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_ssse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse41 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx512f (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_pclmul (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_aesni (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_rdrand (void); - -/* ------------------------------------------------------------------------- */ - -int _sodium_runtime_get_cpu_features (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/utils.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/utils.h @@ -1,182 +0,0 @@ -#ifndef sodium_utils_H -#define sodium_utils_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef SODIUM_C99 -# if defined(__cplusplus) || ! defined(__STDC_VERSION__) || __STDC_VERSION__ < \ - 199901L -# define SODIUM_C99(X) -# else -# define SODIUM_C99(X) X -# endif -#endif - -SODIUM_EXPORT -void sodium_memzero (void *const pnt, const size_t len); - -SODIUM_EXPORT -void sodium_stackzero (const size_t len); - -/* - * WARNING: sodium_memcmp() must be used to verify if two secret keys - * are equal, in constant time. - * It returns 0 if the keys are equal, and -1 if they differ. - * This function is not designed for lexicographical comparisons. - */ -SODIUM_EXPORT -int sodium_memcmp (const void *const b1_, const void *const b2_, size_t len) -__attribute__ ((warn_unused_result)); - -/* - * sodium_compare() returns -1 if b1_ < b2_, 1 if b1_ > b2_ and 0 if b1_ == b2_ - * It is suitable for lexicographical comparisons, or to compare nonces - * and counters stored in little-endian format. - * However, it is slower than sodium_memcmp(). - */ -SODIUM_EXPORT -int sodium_compare (const unsigned char *b1_, const unsigned char *b2_, - size_t len) __attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int sodium_is_zero (const unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_increment (unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_add (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -void sodium_sub (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -char *sodium_bin2hex (char *const hex, const size_t hex_maxlen, - const unsigned char *const bin, const size_t bin_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_hex2bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const hex, const size_t hex_len, - const char *const ignore, size_t *const bin_len, - const char **const hex_end) -__attribute__ ((nonnull(1))); - -#define sodium_base64_VARIANT_ORIGINAL 1 -#define sodium_base64_VARIANT_ORIGINAL_NO_PADDING 3 -#define sodium_base64_VARIANT_URLSAFE 5 -#define sodium_base64_VARIANT_URLSAFE_NO_PADDING 7 - -/* - * Computes the required length to encode BIN_LEN bytes as a base64 string - * using the given variant. The computed length includes a trailing \0. - */ -#define sodium_base64_ENCODED_LEN(BIN_LEN, VARIANT) \ - (((BIN_LEN) / 3U) * 4U \ - + ((((BIN_LEN) -((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) -((BIN_LEN) / 3U) \ - * 3U) >> 1)) & 1U) \ - * (4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) -((BIN_LEN) \ - / 3U) \ - * 3U)))) + 1U) - -SODIUM_EXPORT -size_t sodium_base64_encoded_len (const size_t bin_len, const int variant); - -SODIUM_EXPORT -char *sodium_bin2base64 (char *const b64, const size_t b64_maxlen, - const unsigned char *const bin, const size_t bin_len, - const int variant) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_base642bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const b64, const size_t b64_len, - const char *const ignore, size_t *const bin_len, - const char **const b64_end, const int variant) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_mlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_munlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -/* WARNING: sodium_malloc() and sodium_allocarray() are not general-purpose - * allocation functions. - * - * They return a pointer to a region filled with 0xd0 bytes, immediately - * followed by a guard page. - * As a result, accessing a single byte after the requested allocation size - * will intentionally trigger a segmentation fault. - * - * A canary and an additional guard page placed before the beginning of the - * region may also kill the process if a buffer underflow is detected. - * - * The memory layout is: - * [unprotected region size (read only)][guard page (no access)][unprotected pages (read/write)][guard page (no access)] - * With the layout of the unprotected pages being: - * [optional padding][16-bytes canary][user region] - * - * However: - * - These functions are significantly slower than standard functions - * - Each allocation requires 3 or 4 additional pages - * - The returned address will not be aligned if the allocation size is not - * a multiple of the required alignment. For this reason, these functions - * are designed to store data, such as secret keys and messages. - * - * sodium_malloc() can be used to allocate any libsodium data structure. - * - * The crypto_generichash_state structure is packed and its length is - * either 357 or 361 bytes. For this reason, when using sodium_malloc() to - * allocate a crypto_generichash_state structure, padding must be added in - * order to ensure proper alignment. crypto_generichash_statebytes() - * returns the rounded up structure size, and should be preferred to sizeof(): - * state = sodium_malloc(crypto_generichash_statebytes()); - */ - -SODIUM_EXPORT -void *sodium_malloc (const size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void *sodium_allocarray (size_t count, size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void sodium_free (void *ptr); - -SODIUM_EXPORT -int sodium_mprotect_noaccess (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readonly (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readwrite (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_pad (size_t *padded_buflen_p, unsigned char *buf, - size_t unpadded_buflen, size_t blocksize, size_t max_buflen) -__attribute__ ((nonnull(2))); - -SODIUM_EXPORT -int sodium_unpad (size_t *unpadded_buflen_p, const unsigned char *buf, - size_t padded_buflen, size_t blocksize) -__attribute__ ((nonnull(2))); - -/* -------- */ - -int _sodium_alloc_init (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/include/sodium/version.h b/verification-app/app/src/main/cpp/libsodium/include/sodium/version.h @@ -1,32 +0,0 @@ -#ifndef sodium_version_H -#define sodium_version_H - -#include "export.h" - -#define SODIUM_VERSION_STRING "1.0.20" - -#define SODIUM_LIBRARY_VERSION_MAJOR 26 -#define SODIUM_LIBRARY_VERSION_MINOR 2 -#define SODIUM_LIBRARY_MINIMAL 1 - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -const char *sodium_version_string (void); - -SODIUM_EXPORT -int sodium_library_version_major (void); - -SODIUM_EXPORT -int sodium_library_version_minor (void); - -SODIUM_EXPORT -int sodium_library_minimal (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium.h @@ -1,74 +0,0 @@ -#ifndef sodium_H -#define sodium_H - -#include "sodium/version.h" - -#include "sodium/core.h" -#include "sodium/crypto_aead_aegis128l.h" -#include "sodium/crypto_aead_aegis256.h" -#include "sodium/crypto_aead_aes256gcm.h" -#include "sodium/crypto_aead_chacha20poly1305.h" -#include "sodium/crypto_aead_xchacha20poly1305.h" -#include "sodium/crypto_auth.h" -#include "sodium/crypto_auth_hmacsha256.h" -#include "sodium/crypto_auth_hmacsha512.h" -#include "sodium/crypto_auth_hmacsha512256.h" -#include "sodium/crypto_box.h" -#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" -#include "sodium/crypto_core_hchacha20.h" -#include "sodium/crypto_core_hsalsa20.h" -#include "sodium/crypto_core_salsa20.h" -#include "sodium/crypto_core_salsa2012.h" -#include "sodium/crypto_core_salsa208.h" -#include "sodium/crypto_generichash.h" -#include "sodium/crypto_generichash_blake2b.h" -#include "sodium/crypto_hash.h" -#include "sodium/crypto_hash_sha256.h" -#include "sodium/crypto_hash_sha512.h" -#include "sodium/crypto_kdf.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kdf_blake2b.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kx.h" -#include "sodium/crypto_onetimeauth.h" -#include "sodium/crypto_onetimeauth_poly1305.h" -#include "sodium/crypto_pwhash.h" -#include "sodium/crypto_pwhash_argon2i.h" -#include "sodium/crypto_scalarmult.h" -#include "sodium/crypto_scalarmult_curve25519.h" -#include "sodium/crypto_secretbox.h" -#include "sodium/crypto_secretbox_xsalsa20poly1305.h" -#include "sodium/crypto_secretstream_xchacha20poly1305.h" -#include "sodium/crypto_shorthash.h" -#include "sodium/crypto_shorthash_siphash24.h" -#include "sodium/crypto_sign.h" -#include "sodium/crypto_sign_ed25519.h" -#include "sodium/crypto_stream.h" -#include "sodium/crypto_stream_chacha20.h" -#include "sodium/crypto_stream_salsa20.h" -#include "sodium/crypto_stream_xsalsa20.h" -#include "sodium/crypto_verify_16.h" -#include "sodium/crypto_verify_32.h" -#include "sodium/crypto_verify_64.h" -#include "sodium/randombytes.h" -#include "sodium/randombytes_internal_random.h" -#include "sodium/randombytes_sysrandom.h" -#include "sodium/runtime.h" -#include "sodium/utils.h" - -#ifndef SODIUM_LIBRARY_MINIMAL -#include "sodium/crypto_box_curve25519xchacha20poly1305.h" -#include "sodium/crypto_core_ed25519.h" -#include "sodium/crypto_core_ristretto255.h" -#include "sodium/crypto_pwhash_scryptsalsa208sha256.h" -#include "sodium/crypto_scalarmult_ed25519.h" -#include "sodium/crypto_scalarmult_ristretto255.h" -#include "sodium/crypto_secretbox_xchacha20poly1305.h" -#include "sodium/crypto_stream_salsa2012.h" -#include "sodium/crypto_stream_salsa208.h" -#include "sodium/crypto_stream_xchacha20.h" -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/core.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/core.h @@ -1,27 +0,0 @@ -#ifndef sodium_core_H -#define sodium_core_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -int sodium_init (void) -__attribute__ ((warn_unused_result)); - -/* ---- */ - -SODIUM_EXPORT -int sodium_set_misuse_handler (void (*handler)(void)); - -SODIUM_EXPORT -void sodium_misuse (void) -__attribute__ ((noreturn)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aegis128l.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aegis128l.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis128l_H -#define crypto_aead_aegis128l_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis128l_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_keybytes (void); - -#define crypto_aead_aegis128l_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_nsecbytes (void); - -#define crypto_aead_aegis128l_NPUBBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_npubbytes (void); - -#define crypto_aead_aegis128l_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_abytes (void); - -#define crypto_aead_aegis128l_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis128l_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis128l_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis128l_keygen (unsigned char - k[crypto_aead_aegis128l_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aegis256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aegis256.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis256_H -#define crypto_aead_aegis256_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_keybytes (void); - -#define crypto_aead_aegis256_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis256_nsecbytes (void); - -#define crypto_aead_aegis256_NPUBBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_npubbytes (void); - -#define crypto_aead_aegis256_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_abytes (void); - -#define crypto_aead_aegis256_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis256_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis256_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis256_keygen (unsigned char - k[crypto_aead_aegis256_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aes256gcm.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_aes256gcm.h @@ -1,188 +0,0 @@ -#ifndef crypto_aead_aes256gcm_H -#define crypto_aead_aes256gcm_H - -/* - * WARNING: Despite being the most popular AEAD construction due to its - * use in TLS, safely using AES-GCM in a different context is tricky. - * - * No more than ~ 350 GB of input data should be encrypted with a given key. - * This is for ~ 16 KB messages -- Actual figures vary according to - * message sizes. - * - * In addition, nonces are short and repeated nonces would totally destroy - * the security of this scheme. - * - * Nonces should thus come from atomic counters, which can be difficult to - * set up in a distributed environment. - * - * Unless you absolutely need AES-GCM, use crypto_aead_xchacha20poly1305_ietf_*() - * instead. It doesn't have any of these limitations. - * Or, if you don't need to authenticate additional data, just stick to - * crypto_secretbox(). - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -SODIUM_EXPORT -int crypto_aead_aes256gcm_is_available (void); - -#define crypto_aead_aes256gcm_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_keybytes (void); - -#define crypto_aead_aes256gcm_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_nsecbytes (void); - -#define crypto_aead_aes256gcm_NPUBBYTES 12U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_npubbytes (void); - -#define crypto_aead_aes256gcm_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_abytes (void); - -#define crypto_aead_aes256gcm_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aes256gcm_ABYTES, \ - (16ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_messagebytes_max (void); - -typedef struct CRYPTO_ALIGN(16) crypto_aead_aes256gcm_state_ -{ - unsigned char opaque[512]; -} crypto_aead_aes256gcm_state; - -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_statebytes (void); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_aead_aes256gcm_beforenm (crypto_aead_aes256gcm_state *ctx_, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_afternm (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_afternm (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached_afternm (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached_afternm (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aes256gcm_keygen (unsigned char - k[crypto_aead_aes256gcm_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_chacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_chacha20poly1305.h @@ -1,198 +0,0 @@ -#ifndef crypto_aead_chacha20poly1305_H -#define crypto_aead_chacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U - -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_abytes (void); - -#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \ - (64ULL * ((1ULL << 32) - 1ULL))) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned - char *mac, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_keybytes (void); - -#define crypto_aead_chacha20poly1305_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_NPUBBYTES 8U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_abytes (void); - -#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_chacha20poly1305_IETF_KEYBYTES \ - crypto_aead_chacha20poly1305_ietf_KEYBYTES -#define crypto_aead_chacha20poly1305_IETF_NSECBYTES \ - crypto_aead_chacha20poly1305_ietf_NSECBYTES -#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_chacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_chacha20poly1305_IETF_ABYTES \ - crypto_aead_chacha20poly1305_ietf_ABYTES -#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_aead_xchacha20poly1305.h @@ -1,119 +0,0 @@ -#ifndef crypto_aead_xchacha20poly1305_H -#define crypto_aead_xchacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_aead_xchacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NPUBBYTES 24U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_abytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long - mlen, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long - clen, - const unsigned - char *mac, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_xchacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_xchacha20poly1305_IETF_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -#define crypto_aead_xchacha20poly1305_IETF_NSECBYTES \ - crypto_aead_xchacha20poly1305_ietf_NSECBYTES -#define crypto_aead_xchacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_xchacha20poly1305_IETF_ABYTES \ - crypto_aead_xchacha20poly1305_ietf_ABYTES -#define crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth.h @@ -1,46 +0,0 @@ -#ifndef crypto_auth_H -#define crypto_auth_H - -#include <stddef.h> - -#include "crypto_auth_hmacsha512256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES -SODIUM_EXPORT -size_t crypto_auth_bytes (void); - -#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES -SODIUM_EXPORT -size_t crypto_auth_keybytes (void); - -#define crypto_auth_PRIMITIVE "hmacsha512256" -SODIUM_EXPORT -const char *crypto_auth_primitive (void); - -SODIUM_EXPORT -int crypto_auth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_auth_keygen (unsigned char k[crypto_auth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha256.h @@ -1,73 +0,0 @@ -#ifndef crypto_auth_hmacsha256_H -#define crypto_auth_hmacsha256_H - -#include <stddef.h> -#include "crypto_hash_sha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_bytes (void); - -#define crypto_auth_hmacsha256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha256_state -{ - crypto_hash_sha256_state ictx; - crypto_hash_sha256_state octx; -} crypto_auth_hmacsha256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_init (crypto_auth_hmacsha256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_update (crypto_auth_hmacsha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_final (crypto_auth_hmacsha256_state *state, - unsigned char *out) __attribute__ ((nonnull)); - - -SODIUM_EXPORT -void crypto_auth_hmacsha256_keygen (unsigned char - k[crypto_auth_hmacsha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha512.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha512.h @@ -1,72 +0,0 @@ -#ifndef crypto_auth_hmacsha512_H -#define crypto_auth_hmacsha512_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_bytes (void); - -#define crypto_auth_hmacsha512_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha512_state -{ - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_init (crypto_auth_hmacsha512_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_update (crypto_auth_hmacsha512_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_final (crypto_auth_hmacsha512_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512_keygen (unsigned char - k[crypto_auth_hmacsha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha512256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_auth_hmacsha512256.h @@ -1,69 +0,0 @@ -#ifndef crypto_auth_hmacsha512256_H -#define crypto_auth_hmacsha512256_H - -#include <stddef.h> -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_bytes (void); - -#define crypto_auth_hmacsha512256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ( - (nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef crypto_auth_hmacsha512_state crypto_auth_hmacsha512256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_init (crypto_auth_hmacsha512256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_update (crypto_auth_hmacsha512256_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_final (crypto_auth_hmacsha512256_state *state, - unsigned char *out) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512256_keygen (unsigned char - k[crypto_auth_hmacsha512256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box.h @@ -1,188 +0,0 @@ -#ifndef crypto_box_H -#define crypto_box_H - -/* - * THREAD SAFETY: crypto_box_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_box_curve25519xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES -SODIUM_EXPORT -size_t crypto_box_seedbytes (void); - -#define crypto_box_PUBLICKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_box_publickeybytes (void); - -#define crypto_box_SECRETKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_box_secretkeybytes (void); - -#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_box_noncebytes (void); - -#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_box_macbytes (void); - -#define crypto_box_MESSAGEBYTES_MAX \ - crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_box_messagebytes_max (void); - -#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_box_primitive (void); - -SODIUM_EXPORT -int crypto_box_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long mlen, - const unsigned char *n, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_open_detached (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -#define crypto_box_BEFORENMBYTES \ - crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES -SODIUM_EXPORT -size_t crypto_box_beforenmbytes (void); - -SODIUM_EXPORT -int crypto_box_beforenm (unsigned char *k, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, - 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_easy_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_detached_afternm (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long - mlen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_detached_afternm (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_seal (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_seal_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_box_zerobytes (void); - -#define crypto_box_BOXZEROBYTES \ - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_box_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_box (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box_curve25519xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box_curve25519xchacha20poly1305.h @@ -1,186 +0,0 @@ -#ifndef crypto_box_curve25519xchacha20poly1305_H -#define crypto_box_curve25519xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xchacha20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_seedbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_noncebytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_macbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached (unsigned char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *pk, - const unsigned - char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long - mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy_afternm (unsigned char *m, - const unsigned - char *c, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached_afternm (unsigned char *c, - unsigned char *mac, - const unsigned - char *m, - unsigned long long - mlen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached_afternm (unsigned - char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long - long clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_curve25519xchacha20poly1305_SEALBYTES \ - (crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES \ - + crypto_box_curve25519xchacha20poly1305_MACBYTES) - -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_box_curve25519xsalsa20poly1305.h @@ -1,114 +0,0 @@ -#ifndef crypto_box_curve25519xsalsa20poly1305_H -#define crypto_box_curve25519xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xsalsa20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_seedbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_noncebytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES \ - (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES \ - + crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_zerobytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open_afternm (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_ed25519.h @@ -1,104 +0,0 @@ -#ifndef crypto_core_ed25519_H -#define crypto_core_ed25519_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ed25519_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_bytes (void); - -#define crypto_core_ed25519_UNIFORMBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_uniformbytes (void); - -#define crypto_core_ed25519_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_hashbytes (void); - -#define crypto_core_ed25519_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_scalarbytes (void); - -#define crypto_core_ed25519_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ed25519_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_add (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_sub (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_uniform (unsigned char *p, const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_hash (unsigned char *p, const unsigned char *h) -__attribute__ ((nonnull)) __attribute__ ((deprecated)); - -SODIUM_EXPORT -void crypto_core_ed25519_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_scalar_invert (unsigned char *recip, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_negate (unsigned char *neg, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_complement (unsigned char *comp, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_add (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_sub (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_mul (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ed25519_scalar_reduce (unsigned char *r, const unsigned - char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_hchacha20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_hchacha20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hchacha20_H -#define crypto_core_hchacha20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hchacha20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_outputbytes (void); - -#define crypto_core_hchacha20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_inputbytes (void); - -#define crypto_core_hchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_keybytes (void); - -#define crypto_core_hchacha20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hchacha20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_hsalsa20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_hsalsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hsalsa20_H -#define crypto_core_hsalsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hsalsa20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_outputbytes (void); - -#define crypto_core_hsalsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_inputbytes (void); - -#define crypto_core_hsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_keybytes (void); - -#define crypto_core_hsalsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hsalsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_ristretto255.h @@ -1,102 +0,0 @@ -#ifndef crypto_core_ristretto255_H -#define crypto_core_ristretto255_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ristretto255_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_bytes (void); - -#define crypto_core_ristretto255_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_hashbytes (void); - -#define crypto_core_ristretto255_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_scalarbytes (void); - -#define crypto_core_ristretto255_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ristretto255_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_add (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_sub (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_from_hash (unsigned char *p, - const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_scalar_invert (unsigned char *recip, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_negate (unsigned char *neg, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_complement (unsigned char *comp, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_add (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_sub (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_mul (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_reduce (unsigned char *r, - const unsigned char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa20_H -#define crypto_core_salsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa20_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa20_outputbytes (void); - -#define crypto_core_salsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_inputbytes (void); - -#define crypto_core_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa20_keybytes (void); - -#define crypto_core_salsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa2012.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa2012_H -#define crypto_core_salsa2012_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa2012_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa2012_outputbytes (void); - -#define crypto_core_salsa2012_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_inputbytes (void); - -#define crypto_core_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa2012_keybytes (void); - -#define crypto_core_salsa2012_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa2012 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa208.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_core_salsa208.h @@ -1,40 +0,0 @@ -#ifndef crypto_core_salsa208_H -#define crypto_core_salsa208_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa208_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa208_outputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_inputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_constbytes (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_core_salsa208 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_generichash.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_generichash.h @@ -1,84 +0,0 @@ -#ifndef crypto_generichash_H -#define crypto_generichash_H - -#include <stddef.h> - -#include "crypto_generichash_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_bytes_min (void); - -#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_bytes_max (void); - -#define crypto_generichash_BYTES crypto_generichash_blake2b_BYTES -SODIUM_EXPORT -size_t crypto_generichash_bytes (void); - -#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_keybytes_min (void); - -#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_keybytes_max (void); - -#define crypto_generichash_KEYBYTES crypto_generichash_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_generichash_keybytes (void); - -#define crypto_generichash_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_generichash_primitive (void); - -/* - * Important when writing bindings for other programming languages: - * the state address should be 64-bytes aligned. - */ -typedef crypto_generichash_blake2b_state crypto_generichash_state; - -SODIUM_EXPORT -size_t crypto_generichash_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash (unsigned char *out, size_t outlen, - const unsigned char *in, unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_init (crypto_generichash_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_update (crypto_generichash_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_final (crypto_generichash_state *state, - unsigned char *out, const size_t outlen) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_generichash_keygen (unsigned char k[crypto_generichash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_generichash_blake2b.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_generichash_blake2b.h @@ -1,128 +0,0 @@ -#ifndef crypto_generichash_blake2b_H -#define crypto_generichash_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#ifdef __IBMC__ -# pragma pack(1) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack(1) -#else -# pragma pack(push, 1) -#endif - -typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state -{ - unsigned char opaque[384]; -} crypto_generichash_blake2b_state; - -#ifdef __IBMC__ -# pragma pack(pop) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack() -#else -# pragma pack(pop) -#endif - -#define crypto_generichash_blake2b_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_min (void); - -#define crypto_generichash_blake2b_BYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_max (void); - -#define crypto_generichash_blake2b_BYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes (void); - -#define crypto_generichash_blake2b_KEYBYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_min (void); - -#define crypto_generichash_blake2b_KEYBYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_max (void); - -#define crypto_generichash_blake2b_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes (void); - -#define crypto_generichash_blake2b_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_saltbytes (void); - -#define crypto_generichash_blake2b_PERSONALBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_personalbytes (void); - -SODIUM_EXPORT -size_t crypto_generichash_blake2b_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash_blake2b (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_salt_personal (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, - size_t keylen, - const unsigned char *salt, - const unsigned char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init (crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init_salt_personal ( - crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const - size_t outlen, - const unsigned char *salt, - const unsigned - char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_update (crypto_generichash_blake2b_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_final (crypto_generichash_blake2b_state *state, - unsigned char *out, - const size_t outlen) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_generichash_blake2b_keygen (unsigned char - k[crypto_generichash_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash.h @@ -1,40 +0,0 @@ -#ifndef crypto_hash_H -#define crypto_hash_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> - -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_hash_BYTES crypto_hash_sha512_BYTES -SODIUM_EXPORT -size_t crypto_hash_bytes (void); - -SODIUM_EXPORT -int crypto_hash (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -#define crypto_hash_PRIMITIVE "sha512" -SODIUM_EXPORT -const char *crypto_hash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash_sha256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash_sha256.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha256_H -#define crypto_hash_sha256_H - -/* - * WARNING: Unless you absolutely need to use SHA256 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA256, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha256_state -{ - uint32_t state[8]; - uint64_t count; - uint8_t buf[64]; -} crypto_hash_sha256_state; - -SODIUM_EXPORT -size_t crypto_hash_sha256_statebytes (void); - -#define crypto_hash_sha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_hash_sha256_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha256 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_init (crypto_hash_sha256_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha256_update (crypto_hash_sha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_final (crypto_hash_sha256_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash_sha512.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_hash_sha512.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha512_H -#define crypto_hash_sha512_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha512_state -{ - uint64_t state[8]; - uint64_t count[2]; - uint8_t buf[128]; -} crypto_hash_sha512_state; - -SODIUM_EXPORT -size_t crypto_hash_sha512_statebytes (void); - -#define crypto_hash_sha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_hash_sha512_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_init (crypto_hash_sha512_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha512_update (crypto_hash_sha512_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_final (crypto_hash_sha512_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf.h @@ -1,53 +0,0 @@ -#ifndef crypto_kdf_H -#define crypto_kdf_H - -#include <stddef.h> -#include <stdint.h> - -#include "crypto_kdf_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_BYTES_MIN crypto_kdf_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_kdf_bytes_min (void); - -#define crypto_kdf_BYTES_MAX crypto_kdf_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_kdf_bytes_max (void); - -#define crypto_kdf_CONTEXTBYTES crypto_kdf_blake2b_CONTEXTBYTES -SODIUM_EXPORT -size_t crypto_kdf_contextbytes (void); - -#define crypto_kdf_KEYBYTES crypto_kdf_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_kdf_keybytes (void); - -#define crypto_kdf_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_kdf_primitive (void) -__attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int crypto_kdf_derive_from_key (unsigned char *subkey, size_t subkey_len, - uint64_t subkey_id, - const char ctx[crypto_kdf_CONTEXTBYTES], - const unsigned char key[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_kdf_keygen (unsigned char k[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_blake2b.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_blake2b.h @@ -1,47 +0,0 @@ -#ifndef crypto_kdf_blake2b_H -#define crypto_kdf_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_blake2b_BYTES_MIN 16 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_min (void); - -#define crypto_kdf_blake2b_BYTES_MAX 64 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_max (void); - -#define crypto_kdf_blake2b_CONTEXTBYTES 8 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_contextbytes (void); - -#define crypto_kdf_blake2b_KEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_keybytes (void); - -SODIUM_EXPORT -int crypto_kdf_blake2b_derive_from_key (unsigned char *subkey, size_t - subkey_len, - uint64_t subkey_id, - const char - ctx[crypto_kdf_blake2b_CONTEXTBYTES], - const unsigned char - key[crypto_kdf_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_hkdf_sha256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_hkdf_sha256.h @@ -1,81 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha256_H -#define crypto_kdf_hkdf_sha256_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha256_KEYBYTES crypto_auth_hmacsha256_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_keybytes (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_min (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MAX (0xff * crypto_auth_hmacsha256_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(4))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha256_keygen (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha256_state -{ - crypto_auth_hmacsha256_state st; -} crypto_kdf_hkdf_sha256_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_init (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_update (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_final (crypto_kdf_hkdf_sha256_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_hkdf_sha512.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kdf_hkdf_sha512.h @@ -1,82 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha512_H -#define crypto_kdf_hkdf_sha512_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha512_KEYBYTES crypto_auth_hmacsha512_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_keybytes (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_min (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MAX (0xff * crypto_auth_hmacsha512_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha512_keygen (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha512_state -{ - crypto_auth_hmacsha512_state st; -} crypto_kdf_hkdf_sha512_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_init (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_update (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_final (crypto_kdf_hkdf_sha512_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kx.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_kx.h @@ -1,72 +0,0 @@ -#ifndef crypto_kx_H -#define crypto_kx_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kx_PUBLICKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_publickeybytes (void); - -#define crypto_kx_SECRETKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_secretkeybytes (void); - -#define crypto_kx_SEEDBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_seedbytes (void); - -#define crypto_kx_SESSIONKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_sessionkeybytes (void); - -#define crypto_kx_PRIMITIVE "x25519blake2b" -SODIUM_EXPORT -const char *crypto_kx_primitive (void); - -SODIUM_EXPORT -int crypto_kx_seed_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES], - const unsigned char seed[crypto_kx_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_client_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - client_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -SODIUM_EXPORT -int crypto_kx_server_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - server_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_onetimeauth.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_onetimeauth.h @@ -1,66 +0,0 @@ -#ifndef crypto_onetimeauth_H -#define crypto_onetimeauth_H - -#include <stddef.h> - -#include "crypto_onetimeauth_poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_statebytes (void); - -#define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_bytes (void); - -#define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_keybytes (void); - -#define crypto_onetimeauth_PRIMITIVE "poly1305" -SODIUM_EXPORT -const char *crypto_onetimeauth_primitive (void); - -SODIUM_EXPORT -int crypto_onetimeauth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_init (crypto_onetimeauth_state *state, - const unsigned char *key) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_update (crypto_onetimeauth_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_final (crypto_onetimeauth_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_keygen (unsigned char k[crypto_onetimeauth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_onetimeauth_poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_onetimeauth_poly1305.h @@ -1,75 +0,0 @@ -#ifndef crypto_onetimeauth_poly1305_H -#define crypto_onetimeauth_poly1305_H - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state -{ - unsigned char opaque[256]; -} crypto_onetimeauth_poly1305_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_statebytes (void); - -#define crypto_onetimeauth_poly1305_BYTES 16U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_bytes (void); - -#define crypto_onetimeauth_poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_keybytes (void); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_init (crypto_onetimeauth_poly1305_state *state, - const unsigned char *key) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_update ( - crypto_onetimeauth_poly1305_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_final (crypto_onetimeauth_poly1305_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_poly1305_keygen (unsigned char - k[crypto_onetimeauth_poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash.h @@ -1,154 +0,0 @@ -#ifndef crypto_pwhash_H -#define crypto_pwhash_H - -#include <stddef.h> - -#include "crypto_pwhash_argon2i.h" -#include "crypto_pwhash_argon2id.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2i13 (void); - -#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2id13 (void); - -#define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_default (void); - -#define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN -SODIUM_EXPORT -size_t crypto_pwhash_bytes_min (void); - -#define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX -SODIUM_EXPORT -size_t crypto_pwhash_bytes_max (void); - -#define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN -SODIUM_EXPORT -size_t crypto_pwhash_passwd_min (void); - -#define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX -SODIUM_EXPORT -size_t crypto_pwhash_passwd_max (void); - -#define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES -SODIUM_EXPORT -size_t crypto_pwhash_saltbytes (void); - -#define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES -SODIUM_EXPORT -size_t crypto_pwhash_strbytes (void); - -#define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX -SODIUM_EXPORT -const char *crypto_pwhash_strprefix (void); - -#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_min (void); - -#define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_max (void); - -#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_min (void); - -#define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_max (void); - -#define crypto_pwhash_OPSLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_interactive (void); - -#define crypto_pwhash_MEMLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_interactive (void); - -#define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_moderate (void); - -#define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_moderate (void); - -#define crypto_pwhash_OPSLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_sensitive (void); - -#define crypto_pwhash_MEMLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_sensitive (void); - -/* - * With this function, do not forget to store all parameters, including the - * algorithm identifier in order to produce deterministic output. - * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, - * may change. - */ -SODIUM_EXPORT -int crypto_pwhash (unsigned char *const out, unsigned long long outlen, - const char *const passwd, unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* - * The output string already includes all the required parameters, including - * the algorithm identifier. The string is all that has to be stored in - * order to verify a password. - */ -SODIUM_EXPORT -int crypto_pwhash_str (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_alg (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long - passwdlen, - unsigned long long opslimit, size_t memlimit, int - alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#define crypto_pwhash_PRIMITIVE "argon2id,argon2i" -SODIUM_EXPORT -const char *crypto_pwhash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_argon2i.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_argon2i.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2i_H -#define crypto_pwhash_argon2i_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2i_ALG_ARGON2I13 1 -SODIUM_EXPORT -int crypto_pwhash_argon2i_alg_argon2i13 (void); - -#define crypto_pwhash_argon2i_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_min (void); - -#define crypto_pwhash_argon2i_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_max (void); - -#define crypto_pwhash_argon2i_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_min (void); - -#define crypto_pwhash_argon2i_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_max (void); - -#define crypto_pwhash_argon2i_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_saltbytes (void); - -#define crypto_pwhash_argon2i_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_strbytes (void); - -#define crypto_pwhash_argon2i_STRPREFIX "$argon2i$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2i_strprefix (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MIN 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_min (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_max (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_min (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_max (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_interactive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_interactive (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MODERATE 6U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_moderate (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MODERATE 134217728U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_moderate (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE 8U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_sensitive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE 536870912U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2i (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str (char out[crypto_pwhash_argon2i_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_argon2id.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_argon2id.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2id_H -#define crypto_pwhash_argon2id_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 -SODIUM_EXPORT -int crypto_pwhash_argon2id_alg_argon2id13 (void); - -#define crypto_pwhash_argon2id_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_min (void); - -#define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_max (void); - -#define crypto_pwhash_argon2id_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_min (void); - -#define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_max (void); - -#define crypto_pwhash_argon2id_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_saltbytes (void); - -#define crypto_pwhash_argon2id_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_strbytes (void); - -#define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2id_strprefix (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_min (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_max (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_min (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_max (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_interactive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_interactive (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_moderate (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_moderate (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_sensitive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2id (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str (char out[crypto_pwhash_argon2id_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_scryptsalsa208sha256_H -#define crypto_pwhash_scryptsalsa208sha256_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 0x1fffffffe0ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_SALTBYTES 32U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_saltbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_strbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRPREFIX "$7$" -SODIUM_EXPORT -const char *crypto_pwhash_scryptsalsa208sha256_strprefix (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN 32768U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX \ - SODIUM_MIN (SIZE_MAX, 68719476736ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE 524288U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256 (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str (char - out[ - crypto_pwhash_scryptsalsa208sha256_STRBYTES - ], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_ll (const uint8_t *passwd, size_t - passwdlen, - const uint8_t *salt, size_t saltlen, - uint64_t N, uint32_t r, uint32_t p, - uint8_t *buf, size_t buflen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash (const char *str, - unsigned long long - opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult.h @@ -1,46 +0,0 @@ -#ifndef crypto_scalarmult_H -#define crypto_scalarmult_H - -#include <stddef.h> - -#include "crypto_scalarmult_curve25519.h" -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES -SODIUM_EXPORT -size_t crypto_scalarmult_bytes (void); - -#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES -SODIUM_EXPORT -size_t crypto_scalarmult_scalarbytes (void); - -#define crypto_scalarmult_PRIMITIVE "curve25519" -SODIUM_EXPORT -const char *crypto_scalarmult_primitive (void); - -SODIUM_EXPORT -int crypto_scalarmult_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_curve25519.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_curve25519.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_curve25519_H -#define crypto_scalarmult_curve25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_curve25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_bytes (void); - -#define crypto_scalarmult_curve25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_curve25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_curve25519_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_ed25519.h @@ -1,51 +0,0 @@ -#ifndef crypto_scalarmult_ed25519_H -#define crypto_scalarmult_ed25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ed25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_bytes (void); - -#define crypto_scalarmult_ed25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ed25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_noclamp (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base_noclamp (unsigned char *q, const unsigned - char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_scalarmult_ristretto255.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_ristretto255_H -#define crypto_scalarmult_ristretto255_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ristretto255_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_bytes (void); - -#define crypto_scalarmult_ristretto255_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ristretto255 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ristretto255_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox.h @@ -1,97 +0,0 @@ -#ifndef crypto_secretbox_H -#define crypto_secretbox_H - -#include <stddef.h> - -#include "crypto_secretbox_xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretbox_keybytes (void); - -#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_secretbox_noncebytes (void); - -#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_secretbox_macbytes (void); - -#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_secretbox_primitive (void); - -#define crypto_secretbox_MESSAGEBYTES_MAX \ - crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_secretbox_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -SODIUM_EXPORT -void crypto_secretbox_keygen (unsigned char k[crypto_secretbox_KEYBYTES]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_zerobytes (void); - -#define crypto_secretbox_BOXZEROBYTES \ - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_secretbox (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox_xchacha20poly1305.h @@ -1,71 +0,0 @@ -#ifndef crypto_secretbox_xchacha20poly1305_H -#define crypto_secretbox_xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xchacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_keybytes (void); - -#define crypto_secretbox_xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_noncebytes (void); - -#define crypto_secretbox_xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_macbytes (void); - -#define crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -1,73 +0,0 @@ -#ifndef crypto_secretbox_xsalsa20poly1305_H -#define crypto_secretbox_xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_keybytes (void); - -#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_noncebytes (void); - -#define crypto_secretbox_xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -void crypto_secretbox_xsalsa20poly1305_keygen (unsigned char - k[ - crypto_secretbox_xsalsa20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes (void); - -#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES \ - (crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES \ - + crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_zerobytes (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretstream_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -1,117 +0,0 @@ -#ifndef crypto_secretstream_xchacha20poly1305_H -#define crypto_secretstream_xchacha20poly1305_H - -#include <stddef.h> - -#include "crypto_aead_xchacha20poly1305.h" -#include "crypto_stream_chacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretstream_xchacha20poly1305_ABYTES \ - (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_abytes (void); - -#define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_headerbytes (void); - -#define crypto_secretstream_xchacha20poly1305_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_keybytes (void); - -#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ - (64ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_messagebytes_max (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_message (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_push (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ - (crypto_secretstream_xchacha20poly1305_TAG_PUSH \ - | crypto_secretstream_xchacha20poly1305_TAG_REKEY) -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_final (void); - -typedef struct crypto_secretstream_xchacha20poly1305_state -{ - unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; - unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; - unsigned char _pad[8]; -} crypto_secretstream_xchacha20poly1305_state; - -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_statebytes (void); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_keygen - (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_push - (crypto_secretstream_xchacha20poly1305_state * state, - unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_push ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *c, unsigned long - long *clen_p, - const unsigned char *m, unsigned - long long mlen, - const unsigned char *ad, - unsigned long long adlen, unsigned char tag) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char - header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char - k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *m, unsigned long - long *mlen_p, unsigned char *tag_p, - const unsigned char *c, unsigned - long long clen, - const unsigned char *ad, - unsigned long long adlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey ( - crypto_secretstream_xchacha20poly1305_state *state); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_shorthash.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_shorthash.h @@ -1,41 +0,0 @@ -#ifndef crypto_shorthash_H -#define crypto_shorthash_H - -#include <stddef.h> - -#include "crypto_shorthash_siphash24.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES -SODIUM_EXPORT -size_t crypto_shorthash_bytes (void); - -#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES -SODIUM_EXPORT -size_t crypto_shorthash_keybytes (void); - -#define crypto_shorthash_PRIMITIVE "siphash24" -SODIUM_EXPORT -const char *crypto_shorthash_primitive (void); - -SODIUM_EXPORT -int crypto_shorthash (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_shorthash_keygen (unsigned char k[crypto_shorthash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_shorthash_siphash24.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_shorthash_siphash24.h @@ -1,53 +0,0 @@ -#ifndef crypto_shorthash_siphash24_H -#define crypto_shorthash_siphash24_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- 64-bit output -- */ - -#define crypto_shorthash_siphash24_BYTES 8U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_bytes (void); - -#define crypto_shorthash_siphash24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphash24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#ifndef SODIUM_LIBRARY_MINIMAL -/* -- 128-bit output -- */ - -#define crypto_shorthash_siphashx24_BYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_bytes (void); - -#define crypto_shorthash_siphashx24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphashx24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign.h @@ -1,109 +0,0 @@ -#ifndef crypto_sign_H -#define crypto_sign_H - -/* - * THREAD SAFETY: crypto_sign_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions, including crypto_sign_seed_keypair() are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_sign_ed25519.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_sign_ed25519ph_state crypto_sign_state; - -SODIUM_EXPORT -size_t crypto_sign_statebytes (void); - -#define crypto_sign_BYTES crypto_sign_ed25519_BYTES -SODIUM_EXPORT -size_t crypto_sign_bytes (void); - -#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES -SODIUM_EXPORT -size_t crypto_sign_seedbytes (void); - -#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_publickeybytes (void); - -#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_secretkeybytes (void); - -#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_sign_messagebytes_max (void); - -#define crypto_sign_PRIMITIVE "ed25519" -SODIUM_EXPORT -const char *crypto_sign_primitive (void); - -SODIUM_EXPORT -int crypto_sign_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_detached (unsigned char *sig, unsigned long long *siglen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, - 5))); - -SODIUM_EXPORT -int crypto_sign_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_init (crypto_sign_state *state); - -SODIUM_EXPORT -int crypto_sign_update (crypto_sign_state *state, - const unsigned char *m, unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_final_create (crypto_sign_state *state, unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_final_verify (crypto_sign_state *state, const unsigned - char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign_ed25519.h @@ -1,126 +0,0 @@ -#ifndef crypto_sign_ed25519_H -#define crypto_sign_ed25519_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_sign_ed25519ph_state -{ - crypto_hash_sha512_state hs; -} crypto_sign_ed25519ph_state; - -SODIUM_EXPORT -size_t crypto_sign_ed25519ph_statebytes (void); - -#define crypto_sign_ed25519_BYTES 64U -SODIUM_EXPORT -size_t crypto_sign_ed25519_bytes (void); - -#define crypto_sign_ed25519_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_seedbytes (void); - -#define crypto_sign_ed25519_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_publickeybytes (void); - -#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) -SODIUM_EXPORT -size_t crypto_sign_ed25519_secretkeybytes (void); - -#define crypto_sign_ed25519_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - crypto_sign_ed25519_BYTES) -SODIUM_EXPORT -size_t crypto_sign_ed25519_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_sign_ed25519 (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_detached (unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_pk_to_curve25519 (unsigned char *curve25519_pk, - const unsigned char *ed25519_pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_curve25519 (unsigned char *curve25519_sk, - const unsigned char *ed25519_sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_seed (unsigned char *seed, - const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_pk (unsigned char *pk, const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_init (crypto_sign_ed25519ph_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_update (crypto_sign_ed25519ph_state *state, - const unsigned char *m, - unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_create (crypto_sign_ed25519ph_state *state, - unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_verify (crypto_sign_ed25519ph_state *state, - const unsigned char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign_edwards25519sha512batch.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -1,57 +0,0 @@ -#ifndef crypto_sign_edwards25519sha512batch_H -#define crypto_sign_edwards25519sha512batch_H - -/* - * WARNING: This construction was a prototype, which should not be used - * any more in new projects. - * - * crypto_sign_edwards25519sha512batch is provided for applications - * initially built with NaCl, but as recommended by the author of this - * construction, new applications should use ed25519 instead. - * - * In Sodium, you should use the high-level crypto_sign_*() functions instead. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_sign_edwards25519sha512batch_BYTES 64U -#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) -#define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - \ - crypto_sign_edwards25519sha512batch_BYTES) - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch (unsigned char *sm, - unsigned long long *smlen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_open (unsigned char *m, - unsigned long long *mlen_p, - const unsigned char *sm, - unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream.h @@ -1,59 +0,0 @@ -#ifndef crypto_stream_H -#define crypto_stream_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> - -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES -SODIUM_EXPORT -size_t crypto_stream_keybytes (void); - -#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES -SODIUM_EXPORT -size_t crypto_stream_noncebytes (void); - -#define crypto_stream_MESSAGEBYTES_MAX crypto_stream_xsalsa20_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_stream_messagebytes_max (void); - -#define crypto_stream_PRIMITIVE "xsalsa20" -SODIUM_EXPORT -const char *crypto_stream_primitive (void); - -SODIUM_EXPORT -int crypto_stream (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_keygen (unsigned char k[crypto_stream_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_chacha20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_chacha20.h @@ -1,113 +0,0 @@ -#ifndef crypto_stream_chacha20_H -#define crypto_stream_chacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_chacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_keybytes (void); - -#define crypto_stream_chacha20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_chacha20_noncebytes (void); - -#define crypto_stream_chacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_chacha20_messagebytes_max (void); - -/* ChaCha20 with a 64-bit nonce and a 64-bit counter, as originally designed */ - -SODIUM_EXPORT -int crypto_stream_chacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_keygen (unsigned char - k[crypto_stream_chacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -/* ChaCha20 with a 96-bit nonce and a 32-bit counter (IETF) */ - -#define crypto_stream_chacha20_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_keybytes (void); - -#define crypto_stream_chacha20_ietf_NONCEBYTES 12U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_noncebytes (void); - -#define crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 64ULL * (1ULL << 32)) -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor_ic (unsigned char *c, const unsigned - char *m, - unsigned long long mlen, - const unsigned char *n, uint32_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_ietf_keygen (unsigned char - k[crypto_stream_chacha20_ietf_KEYBYTES]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_stream_chacha20_IETF_KEYBYTES \ - crypto_stream_chacha20_ietf_KEYBYTES -#define crypto_stream_chacha20_IETF_NONCEBYTES \ - crypto_stream_chacha20_ietf_NONCEBYTES -#define crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX \ - crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_salsa20_H -#define crypto_stream_salsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa20_keybytes (void); - -#define crypto_stream_salsa20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa20_noncebytes (void); - -#define crypto_stream_salsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa20_keygen (unsigned char - k[crypto_stream_salsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa2012.h @@ -1,55 +0,0 @@ -#ifndef crypto_stream_salsa2012_H -#define crypto_stream_salsa2012_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_keybytes (void); - -#define crypto_stream_salsa2012_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_noncebytes (void); - -#define crypto_stream_salsa2012_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa2012_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa2012 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa2012_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa2012_keygen (unsigned char - k[crypto_stream_salsa2012_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa208.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_salsa208.h @@ -1,57 +0,0 @@ -#ifndef crypto_stream_salsa208_H -#define crypto_stream_salsa208_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa208_noncebytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa208_messagebytes_max (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_stream_salsa208 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa208_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa208_keygen (unsigned char - k[crypto_stream_salsa208_KEYBYTES]) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_xchacha20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_xchacha20.h @@ -1,63 +0,0 @@ -#ifndef crypto_stream_xchacha20_H -#define crypto_stream_xchacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_keybytes (void); - -#define crypto_stream_xchacha20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_noncebytes (void); - -#define crypto_stream_xchacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xchacha20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xchacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xchacha20_keygen (unsigned char - k[crypto_stream_xchacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_xsalsa20.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_stream_xsalsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_xsalsa20_H -#define crypto_stream_xsalsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_keybytes (void); - -#define crypto_stream_xsalsa20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_noncebytes (void); - -#define crypto_stream_xsalsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xsalsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xsalsa20_keygen (unsigned char - k[crypto_stream_xsalsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_16.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_16.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_16_H -#define crypto_verify_16_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_16_BYTES 16U -SODIUM_EXPORT -size_t crypto_verify_16_bytes (void); - -SODIUM_EXPORT -int crypto_verify_16 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_32.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_32.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_32_H -#define crypto_verify_32_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_32_BYTES 32U -SODIUM_EXPORT -size_t crypto_verify_32_bytes (void); - -SODIUM_EXPORT -int crypto_verify_32 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_64.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/crypto_verify_64.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_64_H -#define crypto_verify_64_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_64_BYTES 64U -SODIUM_EXPORT -size_t crypto_verify_64_bytes (void); - -SODIUM_EXPORT -int crypto_verify_64 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/export.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/export.h @@ -1,56 +0,0 @@ -#ifndef sodium_export_H -#define sodium_export_H - -#include <stddef.h> -#include <stdint.h> -#include <limits.h> - -#if ! defined(__clang__) && ! defined(__GNUC__) -# ifdef __attribute__ -# undef __attribute__ -# endif -# define __attribute__(a) -#endif - -#ifdef SODIUM_STATIC -# define SODIUM_EXPORT -# define SODIUM_EXPORT_WEAK -#else -# if defined(_MSC_VER) -# ifdef SODIUM_DLL_EXPORT -# define SODIUM_EXPORT __declspec(dllexport) -# else -# define SODIUM_EXPORT __declspec(dllimport) -# endif -# else -# if defined(__SUNPRO_C) -# ifndef __GNU_C__ -# define SODIUM_EXPORT __attribute__ (visibility (__global)) -# else -# define SODIUM_EXPORT __attribute__ __global -# endif -# elif defined(_MSG_VER) -# define SODIUM_EXPORT extern __declspec(dllexport) -# else -# define SODIUM_EXPORT __attribute__ ((visibility ("default"))) -# endif -# endif -# if defined(__ELF__) && ! defined(SODIUM_DISABLE_WEAK_FUNCTIONS) -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak)) -# else -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT -# endif -#endif - -#ifndef CRYPTO_ALIGN -# if defined(__INTEL_COMPILER) || defined(_MSC_VER) -# define CRYPTO_ALIGN(x) __declspec(align (x)) -# else -# define CRYPTO_ALIGN(x) __attribute__ ((aligned (x))) -# endif -#endif - -#define SODIUM_MIN(A, B) ((A) < (B) ? (A) : (B)) -#define SODIUM_SIZE_MAX SODIUM_MIN (UINT64_MAX, SIZE_MAX) - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes.h @@ -1,73 +0,0 @@ -#ifndef randombytes_H -#define randombytes_H - -#include <stddef.h> -#include <stdint.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct randombytes_implementation -{ - const char *(*implementation_name)(void); /* required */ - uint32_t (*random)(void); /* required */ - void (*stir)(void); /* optional */ - uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ - void (*buf)(void *const buf, const size_t size); /* required */ - int (*close)(void); /* optional */ -} randombytes_implementation; - -#define randombytes_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, 0xffffffffUL) - -#define randombytes_SEEDBYTES 32U -SODIUM_EXPORT -size_t randombytes_seedbytes (void); - -SODIUM_EXPORT -void randombytes_buf (void *const buf, const size_t size) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void randombytes_buf_deterministic (void *const buf, const size_t size, - const unsigned char - seed[randombytes_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -uint32_t randombytes_random (void); - -SODIUM_EXPORT -uint32_t randombytes_uniform (const uint32_t upper_bound); - -SODIUM_EXPORT -void randombytes_stir (void); - -SODIUM_EXPORT -int randombytes_close (void); - -SODIUM_EXPORT -int randombytes_set_implementation (const randombytes_implementation *impl) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -const char *randombytes_implementation_name (void); - -/* -- NaCl compatibility interface -- */ - -SODIUM_EXPORT -void randombytes (unsigned char *const buf, const unsigned long long buf_len) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes_internal_random.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes_internal_random.h @@ -1,21 +0,0 @@ -#ifndef randombytes_internal_random_H -#define randombytes_internal_random_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_internal_implementation; - -/* Backwards compatibility with libsodium < 1.0.18 */ -#define randombytes_salsa20_implementation randombytes_internal_implementation - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes_sysrandom.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/randombytes_sysrandom.h @@ -1,18 +0,0 @@ -#ifndef randombytes_sysrandom_H -#define randombytes_sysrandom_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_sysrandom_implementation; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/runtime.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/runtime.h @@ -1,54 +0,0 @@ -#ifndef sodium_runtime_H -#define sodium_runtime_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_neon (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_armcrypto (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_ssse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse41 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx512f (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_pclmul (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_aesni (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_rdrand (void); - -/* ------------------------------------------------------------------------- */ - -int _sodium_runtime_get_cpu_features (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/utils.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/utils.h @@ -1,182 +0,0 @@ -#ifndef sodium_utils_H -#define sodium_utils_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef SODIUM_C99 -# if defined(__cplusplus) || ! defined(__STDC_VERSION__) || __STDC_VERSION__ < \ - 199901L -# define SODIUM_C99(X) -# else -# define SODIUM_C99(X) X -# endif -#endif - -SODIUM_EXPORT -void sodium_memzero (void *const pnt, const size_t len); - -SODIUM_EXPORT -void sodium_stackzero (const size_t len); - -/* - * WARNING: sodium_memcmp() must be used to verify if two secret keys - * are equal, in constant time. - * It returns 0 if the keys are equal, and -1 if they differ. - * This function is not designed for lexicographical comparisons. - */ -SODIUM_EXPORT -int sodium_memcmp (const void *const b1_, const void *const b2_, size_t len) -__attribute__ ((warn_unused_result)); - -/* - * sodium_compare() returns -1 if b1_ < b2_, 1 if b1_ > b2_ and 0 if b1_ == b2_ - * It is suitable for lexicographical comparisons, or to compare nonces - * and counters stored in little-endian format. - * However, it is slower than sodium_memcmp(). - */ -SODIUM_EXPORT -int sodium_compare (const unsigned char *b1_, const unsigned char *b2_, - size_t len) __attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int sodium_is_zero (const unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_increment (unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_add (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -void sodium_sub (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -char *sodium_bin2hex (char *const hex, const size_t hex_maxlen, - const unsigned char *const bin, const size_t bin_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_hex2bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const hex, const size_t hex_len, - const char *const ignore, size_t *const bin_len, - const char **const hex_end) -__attribute__ ((nonnull(1))); - -#define sodium_base64_VARIANT_ORIGINAL 1 -#define sodium_base64_VARIANT_ORIGINAL_NO_PADDING 3 -#define sodium_base64_VARIANT_URLSAFE 5 -#define sodium_base64_VARIANT_URLSAFE_NO_PADDING 7 - -/* - * Computes the required length to encode BIN_LEN bytes as a base64 string - * using the given variant. The computed length includes a trailing \0. - */ -#define sodium_base64_ENCODED_LEN(BIN_LEN, VARIANT) \ - (((BIN_LEN) / 3U) * 4U \ - + ((((BIN_LEN) -((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) -((BIN_LEN) / 3U) \ - * 3U) >> 1)) & 1U) \ - * (4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) -((BIN_LEN) \ - / 3U) \ - * 3U)))) + 1U) - -SODIUM_EXPORT -size_t sodium_base64_encoded_len (const size_t bin_len, const int variant); - -SODIUM_EXPORT -char *sodium_bin2base64 (char *const b64, const size_t b64_maxlen, - const unsigned char *const bin, const size_t bin_len, - const int variant) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_base642bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const b64, const size_t b64_len, - const char *const ignore, size_t *const bin_len, - const char **const b64_end, const int variant) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_mlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_munlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -/* WARNING: sodium_malloc() and sodium_allocarray() are not general-purpose - * allocation functions. - * - * They return a pointer to a region filled with 0xd0 bytes, immediately - * followed by a guard page. - * As a result, accessing a single byte after the requested allocation size - * will intentionally trigger a segmentation fault. - * - * A canary and an additional guard page placed before the beginning of the - * region may also kill the process if a buffer underflow is detected. - * - * The memory layout is: - * [unprotected region size (read only)][guard page (no access)][unprotected pages (read/write)][guard page (no access)] - * With the layout of the unprotected pages being: - * [optional padding][16-bytes canary][user region] - * - * However: - * - These functions are significantly slower than standard functions - * - Each allocation requires 3 or 4 additional pages - * - The returned address will not be aligned if the allocation size is not - * a multiple of the required alignment. For this reason, these functions - * are designed to store data, such as secret keys and messages. - * - * sodium_malloc() can be used to allocate any libsodium data structure. - * - * The crypto_generichash_state structure is packed and its length is - * either 357 or 361 bytes. For this reason, when using sodium_malloc() to - * allocate a crypto_generichash_state structure, padding must be added in - * order to ensure proper alignment. crypto_generichash_statebytes() - * returns the rounded up structure size, and should be preferred to sizeof(): - * state = sodium_malloc(crypto_generichash_statebytes()); - */ - -SODIUM_EXPORT -void *sodium_malloc (const size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void *sodium_allocarray (size_t count, size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void sodium_free (void *ptr); - -SODIUM_EXPORT -int sodium_mprotect_noaccess (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readonly (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readwrite (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_pad (size_t *padded_buflen_p, unsigned char *buf, - size_t unpadded_buflen, size_t blocksize, size_t max_buflen) -__attribute__ ((nonnull(2))); - -SODIUM_EXPORT -int sodium_unpad (size_t *unpadded_buflen_p, const unsigned char *buf, - size_t padded_buflen, size_t blocksize) -__attribute__ ((nonnull(2))); - -/* -------- */ - -int _sodium_alloc_init (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/version.h b/verification-app/app/src/main/cpp/libsodium/x86/include/sodium/version.h @@ -1,32 +0,0 @@ -#ifndef sodium_version_H -#define sodium_version_H - -#include "export.h" - -#define SODIUM_VERSION_STRING "1.0.20" - -#define SODIUM_LIBRARY_VERSION_MAJOR 26 -#define SODIUM_LIBRARY_VERSION_MINOR 2 -#define SODIUM_LIBRARY_MINIMAL 1 - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -const char *sodium_version_string (void); - -SODIUM_EXPORT -int sodium_library_version_major (void); - -SODIUM_EXPORT -int sodium_library_version_minor (void); - -SODIUM_EXPORT -int sodium_library_minimal (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.a b/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.a Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.la b/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.la @@ -1,41 +0,0 @@ -# libsodium.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.7 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='libsodium.so' - -# Names of this library. -library_names='libsodium.so' - -# The name of the static archive. -old_library='libsodium.a' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags=' -pthread' - -# Libraries that this one depends upon. -dependency_libs='' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for libsodium. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=no - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/home/enigma/Downloads/libsodium-stable/libsodium-android-westmere/lib' diff --git a/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.so b/verification-app/app/src/main/cpp/libsodium/x86/lib/libsodium.so Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/x86/lib/pkgconfig/libsodium.pc b/verification-app/app/src/main/cpp/libsodium/x86/lib/pkgconfig/libsodium.pc @@ -1,12 +0,0 @@ -prefix=/home/enigma/Downloads/libsodium-stable/libsodium-android-westmere -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: libsodium -Version: 1.0.20 -Description: A modern and easy-to-use crypto library - -Libs: -L${libdir} -lsodium -Libs.private: -pthread -Cflags: -I${includedir} diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium.h @@ -1,74 +0,0 @@ -#ifndef sodium_H -#define sodium_H - -#include "sodium/version.h" - -#include "sodium/core.h" -#include "sodium/crypto_aead_aegis128l.h" -#include "sodium/crypto_aead_aegis256.h" -#include "sodium/crypto_aead_aes256gcm.h" -#include "sodium/crypto_aead_chacha20poly1305.h" -#include "sodium/crypto_aead_xchacha20poly1305.h" -#include "sodium/crypto_auth.h" -#include "sodium/crypto_auth_hmacsha256.h" -#include "sodium/crypto_auth_hmacsha512.h" -#include "sodium/crypto_auth_hmacsha512256.h" -#include "sodium/crypto_box.h" -#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" -#include "sodium/crypto_core_hchacha20.h" -#include "sodium/crypto_core_hsalsa20.h" -#include "sodium/crypto_core_salsa20.h" -#include "sodium/crypto_core_salsa2012.h" -#include "sodium/crypto_core_salsa208.h" -#include "sodium/crypto_generichash.h" -#include "sodium/crypto_generichash_blake2b.h" -#include "sodium/crypto_hash.h" -#include "sodium/crypto_hash_sha256.h" -#include "sodium/crypto_hash_sha512.h" -#include "sodium/crypto_kdf.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kdf_blake2b.h" -#include "sodium/crypto_kdf_hkdf_sha256.h" -#include "sodium/crypto_kdf_hkdf_sha512.h" -#include "sodium/crypto_kx.h" -#include "sodium/crypto_onetimeauth.h" -#include "sodium/crypto_onetimeauth_poly1305.h" -#include "sodium/crypto_pwhash.h" -#include "sodium/crypto_pwhash_argon2i.h" -#include "sodium/crypto_scalarmult.h" -#include "sodium/crypto_scalarmult_curve25519.h" -#include "sodium/crypto_secretbox.h" -#include "sodium/crypto_secretbox_xsalsa20poly1305.h" -#include "sodium/crypto_secretstream_xchacha20poly1305.h" -#include "sodium/crypto_shorthash.h" -#include "sodium/crypto_shorthash_siphash24.h" -#include "sodium/crypto_sign.h" -#include "sodium/crypto_sign_ed25519.h" -#include "sodium/crypto_stream.h" -#include "sodium/crypto_stream_chacha20.h" -#include "sodium/crypto_stream_salsa20.h" -#include "sodium/crypto_stream_xsalsa20.h" -#include "sodium/crypto_verify_16.h" -#include "sodium/crypto_verify_32.h" -#include "sodium/crypto_verify_64.h" -#include "sodium/randombytes.h" -#include "sodium/randombytes_internal_random.h" -#include "sodium/randombytes_sysrandom.h" -#include "sodium/runtime.h" -#include "sodium/utils.h" - -#ifndef SODIUM_LIBRARY_MINIMAL -#include "sodium/crypto_box_curve25519xchacha20poly1305.h" -#include "sodium/crypto_core_ed25519.h" -#include "sodium/crypto_core_ristretto255.h" -#include "sodium/crypto_pwhash_scryptsalsa208sha256.h" -#include "sodium/crypto_scalarmult_ed25519.h" -#include "sodium/crypto_scalarmult_ristretto255.h" -#include "sodium/crypto_secretbox_xchacha20poly1305.h" -#include "sodium/crypto_stream_salsa2012.h" -#include "sodium/crypto_stream_salsa208.h" -#include "sodium/crypto_stream_xchacha20.h" -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/core.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/core.h @@ -1,27 +0,0 @@ -#ifndef sodium_core_H -#define sodium_core_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -int sodium_init (void) -__attribute__ ((warn_unused_result)); - -/* ---- */ - -SODIUM_EXPORT -int sodium_set_misuse_handler (void (*handler)(void)); - -SODIUM_EXPORT -void sodium_misuse (void) -__attribute__ ((noreturn)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aegis128l.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aegis128l.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis128l_H -#define crypto_aead_aegis128l_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis128l_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_keybytes (void); - -#define crypto_aead_aegis128l_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_nsecbytes (void); - -#define crypto_aead_aegis128l_NPUBBYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_npubbytes (void); - -#define crypto_aead_aegis128l_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis128l_abytes (void); - -#define crypto_aead_aegis128l_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis128l_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis128l_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis128l_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis128l_keygen (unsigned char - k[crypto_aead_aegis128l_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aegis256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aegis256.h @@ -1,95 +0,0 @@ -#ifndef crypto_aead_aegis256_H -#define crypto_aead_aegis256_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -#ifdef __GNUC__ -#pragma GCC diagnostic ignored "-Wlong-long" -#endif -extern "C" { -#endif - -#define crypto_aead_aegis256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_keybytes (void); - -#define crypto_aead_aegis256_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aegis256_nsecbytes (void); - -#define crypto_aead_aegis256_NPUBBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_npubbytes (void); - -#define crypto_aead_aegis256_ABYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aegis256_abytes (void); - -#define crypto_aead_aegis256_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aegis256_ABYTES, (1ULL << 61) - 1) -SODIUM_EXPORT -size_t crypto_aead_aegis256_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) __attribute__( - (warn_unused_result)) -__attribute__((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aegis256_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aegis256_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__((warn_unused_result)) __attribute__((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aegis256_keygen (unsigned char - k[crypto_aead_aegis256_KEYBYTES]) -__attribute__((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aes256gcm.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_aes256gcm.h @@ -1,188 +0,0 @@ -#ifndef crypto_aead_aes256gcm_H -#define crypto_aead_aes256gcm_H - -/* - * WARNING: Despite being the most popular AEAD construction due to its - * use in TLS, safely using AES-GCM in a different context is tricky. - * - * No more than ~ 350 GB of input data should be encrypted with a given key. - * This is for ~ 16 KB messages -- Actual figures vary according to - * message sizes. - * - * In addition, nonces are short and repeated nonces would totally destroy - * the security of this scheme. - * - * Nonces should thus come from atomic counters, which can be difficult to - * set up in a distributed environment. - * - * Unless you absolutely need AES-GCM, use crypto_aead_xchacha20poly1305_ietf_*() - * instead. It doesn't have any of these limitations. - * Or, if you don't need to authenticate additional data, just stick to - * crypto_secretbox(). - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -SODIUM_EXPORT -int crypto_aead_aes256gcm_is_available (void); - -#define crypto_aead_aes256gcm_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_keybytes (void); - -#define crypto_aead_aes256gcm_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_nsecbytes (void); - -#define crypto_aead_aes256gcm_NPUBBYTES 12U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_npubbytes (void); - -#define crypto_aead_aes256gcm_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_abytes (void); - -#define crypto_aead_aes256gcm_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_aes256gcm_ABYTES, \ - (16ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_messagebytes_max (void); - -typedef struct CRYPTO_ALIGN(16) crypto_aead_aes256gcm_state_ -{ - unsigned char opaque[512]; -} crypto_aead_aes256gcm_state; - -SODIUM_EXPORT -size_t crypto_aead_aes256gcm_statebytes (void); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_aead_aes256gcm_beforenm (crypto_aead_aes256gcm_state *ctx_, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_afternm (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_afternm (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const crypto_aead_aes256gcm_state * - ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_encrypt_detached_afternm (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_aes256gcm_decrypt_detached_afternm (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const - crypto_aead_aes256gcm_state - *ctx_) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_aes256gcm_keygen (unsigned char - k[crypto_aead_aes256gcm_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_chacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_chacha20poly1305.h @@ -1,198 +0,0 @@ -#ifndef crypto_aead_chacha20poly1305_H -#define crypto_aead_chacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- IETF ChaCha20-Poly1305 construction with a 96-bit nonce and a 32-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_NPUBBYTES 12U - -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_abytes (void); - -#define crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ietf_ABYTES, \ - (64ULL * ((1ULL << 32) - 1ULL))) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned - char *mac, - const unsigned char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- Original ChaCha20-Poly1305 construction with a 64-bit nonce and a 64-bit internal counter -- */ - -#define crypto_aead_chacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_keybytes (void); - -#define crypto_aead_chacha20poly1305_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_nsecbytes (void); - -#define crypto_aead_chacha20poly1305_NPUBBYTES 8U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_npubbytes (void); - -#define crypto_aead_chacha20poly1305_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_abytes (void); - -#define crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_chacha20poly1305_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_chacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long long *maclen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_chacha20poly1305_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *mac, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_chacha20poly1305_keygen (unsigned char - k[ - crypto_aead_chacha20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_chacha20poly1305_IETF_KEYBYTES \ - crypto_aead_chacha20poly1305_ietf_KEYBYTES -#define crypto_aead_chacha20poly1305_IETF_NSECBYTES \ - crypto_aead_chacha20poly1305_ietf_NSECBYTES -#define crypto_aead_chacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_chacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_chacha20poly1305_IETF_ABYTES \ - crypto_aead_chacha20poly1305_ietf_ABYTES -#define crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_aead_xchacha20poly1305.h @@ -1,119 +0,0 @@ -#ifndef crypto_aead_xchacha20poly1305_H -#define crypto_aead_xchacha20poly1305_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_aead_xchacha20poly1305_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_keybytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NSECBYTES 0U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_nsecbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_NPUBBYTES 24U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_npubbytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_ABYTES 16U -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_abytes (void); - -#define crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX \ - (SODIUM_SIZE_MAX - crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_aead_xchacha20poly1305_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt (unsigned char *c, - unsigned long long *clen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *nsec, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt (unsigned char *m, - unsigned long long *mlen_p, - unsigned char *nsec, - const unsigned char *c, - unsigned long long clen, - const unsigned char *ad, - unsigned long long adlen, - const unsigned char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(4, 8, 9))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_encrypt_detached (unsigned char *c, - unsigned char *mac, - unsigned long - long *maclen_p, - const unsigned char *m, - unsigned long long - mlen, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *nsec, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 9, 10))); - -SODIUM_EXPORT -int crypto_aead_xchacha20poly1305_ietf_decrypt_detached (unsigned char *m, - unsigned char *nsec, - const unsigned char *c, - unsigned long long - clen, - const unsigned - char *mac, - const unsigned - char *ad, - unsigned long long - adlen, - const unsigned - char *npub, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5, 8, 9))); - -SODIUM_EXPORT -void crypto_aead_xchacha20poly1305_ietf_keygen (unsigned char - k[ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_aead_xchacha20poly1305_IETF_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -#define crypto_aead_xchacha20poly1305_IETF_NSECBYTES \ - crypto_aead_xchacha20poly1305_ietf_NSECBYTES -#define crypto_aead_xchacha20poly1305_IETF_NPUBBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -#define crypto_aead_xchacha20poly1305_IETF_ABYTES \ - crypto_aead_xchacha20poly1305_ietf_ABYTES -#define crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX \ - crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth.h @@ -1,46 +0,0 @@ -#ifndef crypto_auth_H -#define crypto_auth_H - -#include <stddef.h> - -#include "crypto_auth_hmacsha512256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES -SODIUM_EXPORT -size_t crypto_auth_bytes (void); - -#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES -SODIUM_EXPORT -size_t crypto_auth_keybytes (void); - -#define crypto_auth_PRIMITIVE "hmacsha512256" -SODIUM_EXPORT -const char *crypto_auth_primitive (void); - -SODIUM_EXPORT -int crypto_auth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_auth_keygen (unsigned char k[crypto_auth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha256.h @@ -1,73 +0,0 @@ -#ifndef crypto_auth_hmacsha256_H -#define crypto_auth_hmacsha256_H - -#include <stddef.h> -#include "crypto_hash_sha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_bytes (void); - -#define crypto_auth_hmacsha256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha256_state -{ - crypto_hash_sha256_state ictx; - crypto_hash_sha256_state octx; -} crypto_auth_hmacsha256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_init (crypto_auth_hmacsha256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_update (crypto_auth_hmacsha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha256_final (crypto_auth_hmacsha256_state *state, - unsigned char *out) __attribute__ ((nonnull)); - - -SODIUM_EXPORT -void crypto_auth_hmacsha256_keygen (unsigned char - k[crypto_auth_hmacsha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha512.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha512.h @@ -1,72 +0,0 @@ -#ifndef crypto_auth_hmacsha512_H -#define crypto_auth_hmacsha512_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_bytes (void); - -#define crypto_auth_hmacsha512_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ((nonnull(1, - 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_auth_hmacsha512_state -{ - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_init (crypto_auth_hmacsha512_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_update (crypto_auth_hmacsha512_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512_final (crypto_auth_hmacsha512_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512_keygen (unsigned char - k[crypto_auth_hmacsha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha512256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_auth_hmacsha512256.h @@ -1,69 +0,0 @@ -#ifndef crypto_auth_hmacsha512256_H -#define crypto_auth_hmacsha512256_H - -#include <stddef.h> -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_auth_hmacsha512256_BYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_bytes (void); - -#define crypto_auth_hmacsha512256_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_keybytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) __attribute__ ( - (nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -/* ------------------------------------------------------------------------- */ - -typedef crypto_auth_hmacsha512_state crypto_auth_hmacsha512256_state; - -SODIUM_EXPORT -size_t crypto_auth_hmacsha512256_statebytes (void); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_init (crypto_auth_hmacsha512256_state *state, - const unsigned char *key, - size_t keylen) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_update (crypto_auth_hmacsha512256_state *state, - const unsigned char *in, - unsigned long long inlen) __attribute__ ( - (nonnull(1))); - -SODIUM_EXPORT -int crypto_auth_hmacsha512256_final (crypto_auth_hmacsha512256_state *state, - unsigned char *out) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_auth_hmacsha512256_keygen (unsigned char - k[crypto_auth_hmacsha512256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box.h @@ -1,188 +0,0 @@ -#ifndef crypto_box_H -#define crypto_box_H - -/* - * THREAD SAFETY: crypto_box_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_box_curve25519xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_SEEDBYTES crypto_box_curve25519xsalsa20poly1305_SEEDBYTES -SODIUM_EXPORT -size_t crypto_box_seedbytes (void); - -#define crypto_box_PUBLICKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_box_publickeybytes (void); - -#define crypto_box_SECRETKEYBYTES \ - crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_box_secretkeybytes (void); - -#define crypto_box_NONCEBYTES crypto_box_curve25519xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_box_noncebytes (void); - -#define crypto_box_MACBYTES crypto_box_curve25519xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_box_macbytes (void); - -#define crypto_box_MESSAGEBYTES_MAX \ - crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_box_messagebytes_max (void); - -#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_box_primitive (void); - -SODIUM_EXPORT -int crypto_box_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long mlen, - const unsigned char *n, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_open_detached (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -#define crypto_box_BEFORENMBYTES \ - crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES -SODIUM_EXPORT -size_t crypto_box_beforenmbytes (void); - -SODIUM_EXPORT -int crypto_box_beforenm (unsigned char *k, const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_easy_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, - 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_easy_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_detached_afternm (unsigned char *c, unsigned char *mac, - const unsigned char *m, unsigned long long - mlen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open_detached_afternm (unsigned char *m, const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_seal (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_seal_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_ZEROBYTES crypto_box_curve25519xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_box_zerobytes (void); - -#define crypto_box_BOXZEROBYTES \ - crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_box_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_box (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *pk, const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_afternm (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_box_open_afternm (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box_curve25519xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box_curve25519xchacha20poly1305.h @@ -1,186 +0,0 @@ -#ifndef crypto_box_curve25519xchacha20poly1305_H -#define crypto_box_curve25519xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xchacha20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_seedbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_noncebytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_macbytes (void); - -#define crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 2, 5, 6, 7))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached (unsigned char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *pk, - const unsigned - char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6, 7))); - -/* -- Precomputation interface -- */ - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_easy_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long - mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_easy_afternm (unsigned char *m, - const unsigned - char *c, - unsigned long long - clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_detached_afternm (unsigned char *c, - unsigned char *mac, - const unsigned - char *m, - unsigned long long - mlen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_open_detached_afternm (unsigned - char *m, - const unsigned - char *c, - const unsigned - char *mac, - unsigned long - long clen, - const unsigned - char *n, - const unsigned - char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -/* -- Ephemeral SK interface -- */ - -#define crypto_box_curve25519xchacha20poly1305_SEALBYTES \ - (crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES \ - + crypto_box_curve25519xchacha20poly1305_MACBYTES) - -SODIUM_EXPORT -size_t crypto_box_curve25519xchacha20poly1305_sealbytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_box_curve25519xchacha20poly1305_seal_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_box_curve25519xsalsa20poly1305.h @@ -1,114 +0,0 @@ -#ifndef crypto_box_curve25519xsalsa20poly1305_H -#define crypto_box_curve25519xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_box_curve25519xsalsa20poly1305_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_seedbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_noncebytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_seed_keypair (unsigned char *pk, - unsigned char *sk, - const unsigned - char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_beforenm (unsigned char *k, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes (void); - -#define crypto_box_curve25519xsalsa20poly1305_ZEROBYTES \ - (crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES \ - + crypto_box_curve25519xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_box_curve25519xsalsa20poly1305_zerobytes (void); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *pk, - const unsigned char *sk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5, 6))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_afternm (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_box_curve25519xsalsa20poly1305_open_afternm (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_ed25519.h @@ -1,104 +0,0 @@ -#ifndef crypto_core_ed25519_H -#define crypto_core_ed25519_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ed25519_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_bytes (void); - -#define crypto_core_ed25519_UNIFORMBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_uniformbytes (void); - -#define crypto_core_ed25519_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_hashbytes (void); - -#define crypto_core_ed25519_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ed25519_scalarbytes (void); - -#define crypto_core_ed25519_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ed25519_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ed25519_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_add (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_sub (unsigned char *r, - const unsigned char *p, const unsigned char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_uniform (unsigned char *p, const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_from_hash (unsigned char *p, const unsigned char *h) -__attribute__ ((nonnull)) __attribute__ ((deprecated)); - -SODIUM_EXPORT -void crypto_core_ed25519_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ed25519_scalar_invert (unsigned char *recip, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_negate (unsigned char *neg, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_complement (unsigned char *comp, const unsigned - char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_add (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_sub (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ed25519_scalar_mul (unsigned char *z, const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ed25519_scalar_reduce (unsigned char *r, const unsigned - char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_hchacha20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_hchacha20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hchacha20_H -#define crypto_core_hchacha20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hchacha20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_outputbytes (void); - -#define crypto_core_hchacha20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_inputbytes (void); - -#define crypto_core_hchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hchacha20_keybytes (void); - -#define crypto_core_hchacha20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hchacha20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hchacha20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_hsalsa20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_hsalsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_hsalsa20_H -#define crypto_core_hsalsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_hsalsa20_OUTPUTBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_outputbytes (void); - -#define crypto_core_hsalsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_inputbytes (void); - -#define crypto_core_hsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_keybytes (void); - -#define crypto_core_hsalsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_hsalsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_hsalsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_ristretto255.h @@ -1,102 +0,0 @@ -#ifndef crypto_core_ristretto255_H -#define crypto_core_ristretto255_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_ristretto255_BYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_bytes (void); - -#define crypto_core_ristretto255_HASHBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_hashbytes (void); - -#define crypto_core_ristretto255_SCALARBYTES 32 -SODIUM_EXPORT -size_t crypto_core_ristretto255_scalarbytes (void); - -#define crypto_core_ristretto255_NONREDUCEDSCALARBYTES 64 -SODIUM_EXPORT -size_t crypto_core_ristretto255_nonreducedscalarbytes (void); - -SODIUM_EXPORT -int crypto_core_ristretto255_is_valid_point (const unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_add (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_sub (unsigned char *r, - const unsigned char *p, const unsigned - char *q) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_from_hash (unsigned char *p, - const unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_random (unsigned char *p) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_random (unsigned char *r) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_core_ristretto255_scalar_invert (unsigned char *recip, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_negate (unsigned char *neg, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_complement (unsigned char *comp, - const unsigned char *s) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_add (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_sub (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_mul (unsigned char *z, - const unsigned char *x, - const unsigned char *y) -__attribute__ ((nonnull)); - -/* - * The interval `s` is sampled from should be at least 317 bits to ensure almost - * uniformity of `r` over `L`. - */ -SODIUM_EXPORT -void crypto_core_ristretto255_scalar_reduce (unsigned char *r, - const unsigned char *s) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa20.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa20_H -#define crypto_core_salsa20_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa20_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa20_outputbytes (void); - -#define crypto_core_salsa20_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_inputbytes (void); - -#define crypto_core_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa20_keybytes (void); - -#define crypto_core_salsa20_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa20_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa20 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa2012.h @@ -1,36 +0,0 @@ -#ifndef crypto_core_salsa2012_H -#define crypto_core_salsa2012_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa2012_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa2012_outputbytes (void); - -#define crypto_core_salsa2012_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_inputbytes (void); - -#define crypto_core_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa2012_keybytes (void); - -#define crypto_core_salsa2012_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa2012_constbytes (void); - -SODIUM_EXPORT -int crypto_core_salsa2012 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa208.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_core_salsa208.h @@ -1,40 +0,0 @@ -#ifndef crypto_core_salsa208_H -#define crypto_core_salsa208_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_core_salsa208_OUTPUTBYTES 64U -SODIUM_EXPORT -size_t crypto_core_salsa208_outputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_INPUTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_inputbytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_core_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_core_salsa208_CONSTBYTES 16U -SODIUM_EXPORT -size_t crypto_core_salsa208_constbytes (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_core_salsa208 (unsigned char *out, const unsigned char *in, - const unsigned char *k, const unsigned char *c) -__attribute__ ((nonnull(1, 2, 3))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_generichash.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_generichash.h @@ -1,84 +0,0 @@ -#ifndef crypto_generichash_H -#define crypto_generichash_H - -#include <stddef.h> - -#include "crypto_generichash_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_generichash_BYTES_MIN crypto_generichash_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_bytes_min (void); - -#define crypto_generichash_BYTES_MAX crypto_generichash_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_bytes_max (void); - -#define crypto_generichash_BYTES crypto_generichash_blake2b_BYTES -SODIUM_EXPORT -size_t crypto_generichash_bytes (void); - -#define crypto_generichash_KEYBYTES_MIN crypto_generichash_blake2b_KEYBYTES_MIN -SODIUM_EXPORT -size_t crypto_generichash_keybytes_min (void); - -#define crypto_generichash_KEYBYTES_MAX crypto_generichash_blake2b_KEYBYTES_MAX -SODIUM_EXPORT -size_t crypto_generichash_keybytes_max (void); - -#define crypto_generichash_KEYBYTES crypto_generichash_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_generichash_keybytes (void); - -#define crypto_generichash_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_generichash_primitive (void); - -/* - * Important when writing bindings for other programming languages: - * the state address should be 64-bytes aligned. - */ -typedef crypto_generichash_blake2b_state crypto_generichash_state; - -SODIUM_EXPORT -size_t crypto_generichash_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash (unsigned char *out, size_t outlen, - const unsigned char *in, unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_init (crypto_generichash_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_update (crypto_generichash_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_final (crypto_generichash_state *state, - unsigned char *out, const size_t outlen) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_generichash_keygen (unsigned char k[crypto_generichash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_generichash_blake2b.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_generichash_blake2b.h @@ -1,128 +0,0 @@ -#ifndef crypto_generichash_blake2b_H -#define crypto_generichash_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#ifdef __IBMC__ -# pragma pack(1) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack(1) -#else -# pragma pack(push, 1) -#endif - -typedef struct CRYPTO_ALIGN(64) crypto_generichash_blake2b_state -{ - unsigned char opaque[384]; -} crypto_generichash_blake2b_state; - -#ifdef __IBMC__ -# pragma pack(pop) -#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC) -# pragma pack() -#else -# pragma pack(pop) -#endif - -#define crypto_generichash_blake2b_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_min (void); - -#define crypto_generichash_blake2b_BYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes_max (void); - -#define crypto_generichash_blake2b_BYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_bytes (void); - -#define crypto_generichash_blake2b_KEYBYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_min (void); - -#define crypto_generichash_blake2b_KEYBYTES_MAX 64U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes_max (void); - -#define crypto_generichash_blake2b_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_keybytes (void); - -#define crypto_generichash_blake2b_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_saltbytes (void); - -#define crypto_generichash_blake2b_PERSONALBYTES 16U -SODIUM_EXPORT -size_t crypto_generichash_blake2b_personalbytes (void); - -SODIUM_EXPORT -size_t crypto_generichash_blake2b_statebytes (void); - -SODIUM_EXPORT -int crypto_generichash_blake2b (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, size_t keylen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_salt_personal (unsigned char *out, size_t outlen, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *key, - size_t keylen, - const unsigned char *salt, - const unsigned char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init (crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const size_t outlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_init_salt_personal ( - crypto_generichash_blake2b_state *state, - const unsigned char *key, - const size_t keylen, const - size_t outlen, - const unsigned char *salt, - const unsigned - char *personal) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_update (crypto_generichash_blake2b_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_generichash_blake2b_final (crypto_generichash_blake2b_state *state, - unsigned char *out, - const size_t outlen) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -void crypto_generichash_blake2b_keygen (unsigned char - k[crypto_generichash_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash.h @@ -1,40 +0,0 @@ -#ifndef crypto_hash_H -#define crypto_hash_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> - -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_hash_BYTES crypto_hash_sha512_BYTES -SODIUM_EXPORT -size_t crypto_hash_bytes (void); - -SODIUM_EXPORT -int crypto_hash (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -#define crypto_hash_PRIMITIVE "sha512" -SODIUM_EXPORT -const char *crypto_hash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash_sha256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash_sha256.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha256_H -#define crypto_hash_sha256_H - -/* - * WARNING: Unless you absolutely need to use SHA256 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA256, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha256_state -{ - uint32_t state[8]; - uint64_t count; - uint8_t buf[64]; -} crypto_hash_sha256_state; - -SODIUM_EXPORT -size_t crypto_hash_sha256_statebytes (void); - -#define crypto_hash_sha256_BYTES 32U -SODIUM_EXPORT -size_t crypto_hash_sha256_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha256 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_init (crypto_hash_sha256_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha256_update (crypto_hash_sha256_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha256_final (crypto_hash_sha256_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash_sha512.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_hash_sha512.h @@ -1,61 +0,0 @@ -#ifndef crypto_hash_sha512_H -#define crypto_hash_sha512_H - -/* - * WARNING: Unless you absolutely need to use SHA512 for interoperability, - * purposes, you might want to consider crypto_generichash() instead. - * Unlike SHA512, crypto_generichash() is not vulnerable to length - * extension attacks. - */ - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_hash_sha512_state -{ - uint64_t state[8]; - uint64_t count[2]; - uint8_t buf[128]; -} crypto_hash_sha512_state; - -SODIUM_EXPORT -size_t crypto_hash_sha512_statebytes (void); - -#define crypto_hash_sha512_BYTES 64U -SODIUM_EXPORT -size_t crypto_hash_sha512_bytes (void); - -SODIUM_EXPORT -int crypto_hash_sha512 (unsigned char *out, const unsigned char *in, - unsigned long long inlen) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_init (crypto_hash_sha512_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_hash_sha512_update (crypto_hash_sha512_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_hash_sha512_final (crypto_hash_sha512_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf.h @@ -1,53 +0,0 @@ -#ifndef crypto_kdf_H -#define crypto_kdf_H - -#include <stddef.h> -#include <stdint.h> - -#include "crypto_kdf_blake2b.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_BYTES_MIN crypto_kdf_blake2b_BYTES_MIN -SODIUM_EXPORT -size_t crypto_kdf_bytes_min (void); - -#define crypto_kdf_BYTES_MAX crypto_kdf_blake2b_BYTES_MAX -SODIUM_EXPORT -size_t crypto_kdf_bytes_max (void); - -#define crypto_kdf_CONTEXTBYTES crypto_kdf_blake2b_CONTEXTBYTES -SODIUM_EXPORT -size_t crypto_kdf_contextbytes (void); - -#define crypto_kdf_KEYBYTES crypto_kdf_blake2b_KEYBYTES -SODIUM_EXPORT -size_t crypto_kdf_keybytes (void); - -#define crypto_kdf_PRIMITIVE "blake2b" -SODIUM_EXPORT -const char *crypto_kdf_primitive (void) -__attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int crypto_kdf_derive_from_key (unsigned char *subkey, size_t subkey_len, - uint64_t subkey_id, - const char ctx[crypto_kdf_CONTEXTBYTES], - const unsigned char key[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_kdf_keygen (unsigned char k[crypto_kdf_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_blake2b.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_blake2b.h @@ -1,47 +0,0 @@ -#ifndef crypto_kdf_blake2b_H -#define crypto_kdf_blake2b_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_blake2b_BYTES_MIN 16 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_min (void); - -#define crypto_kdf_blake2b_BYTES_MAX 64 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_bytes_max (void); - -#define crypto_kdf_blake2b_CONTEXTBYTES 8 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_contextbytes (void); - -#define crypto_kdf_blake2b_KEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kdf_blake2b_keybytes (void); - -SODIUM_EXPORT -int crypto_kdf_blake2b_derive_from_key (unsigned char *subkey, size_t - subkey_len, - uint64_t subkey_id, - const char - ctx[crypto_kdf_blake2b_CONTEXTBYTES], - const unsigned char - key[crypto_kdf_blake2b_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_hkdf_sha256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_hkdf_sha256.h @@ -1,81 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha256_H -#define crypto_kdf_hkdf_sha256_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha256.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha256_KEYBYTES crypto_auth_hmacsha256_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_keybytes (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_min (void); - -#define crypto_kdf_hkdf_sha256_BYTES_MAX (0xff * crypto_auth_hmacsha256_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(4))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha256_keygen (unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha256_state -{ - crypto_auth_hmacsha256_state st; -} crypto_kdf_hkdf_sha256_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha256_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_init (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_update (crypto_kdf_hkdf_sha256_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha256_extract_final (crypto_kdf_hkdf_sha256_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha256_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_hkdf_sha512.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kdf_hkdf_sha512.h @@ -1,82 +0,0 @@ -#ifndef crypto_kdf_hkdf_sha512_H -#define crypto_kdf_hkdf_sha512_H - -#include <stddef.h> -#include <stdint.h> -#include <stdlib.h> - -#include "crypto_kdf.h" -#include "crypto_auth_hmacsha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kdf_hkdf_sha512_KEYBYTES crypto_auth_hmacsha512_BYTES -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_keybytes (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MIN 0U -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_min (void); - -#define crypto_kdf_hkdf_sha512_BYTES_MAX (0xff * crypto_auth_hmacsha512_BYTES) -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_bytes_max (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES], - const unsigned char *salt, size_t salt_len, - const unsigned char *ikm, size_t ikm_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_kdf_hkdf_sha512_keygen (unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_expand (unsigned char *out, size_t out_len, - const char *ctx, size_t ctx_len, - const unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull(1))); - -/* ------------------------------------------------------------------------- */ - -typedef struct crypto_kdf_hkdf_sha512_state -{ - crypto_auth_hmacsha512_state st; -} crypto_kdf_hkdf_sha512_state; - -SODIUM_EXPORT -size_t crypto_kdf_hkdf_sha512_statebytes (void); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_init (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *salt, size_t - salt_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_update (crypto_kdf_hkdf_sha512_state *state, - const unsigned char *ikm, size_t - ikm_len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kdf_hkdf_sha512_extract_final (crypto_kdf_hkdf_sha512_state * state, - unsigned char - prk[crypto_kdf_hkdf_sha512_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kx.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_kx.h @@ -1,72 +0,0 @@ -#ifndef crypto_kx_H -#define crypto_kx_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_kx_PUBLICKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_publickeybytes (void); - -#define crypto_kx_SECRETKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_secretkeybytes (void); - -#define crypto_kx_SEEDBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_seedbytes (void); - -#define crypto_kx_SESSIONKEYBYTES 32 -SODIUM_EXPORT -size_t crypto_kx_sessionkeybytes (void); - -#define crypto_kx_PRIMITIVE "x25519blake2b" -SODIUM_EXPORT -const char *crypto_kx_primitive (void); - -SODIUM_EXPORT -int crypto_kx_seed_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES], - const unsigned char seed[crypto_kx_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_keypair (unsigned char pk[crypto_kx_PUBLICKEYBYTES], - unsigned char sk[crypto_kx_SECRETKEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_kx_client_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - client_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -SODIUM_EXPORT -int crypto_kx_server_session_keys (unsigned char rx[crypto_kx_SESSIONKEYBYTES], - unsigned char tx[crypto_kx_SESSIONKEYBYTES], - const unsigned char - server_pk[crypto_kx_PUBLICKEYBYTES], - const unsigned char - server_sk[crypto_kx_SECRETKEYBYTES], - const unsigned char - client_pk[crypto_kx_PUBLICKEYBYTES]) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_onetimeauth.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_onetimeauth.h @@ -1,66 +0,0 @@ -#ifndef crypto_onetimeauth_H -#define crypto_onetimeauth_H - -#include <stddef.h> - -#include "crypto_onetimeauth_poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_statebytes (void); - -#define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_bytes (void); - -#define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_onetimeauth_keybytes (void); - -#define crypto_onetimeauth_PRIMITIVE "poly1305" -SODIUM_EXPORT -const char *crypto_onetimeauth_primitive (void); - -SODIUM_EXPORT -int crypto_onetimeauth (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_verify (const unsigned char *h, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_init (crypto_onetimeauth_state *state, - const unsigned char *key) __attribute__ ( - (nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_update (crypto_onetimeauth_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_final (crypto_onetimeauth_state *state, - unsigned char *out) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_keygen (unsigned char k[crypto_onetimeauth_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_onetimeauth_poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_onetimeauth_poly1305.h @@ -1,75 +0,0 @@ -#ifndef crypto_onetimeauth_poly1305_H -#define crypto_onetimeauth_poly1305_H - -#include <stdint.h> -#include <stdio.h> -#include <stdlib.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct CRYPTO_ALIGN(16) crypto_onetimeauth_poly1305_state -{ - unsigned char opaque[256]; -} crypto_onetimeauth_poly1305_state; - -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_statebytes (void); - -#define crypto_onetimeauth_poly1305_BYTES 16U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_bytes (void); - -#define crypto_onetimeauth_poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_onetimeauth_poly1305_keybytes (void); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305 (unsigned char *out, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_verify (const unsigned char *h, - const unsigned char *in, - unsigned long long inlen, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_init (crypto_onetimeauth_poly1305_state *state, - const unsigned char *key) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_update ( - crypto_onetimeauth_poly1305_state *state, - const unsigned char *in, - unsigned long long inlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_onetimeauth_poly1305_final (crypto_onetimeauth_poly1305_state *state, - unsigned char *out) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_onetimeauth_poly1305_keygen (unsigned char - k[crypto_onetimeauth_poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash.h @@ -1,154 +0,0 @@ -#ifndef crypto_pwhash_H -#define crypto_pwhash_H - -#include <stddef.h> - -#include "crypto_pwhash_argon2i.h" -#include "crypto_pwhash_argon2id.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_ALG_ARGON2I13 crypto_pwhash_argon2i_ALG_ARGON2I13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2i13 (void); - -#define crypto_pwhash_ALG_ARGON2ID13 crypto_pwhash_argon2id_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_argon2id13 (void); - -#define crypto_pwhash_ALG_DEFAULT crypto_pwhash_ALG_ARGON2ID13 -SODIUM_EXPORT -int crypto_pwhash_alg_default (void); - -#define crypto_pwhash_BYTES_MIN crypto_pwhash_argon2id_BYTES_MIN -SODIUM_EXPORT -size_t crypto_pwhash_bytes_min (void); - -#define crypto_pwhash_BYTES_MAX crypto_pwhash_argon2id_BYTES_MAX -SODIUM_EXPORT -size_t crypto_pwhash_bytes_max (void); - -#define crypto_pwhash_PASSWD_MIN crypto_pwhash_argon2id_PASSWD_MIN -SODIUM_EXPORT -size_t crypto_pwhash_passwd_min (void); - -#define crypto_pwhash_PASSWD_MAX crypto_pwhash_argon2id_PASSWD_MAX -SODIUM_EXPORT -size_t crypto_pwhash_passwd_max (void); - -#define crypto_pwhash_SALTBYTES crypto_pwhash_argon2id_SALTBYTES -SODIUM_EXPORT -size_t crypto_pwhash_saltbytes (void); - -#define crypto_pwhash_STRBYTES crypto_pwhash_argon2id_STRBYTES -SODIUM_EXPORT -size_t crypto_pwhash_strbytes (void); - -#define crypto_pwhash_STRPREFIX crypto_pwhash_argon2id_STRPREFIX -SODIUM_EXPORT -const char *crypto_pwhash_strprefix (void); - -#define crypto_pwhash_OPSLIMIT_MIN crypto_pwhash_argon2id_OPSLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_min (void); - -#define crypto_pwhash_OPSLIMIT_MAX crypto_pwhash_argon2id_OPSLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_max (void); - -#define crypto_pwhash_MEMLIMIT_MIN crypto_pwhash_argon2id_MEMLIMIT_MIN -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_min (void); - -#define crypto_pwhash_MEMLIMIT_MAX crypto_pwhash_argon2id_MEMLIMIT_MAX -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_max (void); - -#define crypto_pwhash_OPSLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_interactive (void); - -#define crypto_pwhash_MEMLIMIT_INTERACTIVE \ - crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_interactive (void); - -#define crypto_pwhash_OPSLIMIT_MODERATE crypto_pwhash_argon2id_OPSLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_moderate (void); - -#define crypto_pwhash_MEMLIMIT_MODERATE crypto_pwhash_argon2id_MEMLIMIT_MODERATE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_moderate (void); - -#define crypto_pwhash_OPSLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_opslimit_sensitive (void); - -#define crypto_pwhash_MEMLIMIT_SENSITIVE \ - crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE -SODIUM_EXPORT -size_t crypto_pwhash_memlimit_sensitive (void); - -/* - * With this function, do not forget to store all parameters, including the - * algorithm identifier in order to produce deterministic output. - * The crypto_pwhash_* definitions, including crypto_pwhash_ALG_DEFAULT, - * may change. - */ -SODIUM_EXPORT -int crypto_pwhash (unsigned char *const out, unsigned long long outlen, - const char *const passwd, unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -/* - * The output string already includes all the required parameters, including - * the algorithm identifier. The string is all that has to be stored in - * order to verify a password. - */ -SODIUM_EXPORT -int crypto_pwhash_str (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_alg (char out[crypto_pwhash_STRBYTES], - const char *const passwd, unsigned long long - passwdlen, - unsigned long long opslimit, size_t memlimit, int - alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#define crypto_pwhash_PRIMITIVE "argon2id,argon2i" -SODIUM_EXPORT -const char *crypto_pwhash_primitive (void) -__attribute__ ((warn_unused_result)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_argon2i.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_argon2i.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2i_H -#define crypto_pwhash_argon2i_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2i_ALG_ARGON2I13 1 -SODIUM_EXPORT -int crypto_pwhash_argon2i_alg_argon2i13 (void); - -#define crypto_pwhash_argon2i_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_min (void); - -#define crypto_pwhash_argon2i_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_bytes_max (void); - -#define crypto_pwhash_argon2i_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_min (void); - -#define crypto_pwhash_argon2i_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_passwd_max (void); - -#define crypto_pwhash_argon2i_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_saltbytes (void); - -#define crypto_pwhash_argon2i_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_strbytes (void); - -#define crypto_pwhash_argon2i_STRPREFIX "$argon2i$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2i_strprefix (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MIN 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_min (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_max (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_min (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_max (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_interactive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_interactive (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_MODERATE 6U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_moderate (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_MODERATE 134217728U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_moderate (void); - -#define crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE 8U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_opslimit_sensitive (void); - -#define crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE 536870912U -SODIUM_EXPORT -size_t crypto_pwhash_argon2i_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2i (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str (char out[crypto_pwhash_argon2i_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2i_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_argon2id.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_argon2id.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_argon2id_H -#define crypto_pwhash_argon2id_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_argon2id_ALG_ARGON2ID13 2 -SODIUM_EXPORT -int crypto_pwhash_argon2id_alg_argon2id13 (void); - -#define crypto_pwhash_argon2id_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_min (void); - -#define crypto_pwhash_argon2id_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, \ - 4294967295U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_bytes_max (void); - -#define crypto_pwhash_argon2id_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_min (void); - -#define crypto_pwhash_argon2id_PASSWD_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_passwd_max (void); - -#define crypto_pwhash_argon2id_SALTBYTES 16U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_saltbytes (void); - -#define crypto_pwhash_argon2id_STRBYTES 128U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_strbytes (void); - -#define crypto_pwhash_argon2id_STRPREFIX "$argon2id$" -SODIUM_EXPORT -const char *crypto_pwhash_argon2id_strprefix (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MIN 1U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_min (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_max (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MIN 8192U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_min (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MAX \ - ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? \ - 2147483648U : 32768U) -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_max (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE 2U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_interactive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE 67108864U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_interactive (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_MODERATE 3U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_moderate (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_MODERATE 268435456U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_moderate (void); - -#define crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE 4U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_opslimit_sensitive (void); - -#define crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_argon2id_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_argon2id (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, size_t memlimit, - int alg) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str (char out[crypto_pwhash_argon2id_STRBYTES], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_argon2id_str_needs_rehash (const char *str, - unsigned long long opslimit, size_t - memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_scryptsalsa208sha256.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_pwhash_scryptsalsa208sha256.h @@ -1,125 +0,0 @@ -#ifndef crypto_pwhash_scryptsalsa208sha256_H -#define crypto_pwhash_scryptsalsa208sha256_H - -#include <limits.h> -#include <stddef.h> -#include <stdint.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MIN 16U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_BYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 0x1fffffffe0ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_bytes_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN 0U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_passwd_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_SALTBYTES 32U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_saltbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_strbytes (void); - -#define crypto_pwhash_scryptsalsa208sha256_STRPREFIX "$7$" -SODIUM_EXPORT -const char *crypto_pwhash_scryptsalsa208sha256_strprefix (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN 32768U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX 4294967295U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_min (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX \ - SODIUM_MIN (SIZE_MAX, 68719476736ULL) -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_max (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE 524288U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE 16777216U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_interactive (void); - -#define crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE 33554432U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive (void); - -#define crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE 1073741824U -SODIUM_EXPORT -size_t crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive (void); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256 (unsigned char *const out, - unsigned long long outlen, - const char *const passwd, - unsigned long long passwdlen, - const unsigned char *const salt, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str (char - out[ - crypto_pwhash_scryptsalsa208sha256_STRBYTES - ], - const char *const passwd, - unsigned long long passwdlen, - unsigned long long opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_verify (const char *str, - const char *const passwd, - unsigned long long passwdlen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_ll (const uint8_t *passwd, size_t - passwdlen, - const uint8_t *salt, size_t saltlen, - uint64_t N, uint32_t r, uint32_t p, - uint8_t *buf, size_t buflen) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_pwhash_scryptsalsa208sha256_str_needs_rehash (const char *str, - unsigned long long - opslimit, - size_t memlimit) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult.h @@ -1,46 +0,0 @@ -#ifndef crypto_scalarmult_H -#define crypto_scalarmult_H - -#include <stddef.h> - -#include "crypto_scalarmult_curve25519.h" -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_BYTES crypto_scalarmult_curve25519_BYTES -SODIUM_EXPORT -size_t crypto_scalarmult_bytes (void); - -#define crypto_scalarmult_SCALARBYTES crypto_scalarmult_curve25519_SCALARBYTES -SODIUM_EXPORT -size_t crypto_scalarmult_scalarbytes (void); - -#define crypto_scalarmult_PRIMITIVE "curve25519" -SODIUM_EXPORT -const char *crypto_scalarmult_primitive (void); - -SODIUM_EXPORT -int crypto_scalarmult_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_curve25519.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_curve25519.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_curve25519_H -#define crypto_scalarmult_curve25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_curve25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_bytes (void); - -#define crypto_scalarmult_curve25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_curve25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_curve25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_curve25519_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_ed25519.h @@ -1,51 +0,0 @@ -#ifndef crypto_scalarmult_ed25519_H -#define crypto_scalarmult_ed25519_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ed25519_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_bytes (void); - -#define crypto_scalarmult_ed25519_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ed25519_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ed25519 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_noclamp (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base (unsigned char *q, const unsigned char *n) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ed25519_base_noclamp (unsigned char *q, const unsigned - char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_ristretto255.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_scalarmult_ristretto255.h @@ -1,42 +0,0 @@ -#ifndef crypto_scalarmult_ristretto255_H -#define crypto_scalarmult_ristretto255_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_scalarmult_ristretto255_BYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_bytes (void); - -#define crypto_scalarmult_ristretto255_SCALARBYTES 32U -SODIUM_EXPORT -size_t crypto_scalarmult_ristretto255_scalarbytes (void); - -/* - * NOTE: Do not use the result of this function directly for key exchange. - * - * Hash the result with the public keys in order to compute a shared - * secret key: H(q || client_pk || server_pk) - * - * Or unless this is not an option, use the crypto_kx() API instead. - */ -SODIUM_EXPORT -int crypto_scalarmult_ristretto255 (unsigned char *q, const unsigned char *n, - const unsigned char *p) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_scalarmult_ristretto255_base (unsigned char *q, - const unsigned char *n) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox.h @@ -1,97 +0,0 @@ -#ifndef crypto_secretbox_H -#define crypto_secretbox_H - -#include <stddef.h> - -#include "crypto_secretbox_xsalsa20poly1305.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_KEYBYTES crypto_secretbox_xsalsa20poly1305_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretbox_keybytes (void); - -#define crypto_secretbox_NONCEBYTES crypto_secretbox_xsalsa20poly1305_NONCEBYTES -SODIUM_EXPORT -size_t crypto_secretbox_noncebytes (void); - -#define crypto_secretbox_MACBYTES crypto_secretbox_xsalsa20poly1305_MACBYTES -SODIUM_EXPORT -size_t crypto_secretbox_macbytes (void); - -#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305" -SODIUM_EXPORT -const char *crypto_secretbox_primitive (void); - -#define crypto_secretbox_MESSAGEBYTES_MAX \ - crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_secretbox_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_easy (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open_easy (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_detached (unsigned char *c, unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -SODIUM_EXPORT -void crypto_secretbox_keygen (unsigned char k[crypto_secretbox_KEYBYTES]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_ZEROBYTES crypto_secretbox_xsalsa20poly1305_ZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_zerobytes (void); - -#define crypto_secretbox_BOXZEROBYTES \ - crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES -SODIUM_EXPORT -size_t crypto_secretbox_boxzerobytes (void); - -SODIUM_EXPORT -int crypto_secretbox (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) __attribute__ ((nonnull(1, 4, - 5))); - -SODIUM_EXPORT -int crypto_secretbox_open (unsigned char *m, const unsigned char *c, - unsigned long long clen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox_xchacha20poly1305.h @@ -1,71 +0,0 @@ -#ifndef crypto_secretbox_xchacha20poly1305_H -#define crypto_secretbox_xchacha20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xchacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xchacha20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_keybytes (void); - -#define crypto_secretbox_xchacha20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_noncebytes (void); - -#define crypto_secretbox_xchacha20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_macbytes (void); - -#define crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xchacha20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xchacha20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xchacha20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_easy (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_easy (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_detached (unsigned char *c, - unsigned char *mac, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 2, 5, 6))); - -SODIUM_EXPORT -int crypto_secretbox_xchacha20poly1305_open_detached (unsigned char *m, - const unsigned char *c, - const unsigned char *mac, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 3, 5, 6))); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -1,73 +0,0 @@ -#ifndef crypto_secretbox_xsalsa20poly1305_H -#define crypto_secretbox_xsalsa20poly1305_H - -#include <stddef.h> -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_keybytes (void); - -#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_noncebytes (void); - -#define crypto_secretbox_xsalsa20poly1305_MACBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_macbytes (void); - -/* Only for the libsodium API - The NaCl compatibility API would require BOXZEROBYTES extra bytes */ -#define crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX \ - (crypto_stream_xsalsa20_MESSAGEBYTES_MAX \ - - crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305 (unsigned char *c, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull(1, 4, 5))); - -SODIUM_EXPORT -int crypto_secretbox_xsalsa20poly1305_open (unsigned char *m, - const unsigned char *c, - unsigned long long clen, - const unsigned char *n, - const unsigned char *k) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(2, 4, 5))); - -SODIUM_EXPORT -void crypto_secretbox_xsalsa20poly1305_keygen (unsigned char - k[ - crypto_secretbox_xsalsa20poly1305_KEYBYTES - ]) -__attribute__ ((nonnull)); - -/* -- NaCl compatibility interface ; Requires padding -- */ - -#define crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES 16U -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes (void); - -#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES \ - (crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES \ - + crypto_secretbox_xsalsa20poly1305_MACBYTES) -SODIUM_EXPORT -size_t crypto_secretbox_xsalsa20poly1305_zerobytes (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretstream_xchacha20poly1305.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_secretstream_xchacha20poly1305.h @@ -1,117 +0,0 @@ -#ifndef crypto_secretstream_xchacha20poly1305_H -#define crypto_secretstream_xchacha20poly1305_H - -#include <stddef.h> - -#include "crypto_aead_xchacha20poly1305.h" -#include "crypto_stream_chacha20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_secretstream_xchacha20poly1305_ABYTES \ - (1U + crypto_aead_xchacha20poly1305_ietf_ABYTES) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_abytes (void); - -#define crypto_secretstream_xchacha20poly1305_HEADERBYTES \ - crypto_aead_xchacha20poly1305_ietf_NPUBBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_headerbytes (void); - -#define crypto_secretstream_xchacha20poly1305_KEYBYTES \ - crypto_aead_xchacha20poly1305_ietf_KEYBYTES -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_keybytes (void); - -#define crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX - crypto_secretstream_xchacha20poly1305_ABYTES, \ - (64ULL * ((1ULL << 32) - 2ULL))) -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_messagebytes_max (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_MESSAGE 0x00 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_message (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_PUSH 0x01 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_push (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_REKEY 0x02 -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_rekey (void); - -#define crypto_secretstream_xchacha20poly1305_TAG_FINAL \ - (crypto_secretstream_xchacha20poly1305_TAG_PUSH \ - | crypto_secretstream_xchacha20poly1305_TAG_REKEY) -SODIUM_EXPORT -unsigned char crypto_secretstream_xchacha20poly1305_tag_final (void); - -typedef struct crypto_secretstream_xchacha20poly1305_state -{ - unsigned char k[crypto_stream_chacha20_ietf_KEYBYTES]; - unsigned char nonce[crypto_stream_chacha20_ietf_NONCEBYTES]; - unsigned char _pad[8]; -} crypto_secretstream_xchacha20poly1305_state; - -SODIUM_EXPORT -size_t crypto_secretstream_xchacha20poly1305_statebytes (void); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_keygen - (unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_push - (crypto_secretstream_xchacha20poly1305_state * state, - unsigned char header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_push ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *c, unsigned long - long *clen_p, - const unsigned char *m, unsigned - long long mlen, - const unsigned char *ad, - unsigned long long adlen, unsigned char tag) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_init_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - const unsigned char - header[crypto_secretstream_xchacha20poly1305_HEADERBYTES], - const unsigned char - k[crypto_secretstream_xchacha20poly1305_KEYBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_secretstream_xchacha20poly1305_pull ( - crypto_secretstream_xchacha20poly1305_state *state, - unsigned char *m, unsigned long - long *mlen_p, unsigned char *tag_p, - const unsigned char *c, unsigned - long long clen, - const unsigned char *ad, - unsigned long long adlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -void crypto_secretstream_xchacha20poly1305_rekey ( - crypto_secretstream_xchacha20poly1305_state *state); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_shorthash.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_shorthash.h @@ -1,41 +0,0 @@ -#ifndef crypto_shorthash_H -#define crypto_shorthash_H - -#include <stddef.h> - -#include "crypto_shorthash_siphash24.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_shorthash_BYTES crypto_shorthash_siphash24_BYTES -SODIUM_EXPORT -size_t crypto_shorthash_bytes (void); - -#define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES -SODIUM_EXPORT -size_t crypto_shorthash_keybytes (void); - -#define crypto_shorthash_PRIMITIVE "siphash24" -SODIUM_EXPORT -const char *crypto_shorthash_primitive (void); - -SODIUM_EXPORT -int crypto_shorthash (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned char *k) -__attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -void crypto_shorthash_keygen (unsigned char k[crypto_shorthash_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_shorthash_siphash24.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_shorthash_siphash24.h @@ -1,53 +0,0 @@ -#ifndef crypto_shorthash_siphash24_H -#define crypto_shorthash_siphash24_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -/* -- 64-bit output -- */ - -#define crypto_shorthash_siphash24_BYTES 8U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_bytes (void); - -#define crypto_shorthash_siphash24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphash24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphash24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#ifndef SODIUM_LIBRARY_MINIMAL -/* -- 128-bit output -- */ - -#define crypto_shorthash_siphashx24_BYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_bytes (void); - -#define crypto_shorthash_siphashx24_KEYBYTES 16U -SODIUM_EXPORT -size_t crypto_shorthash_siphashx24_keybytes (void); - -SODIUM_EXPORT -int crypto_shorthash_siphashx24 (unsigned char *out, const unsigned char *in, - unsigned long long inlen, const unsigned - char *k) -__attribute__ ((nonnull(1, 4))); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign.h @@ -1,109 +0,0 @@ -#ifndef crypto_sign_H -#define crypto_sign_H - -/* - * THREAD SAFETY: crypto_sign_keypair() is thread-safe, - * provided that sodium_init() was called before. - * - * Other functions, including crypto_sign_seed_keypair() are always thread-safe. - */ - -#include <stddef.h> - -#include "crypto_sign_ed25519.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef crypto_sign_ed25519ph_state crypto_sign_state; - -SODIUM_EXPORT -size_t crypto_sign_statebytes (void); - -#define crypto_sign_BYTES crypto_sign_ed25519_BYTES -SODIUM_EXPORT -size_t crypto_sign_bytes (void); - -#define crypto_sign_SEEDBYTES crypto_sign_ed25519_SEEDBYTES -SODIUM_EXPORT -size_t crypto_sign_seedbytes (void); - -#define crypto_sign_PUBLICKEYBYTES crypto_sign_ed25519_PUBLICKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_publickeybytes (void); - -#define crypto_sign_SECRETKEYBYTES crypto_sign_ed25519_SECRETKEYBYTES -SODIUM_EXPORT -size_t crypto_sign_secretkeybytes (void); - -#define crypto_sign_MESSAGEBYTES_MAX crypto_sign_ed25519_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_sign_messagebytes_max (void); - -#define crypto_sign_PRIMITIVE "ed25519" -SODIUM_EXPORT -const char *crypto_sign_primitive (void); - -SODIUM_EXPORT -int crypto_sign_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_detached (unsigned char *sig, unsigned long long *siglen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) __attribute__ ((nonnull(1, - 5))); - -SODIUM_EXPORT -int crypto_sign_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_init (crypto_sign_state *state); - -SODIUM_EXPORT -int crypto_sign_update (crypto_sign_state *state, - const unsigned char *m, unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_final_create (crypto_sign_state *state, unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_final_verify (crypto_sign_state *state, const unsigned - char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign_ed25519.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign_ed25519.h @@ -1,126 +0,0 @@ -#ifndef crypto_sign_ed25519_H -#define crypto_sign_ed25519_H - -#include <stddef.h> -#include "crypto_hash_sha512.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct crypto_sign_ed25519ph_state -{ - crypto_hash_sha512_state hs; -} crypto_sign_ed25519ph_state; - -SODIUM_EXPORT -size_t crypto_sign_ed25519ph_statebytes (void); - -#define crypto_sign_ed25519_BYTES 64U -SODIUM_EXPORT -size_t crypto_sign_ed25519_bytes (void); - -#define crypto_sign_ed25519_SEEDBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_seedbytes (void); - -#define crypto_sign_ed25519_PUBLICKEYBYTES 32U -SODIUM_EXPORT -size_t crypto_sign_ed25519_publickeybytes (void); - -#define crypto_sign_ed25519_SECRETKEYBYTES (32U + 32U) -SODIUM_EXPORT -size_t crypto_sign_ed25519_secretkeybytes (void); - -#define crypto_sign_ed25519_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - crypto_sign_ed25519_BYTES) -SODIUM_EXPORT -size_t crypto_sign_ed25519_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_sign_ed25519 (unsigned char *sm, unsigned long long *smlen_p, - const unsigned char *m, unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_open (unsigned char *m, unsigned long long *mlen_p, - const unsigned char *sm, unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_detached (unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_ed25519_verify_detached (const unsigned char *sig, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519_keypair (unsigned char *pk, unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, - const unsigned char *seed) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_pk_to_curve25519 (unsigned char *curve25519_pk, - const unsigned char *ed25519_pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_curve25519 (unsigned char *curve25519_sk, - const unsigned char *ed25519_sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_seed (unsigned char *seed, - const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519_sk_to_pk (unsigned char *pk, const unsigned char *sk) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_init (crypto_sign_ed25519ph_state *state) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_update (crypto_sign_ed25519ph_state *state, - const unsigned char *m, - unsigned long long mlen) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_create (crypto_sign_ed25519ph_state *state, - unsigned char *sig, - unsigned long long *siglen_p, - const unsigned char *sk) -__attribute__ ((nonnull(1, 2, 4))); - -SODIUM_EXPORT -int crypto_sign_ed25519ph_final_verify (crypto_sign_ed25519ph_state *state, - const unsigned char *sig, - const unsigned char *pk) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign_edwards25519sha512batch.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_sign_edwards25519sha512batch.h @@ -1,57 +0,0 @@ -#ifndef crypto_sign_edwards25519sha512batch_H -#define crypto_sign_edwards25519sha512batch_H - -/* - * WARNING: This construction was a prototype, which should not be used - * any more in new projects. - * - * crypto_sign_edwards25519sha512batch is provided for applications - * initially built with NaCl, but as recommended by the author of this - * construction, new applications should use ed25519 instead. - * - * In Sodium, you should use the high-level crypto_sign_*() functions instead. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_sign_edwards25519sha512batch_BYTES 64U -#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32U -#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES (32U + 32U) -#define crypto_sign_edwards25519sha512batch_MESSAGEBYTES_MAX (SODIUM_SIZE_MAX \ - - \ - crypto_sign_edwards25519sha512batch_BYTES) - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch (unsigned char *sm, - unsigned long long *smlen_p, - const unsigned char *m, - unsigned long long mlen, - const unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(1, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_open (unsigned char *m, - unsigned long long *mlen_p, - const unsigned char *sm, - unsigned long long smlen, - const unsigned char *pk) -__attribute__ ((deprecated)) __attribute__ ((nonnull(3, 5))); - -SODIUM_EXPORT -int crypto_sign_edwards25519sha512batch_keypair (unsigned char *pk, - unsigned char *sk) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream.h @@ -1,59 +0,0 @@ -#ifndef crypto_stream_H -#define crypto_stream_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> - -#include "crypto_stream_xsalsa20.h" -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_KEYBYTES crypto_stream_xsalsa20_KEYBYTES -SODIUM_EXPORT -size_t crypto_stream_keybytes (void); - -#define crypto_stream_NONCEBYTES crypto_stream_xsalsa20_NONCEBYTES -SODIUM_EXPORT -size_t crypto_stream_noncebytes (void); - -#define crypto_stream_MESSAGEBYTES_MAX crypto_stream_xsalsa20_MESSAGEBYTES_MAX -SODIUM_EXPORT -size_t crypto_stream_messagebytes_max (void); - -#define crypto_stream_PRIMITIVE "xsalsa20" -SODIUM_EXPORT -const char *crypto_stream_primitive (void); - -SODIUM_EXPORT -int crypto_stream (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_keygen (unsigned char k[crypto_stream_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_chacha20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_chacha20.h @@ -1,113 +0,0 @@ -#ifndef crypto_stream_chacha20_H -#define crypto_stream_chacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_chacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_keybytes (void); - -#define crypto_stream_chacha20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_chacha20_noncebytes (void); - -#define crypto_stream_chacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_chacha20_messagebytes_max (void); - -/* ChaCha20 with a 64-bit nonce and a 64-bit counter, as originally designed */ - -SODIUM_EXPORT -int crypto_stream_chacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_keygen (unsigned char - k[crypto_stream_chacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -/* ChaCha20 with a 96-bit nonce and a 32-bit counter (IETF) */ - -#define crypto_stream_chacha20_ietf_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_keybytes (void); - -#define crypto_stream_chacha20_ietf_NONCEBYTES 12U -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_noncebytes (void); - -#define crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX \ - SODIUM_MIN (SODIUM_SIZE_MAX, 64ULL * (1ULL << 32)) -SODIUM_EXPORT -size_t crypto_stream_chacha20_ietf_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_chacha20_ietf_xor_ic (unsigned char *c, const unsigned - char *m, - unsigned long long mlen, - const unsigned char *n, uint32_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_chacha20_ietf_keygen (unsigned char - k[crypto_stream_chacha20_ietf_KEYBYTES]) -__attribute__ ((nonnull)); - -/* Aliases */ - -#define crypto_stream_chacha20_IETF_KEYBYTES \ - crypto_stream_chacha20_ietf_KEYBYTES -#define crypto_stream_chacha20_IETF_NONCEBYTES \ - crypto_stream_chacha20_ietf_NONCEBYTES -#define crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX \ - crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_salsa20_H -#define crypto_stream_salsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa20_keybytes (void); - -#define crypto_stream_salsa20_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa20_noncebytes (void); - -#define crypto_stream_salsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa20_keygen (unsigned char - k[crypto_stream_salsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa2012.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa2012.h @@ -1,55 +0,0 @@ -#ifndef crypto_stream_salsa2012_H -#define crypto_stream_salsa2012_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa2012_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_keybytes (void); - -#define crypto_stream_salsa2012_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa2012_noncebytes (void); - -#define crypto_stream_salsa2012_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa2012_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_salsa2012 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa2012_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa2012_keygen (unsigned char - k[crypto_stream_salsa2012_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa208.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_salsa208.h @@ -1,57 +0,0 @@ -#ifndef crypto_stream_salsa208_H -#define crypto_stream_salsa208_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_salsa208_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_salsa208_keybytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_NONCEBYTES 8U -SODIUM_EXPORT -size_t crypto_stream_salsa208_noncebytes (void) -__attribute__ ((deprecated)); - -#define crypto_stream_salsa208_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_salsa208_messagebytes_max (void) -__attribute__ ((deprecated)); - -SODIUM_EXPORT -int crypto_stream_salsa208 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_salsa208_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_salsa208_keygen (unsigned char - k[crypto_stream_salsa208_KEYBYTES]) -__attribute__ ((deprecated)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_xchacha20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_xchacha20.h @@ -1,63 +0,0 @@ -#ifndef crypto_stream_xchacha20_H -#define crypto_stream_xchacha20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xchacha20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_keybytes (void); - -#define crypto_stream_xchacha20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xchacha20_noncebytes (void); - -#define crypto_stream_xchacha20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xchacha20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xchacha20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned - char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xchacha20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xchacha20_keygen (unsigned char - k[crypto_stream_xchacha20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_xsalsa20.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_stream_xsalsa20.h @@ -1,62 +0,0 @@ -#ifndef crypto_stream_xsalsa20_H -#define crypto_stream_xsalsa20_H - -/* - * WARNING: This is just a stream cipher. It is NOT authenticated encryption. - * While it provides some protection against eavesdropping, it does NOT - * provide any security against active attacks. - * Unless you know what you're doing, what you are looking for is probably - * the crypto_box functions. - */ - -#include <stddef.h> -#include <stdint.h> -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -#define crypto_stream_xsalsa20_KEYBYTES 32U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_keybytes (void); - -#define crypto_stream_xsalsa20_NONCEBYTES 24U -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_noncebytes (void); - -#define crypto_stream_xsalsa20_MESSAGEBYTES_MAX SODIUM_SIZE_MAX -SODIUM_EXPORT -size_t crypto_stream_xsalsa20_messagebytes_max (void); - -SODIUM_EXPORT -int crypto_stream_xsalsa20 (unsigned char *c, unsigned long long clen, - const unsigned char *n, const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor (unsigned char *c, const unsigned char *m, - unsigned long long mlen, const unsigned char *n, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int crypto_stream_xsalsa20_xor_ic (unsigned char *c, const unsigned char *m, - unsigned long long mlen, - const unsigned char *n, uint64_t ic, - const unsigned char *k) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void crypto_stream_xsalsa20_keygen (unsigned char - k[crypto_stream_xsalsa20_KEYBYTES]) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_16.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_16.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_16_H -#define crypto_verify_16_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_16_BYTES 16U -SODIUM_EXPORT -size_t crypto_verify_16_bytes (void); - -SODIUM_EXPORT -int crypto_verify_16 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_32.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_32.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_32_H -#define crypto_verify_32_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_32_BYTES 32U -SODIUM_EXPORT -size_t crypto_verify_32_bytes (void); - -SODIUM_EXPORT -int crypto_verify_32 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_64.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/crypto_verify_64.h @@ -1,23 +0,0 @@ -#ifndef crypto_verify_64_H -#define crypto_verify_64_H - -#include <stddef.h> -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#define crypto_verify_64_BYTES 64U -SODIUM_EXPORT -size_t crypto_verify_64_bytes (void); - -SODIUM_EXPORT -int crypto_verify_64 (const unsigned char *x, const unsigned char *y) -__attribute__ ((warn_unused_result)) __attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/export.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/export.h @@ -1,56 +0,0 @@ -#ifndef sodium_export_H -#define sodium_export_H - -#include <stddef.h> -#include <stdint.h> -#include <limits.h> - -#if ! defined(__clang__) && ! defined(__GNUC__) -# ifdef __attribute__ -# undef __attribute__ -# endif -# define __attribute__(a) -#endif - -#ifdef SODIUM_STATIC -# define SODIUM_EXPORT -# define SODIUM_EXPORT_WEAK -#else -# if defined(_MSC_VER) -# ifdef SODIUM_DLL_EXPORT -# define SODIUM_EXPORT __declspec(dllexport) -# else -# define SODIUM_EXPORT __declspec(dllimport) -# endif -# else -# if defined(__SUNPRO_C) -# ifndef __GNU_C__ -# define SODIUM_EXPORT __attribute__ (visibility (__global)) -# else -# define SODIUM_EXPORT __attribute__ __global -# endif -# elif defined(_MSG_VER) -# define SODIUM_EXPORT extern __declspec(dllexport) -# else -# define SODIUM_EXPORT __attribute__ ((visibility ("default"))) -# endif -# endif -# if defined(__ELF__) && ! defined(SODIUM_DISABLE_WEAK_FUNCTIONS) -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak)) -# else -# define SODIUM_EXPORT_WEAK SODIUM_EXPORT -# endif -#endif - -#ifndef CRYPTO_ALIGN -# if defined(__INTEL_COMPILER) || defined(_MSC_VER) -# define CRYPTO_ALIGN(x) __declspec(align (x)) -# else -# define CRYPTO_ALIGN(x) __attribute__ ((aligned (x))) -# endif -#endif - -#define SODIUM_MIN(A, B) ((A) < (B) ? (A) : (B)) -#define SODIUM_SIZE_MAX SODIUM_MIN (UINT64_MAX, SIZE_MAX) - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes.h @@ -1,73 +0,0 @@ -#ifndef randombytes_H -#define randombytes_H - -#include <stddef.h> -#include <stdint.h> - -#include <sys/types.h> - -#include "export.h" - -#ifdef __cplusplus -# ifdef __GNUC__ -# pragma GCC diagnostic ignored "-Wlong-long" -# endif -extern "C" { -#endif - -typedef struct randombytes_implementation -{ - const char *(*implementation_name)(void); /* required */ - uint32_t (*random)(void); /* required */ - void (*stir)(void); /* optional */ - uint32_t (*uniform)(const uint32_t upper_bound); /* optional, a default implementation will be used if NULL */ - void (*buf)(void *const buf, const size_t size); /* required */ - int (*close)(void); /* optional */ -} randombytes_implementation; - -#define randombytes_BYTES_MAX SODIUM_MIN (SODIUM_SIZE_MAX, 0xffffffffUL) - -#define randombytes_SEEDBYTES 32U -SODIUM_EXPORT -size_t randombytes_seedbytes (void); - -SODIUM_EXPORT -void randombytes_buf (void *const buf, const size_t size) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -void randombytes_buf_deterministic (void *const buf, const size_t size, - const unsigned char - seed[randombytes_SEEDBYTES]) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -uint32_t randombytes_random (void); - -SODIUM_EXPORT -uint32_t randombytes_uniform (const uint32_t upper_bound); - -SODIUM_EXPORT -void randombytes_stir (void); - -SODIUM_EXPORT -int randombytes_close (void); - -SODIUM_EXPORT -int randombytes_set_implementation (const randombytes_implementation *impl) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -const char *randombytes_implementation_name (void); - -/* -- NaCl compatibility interface -- */ - -SODIUM_EXPORT -void randombytes (unsigned char *const buf, const unsigned long long buf_len) -__attribute__ ((nonnull)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes_internal_random.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes_internal_random.h @@ -1,21 +0,0 @@ -#ifndef randombytes_internal_random_H -#define randombytes_internal_random_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_internal_implementation; - -/* Backwards compatibility with libsodium < 1.0.18 */ -#define randombytes_salsa20_implementation randombytes_internal_implementation - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes_sysrandom.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/randombytes_sysrandom.h @@ -1,18 +0,0 @@ -#ifndef randombytes_sysrandom_H -#define randombytes_sysrandom_H - -#include "export.h" -#include "randombytes.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -extern struct randombytes_implementation randombytes_sysrandom_implementation; - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/runtime.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/runtime.h @@ -1,54 +0,0 @@ -#ifndef sodium_runtime_H -#define sodium_runtime_H - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_neon (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_armcrypto (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_ssse3 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_sse41 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx2 (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_avx512f (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_pclmul (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_aesni (void); - -SODIUM_EXPORT_WEAK -int sodium_runtime_has_rdrand (void); - -/* ------------------------------------------------------------------------- */ - -int _sodium_runtime_get_cpu_features (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/utils.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/utils.h @@ -1,182 +0,0 @@ -#ifndef sodium_utils_H -#define sodium_utils_H - -#include <stddef.h> - -#include "export.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef SODIUM_C99 -# if defined(__cplusplus) || ! defined(__STDC_VERSION__) || __STDC_VERSION__ < \ - 199901L -# define SODIUM_C99(X) -# else -# define SODIUM_C99(X) X -# endif -#endif - -SODIUM_EXPORT -void sodium_memzero (void *const pnt, const size_t len); - -SODIUM_EXPORT -void sodium_stackzero (const size_t len); - -/* - * WARNING: sodium_memcmp() must be used to verify if two secret keys - * are equal, in constant time. - * It returns 0 if the keys are equal, and -1 if they differ. - * This function is not designed for lexicographical comparisons. - */ -SODIUM_EXPORT -int sodium_memcmp (const void *const b1_, const void *const b2_, size_t len) -__attribute__ ((warn_unused_result)); - -/* - * sodium_compare() returns -1 if b1_ < b2_, 1 if b1_ > b2_ and 0 if b1_ == b2_ - * It is suitable for lexicographical comparisons, or to compare nonces - * and counters stored in little-endian format. - * However, it is slower than sodium_memcmp(). - */ -SODIUM_EXPORT -int sodium_compare (const unsigned char *b1_, const unsigned char *b2_, - size_t len) __attribute__ ((warn_unused_result)); - -SODIUM_EXPORT -int sodium_is_zero (const unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_increment (unsigned char *n, const size_t nlen); - -SODIUM_EXPORT -void sodium_add (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -void sodium_sub (unsigned char *a, const unsigned char *b, const size_t len); - -SODIUM_EXPORT -char *sodium_bin2hex (char *const hex, const size_t hex_maxlen, - const unsigned char *const bin, const size_t bin_len) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_hex2bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const hex, const size_t hex_len, - const char *const ignore, size_t *const bin_len, - const char **const hex_end) -__attribute__ ((nonnull(1))); - -#define sodium_base64_VARIANT_ORIGINAL 1 -#define sodium_base64_VARIANT_ORIGINAL_NO_PADDING 3 -#define sodium_base64_VARIANT_URLSAFE 5 -#define sodium_base64_VARIANT_URLSAFE_NO_PADDING 7 - -/* - * Computes the required length to encode BIN_LEN bytes as a base64 string - * using the given variant. The computed length includes a trailing \0. - */ -#define sodium_base64_ENCODED_LEN(BIN_LEN, VARIANT) \ - (((BIN_LEN) / 3U) * 4U \ - + ((((BIN_LEN) -((BIN_LEN) / 3U) * 3U) | (((BIN_LEN) -((BIN_LEN) / 3U) \ - * 3U) >> 1)) & 1U) \ - * (4U - (~((((VARIANT) & 2U) >> 1) - 1U) & (3U - ((BIN_LEN) -((BIN_LEN) \ - / 3U) \ - * 3U)))) + 1U) - -SODIUM_EXPORT -size_t sodium_base64_encoded_len (const size_t bin_len, const int variant); - -SODIUM_EXPORT -char *sodium_bin2base64 (char *const b64, const size_t b64_maxlen, - const unsigned char *const bin, const size_t bin_len, - const int variant) __attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_base642bin (unsigned char *const bin, const size_t bin_maxlen, - const char *const b64, const size_t b64_len, - const char *const ignore, size_t *const bin_len, - const char **const b64_end, const int variant) -__attribute__ ((nonnull(1))); - -SODIUM_EXPORT -int sodium_mlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_munlock (void *const addr, const size_t len) -__attribute__ ((nonnull)); - -/* WARNING: sodium_malloc() and sodium_allocarray() are not general-purpose - * allocation functions. - * - * They return a pointer to a region filled with 0xd0 bytes, immediately - * followed by a guard page. - * As a result, accessing a single byte after the requested allocation size - * will intentionally trigger a segmentation fault. - * - * A canary and an additional guard page placed before the beginning of the - * region may also kill the process if a buffer underflow is detected. - * - * The memory layout is: - * [unprotected region size (read only)][guard page (no access)][unprotected pages (read/write)][guard page (no access)] - * With the layout of the unprotected pages being: - * [optional padding][16-bytes canary][user region] - * - * However: - * - These functions are significantly slower than standard functions - * - Each allocation requires 3 or 4 additional pages - * - The returned address will not be aligned if the allocation size is not - * a multiple of the required alignment. For this reason, these functions - * are designed to store data, such as secret keys and messages. - * - * sodium_malloc() can be used to allocate any libsodium data structure. - * - * The crypto_generichash_state structure is packed and its length is - * either 357 or 361 bytes. For this reason, when using sodium_malloc() to - * allocate a crypto_generichash_state structure, padding must be added in - * order to ensure proper alignment. crypto_generichash_statebytes() - * returns the rounded up structure size, and should be preferred to sizeof(): - * state = sodium_malloc(crypto_generichash_statebytes()); - */ - -SODIUM_EXPORT -void *sodium_malloc (const size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void *sodium_allocarray (size_t count, size_t size) -__attribute__ ((malloc)); - -SODIUM_EXPORT -void sodium_free (void *ptr); - -SODIUM_EXPORT -int sodium_mprotect_noaccess (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readonly (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_mprotect_readwrite (void *ptr) __attribute__ ((nonnull)); - -SODIUM_EXPORT -int sodium_pad (size_t *padded_buflen_p, unsigned char *buf, - size_t unpadded_buflen, size_t blocksize, size_t max_buflen) -__attribute__ ((nonnull(2))); - -SODIUM_EXPORT -int sodium_unpad (size_t *unpadded_buflen_p, const unsigned char *buf, - size_t padded_buflen, size_t blocksize) -__attribute__ ((nonnull(2))); - -/* -------- */ - -int _sodium_alloc_init (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/version.h b/verification-app/app/src/main/cpp/libsodium/x86_64/include/sodium/version.h @@ -1,32 +0,0 @@ -#ifndef sodium_version_H -#define sodium_version_H - -#include "export.h" - -#define SODIUM_VERSION_STRING "1.0.20" - -#define SODIUM_LIBRARY_VERSION_MAJOR 26 -#define SODIUM_LIBRARY_VERSION_MINOR 2 -#define SODIUM_LIBRARY_MINIMAL 1 - -#ifdef __cplusplus -extern "C" { -#endif - -SODIUM_EXPORT -const char *sodium_version_string (void); - -SODIUM_EXPORT -int sodium_library_version_major (void); - -SODIUM_EXPORT -int sodium_library_version_minor (void); - -SODIUM_EXPORT -int sodium_library_minimal (void); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.a b/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.a Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.la b/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.la @@ -1,41 +0,0 @@ -# libsodium.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.7 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='libsodium.so' - -# Names of this library. -library_names='libsodium.so' - -# The name of the static archive. -old_library='libsodium.a' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags=' -pthread' - -# Libraries that this one depends upon. -dependency_libs='' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for libsodium. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=no - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/home/enigma/Downloads/libsodium-stable/libsodium-android-i686/lib' diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.so b/verification-app/app/src/main/cpp/libsodium/x86_64/lib/libsodium.so Binary files differ. diff --git a/verification-app/app/src/main/cpp/libsodium/x86_64/lib/pkgconfig/libsodium.pc b/verification-app/app/src/main/cpp/libsodium/x86_64/lib/pkgconfig/libsodium.pc @@ -1,12 +0,0 @@ -prefix=/home/enigma/Downloads/libsodium-stable/libsodium-android-i686 -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: libsodium -Version: 1.0.20 -Description: A modern and easy-to-use crypto library - -Libs: -L${libdir} -lsodium -Libs.private: -pthread -Cflags: -I${includedir} diff --git a/verification-app/app/src/main/cpp/verification.cpp b/verification-app/app/src/main/cpp/verification.cpp @@ -1,633 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2024 Taler Systems SA - - TALER is free software; you can redistribute it and/or modify it under the - terms of the GNU General Public License as published by the Free Software - Foundation; either version 3, or (at your option) any later version. - - TALER is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along with - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> -*/ - -#include <jni.h> -#include <string> -#include <android/log.h> -#include <sys/endian.h> - -#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, "verification", __VA_ARGS__) - -// needed for libsodium -#include "libsodium/include/sodium/crypto_sign.h" - -/** - * Maximum legal 'value' for an amount, based on IEEE double (for JavaScript compatibility). - */ -#define TALER_AMOUNT_MAX_VALUE (1LLU << 52) - -/** - * Define as empty, GNUNET_PACKED should suffice, but this won't work on W32 - */ -#define GNUNET_NETWORK_STRUCT_BEGIN - -/** - * Define as empty, GNUNET_PACKED should suffice, but this won't work on W32; - */ -#define GNUNET_NETWORK_STRUCT_END - -/** - * gcc-ism to get packed structs. - */ -#define GNUNET_PACKED __attribute__ ((packed)) - -#define TALER_CURRENCY_LEN 12 - -/** - * @brief The "fraction" value in a `struct TALER_Amount` represents which - * fraction of the "main" value? - * - * Note that we need sub-cent precision here as transaction fees might - * be that low, and as we want to support microdonations. - * - * An actual `struct Amount a` thus represents - * "a.value + (a.fraction / #TALER_AMOUNT_FRAC_BASE)" units of "a.currency". - */ -#define TALER_AMOUNT_FRAC_BASE 100000000 - -enum GNUNET_GenericReturnValue -{ - GNUNET_SYSERR = -1, - GNUNET_NO = 0, - GNUNET_OK = 1, - /* intentionally identical to #GNUNET_OK! */ - GNUNET_YES = 1, -}; - -/** - * Public ECC key (always for curve Ed25519) encoded in a format - * suitable for network transmission and EdDSA signatures. Refer - * to section 5.1.3 of rfc8032, for a thorough explanation of how - * this value maps to the x- and y-coordinates. - */ -struct GNUNET_CRYPTO_EddsaPublicKey -{ - /** - * Point Q consists of a y-value mod p (256 bits); the x-value is - * always positive. The point is stored in Ed25519 standard - * compact format. - */ - unsigned char q_y[256 / 8]; -}; - -/** - * @brief an ECC signature using EdDSA. - * See cr.yp.to/papers.html#ed25519 - */ -struct GNUNET_CRYPTO_EddsaSignature -{ - /** - * R value. - */ - unsigned char r[256 / 8]; - - /** - * S value. - */ - unsigned char s[256 / 8]; -}; - -/** - * Regular online message signing key used by Donau. - */ -struct DONAU_DonauPublicKeyP -{ - /** - * Donau uses EdDSA for non-blind signing. - */ - struct GNUNET_CRYPTO_EddsaPublicKey eddsa_pub; - -}; - -/** - * @brief Type of signature used by the donau for non-blind signatures. - */ -struct DONAU_DonauSignatureP -{ - /** - * Donau uses EdDSA for for non-blind signatures. - */ - struct GNUNET_CRYPTO_EddsaSignature eddsa_sig; -}; - -/** - * @brief header of what an ECC signature signs - * this must be followed by "size - 8" bytes of - * the actual signed data - */ -struct GNUNET_CRYPTO_EccSignaturePurpose -{ - /** - * How many bytes does this signature sign? - * (including this purpose header); in network - * byte order (!). - */ - uint32_t size GNUNET_PACKED; - - /** - * What does this signature vouch for? This - * must contain a GNUNET_SIGNATURE_PURPOSE_XXX - * constant (from gnunet_signatures.h). In - * network byte order! - */ - uint32_t purpose GNUNET_PACKED; -}; - -GNUNET_NETWORK_STRUCT_BEGIN - -/** - * @brief Amount, encoded for network transmission. - */ -struct TALER_AmountNBO -{ - /** - * Value in the main currency, in NBO. - */ - uint64_t value GNUNET_PACKED; - - /** - * Fraction (integer multiples of #TALER_AMOUNT_FRAC_BASE), in NBO. - */ - uint32_t fraction GNUNET_PACKED; - - /** - * Type of the currency being represented. Length is 12. - */ - char currency[TALER_CURRENCY_LEN]; -}; - -GNUNET_NETWORK_STRUCT_END - -/** - * @brief Representation of monetary value in a given currency. - */ -struct TALER_Amount -{ - /** - * Value (numerator of fraction) - */ - uint64_t value; - - /** - * Fraction (integer multiples of #TALER_AMOUNT_FRAC_BASE). - */ - uint32_t fraction; - - /** - * Currency string, left adjusted and padded with zeros. All zeros - * for "invalid" values. - */ - char currency[TALER_CURRENCY_LEN]; -}; - -int -TALER_amount_is_valid (const struct TALER_Amount *amount) -{ - if (amount->value > TALER_AMOUNT_MAX_VALUE) - { - return -1; - } - return ('\0' != amount->currency[0]) ? 1 : 0; -} - -uint64_t -GNUNET_htonll (uint64_t n) -{ - return (((uint64_t) htonl (n)) << 32) + htonl (n >> 32); - //return n; -} - -void -TALER_amount_hton (struct TALER_AmountNBO *res, - const struct TALER_Amount *d) -{ - if (1 != TALER_amount_is_valid (d)) { - res = NULL; - return; - } - res->value = GNUNET_htonll (d->value); - res->fraction = htonl (d->fraction); - for (unsigned int i = 0; i<TALER_CURRENCY_LEN; i++) - res->currency[i] = d->currency[i]; -} - -/** - * Set @a a to "invalid". - * - * @param[out] a amount to set to invalid - */ -static void -invalidate (struct TALER_Amount *a) -{ - memset (a, - 0, - sizeof (struct TALER_Amount)); -} - -enum GNUNET_GenericReturnValue -TALER_check_currency (const char *str) -{ - if (strlen (str) >= TALER_CURRENCY_LEN) - { - return GNUNET_SYSERR; - } - /* validate str has only legal characters in it! */ - for (unsigned int i = 0; '\0' != str[i]; i++) - { - if ( ('A' > str[i]) || ('Z' < str[i]) ) - { - return GNUNET_SYSERR; - } - } - return GNUNET_OK; -} - -enum GNUNET_GenericReturnValue -TALER_string_to_amount (const char *str, - struct TALER_Amount *amount) -{ - int n; - uint32_t b; - const char *colon; - const char *value; - - /* skip leading whitespace */ - while (isspace ( (unsigned char) str[0])) - str++; - if ('\0' == str[0]) - { - invalidate (amount); - return GNUNET_SYSERR; - } - - /* parse currency */ - colon = strchr (str, (int) ':'); - if ( (NULL == colon) || - (colon == str) || - ((colon - str) >= TALER_CURRENCY_LEN) ) - { - invalidate (amount); - return GNUNET_SYSERR; - } - - if (TALER_CURRENCY_LEN <= (colon - str)) return GNUNET_SYSERR; - for (unsigned int i = 0; i<colon - str; i++) - amount->currency[i] = str[i]; - /* 0-terminate *and* normalize buffer by setting everything to '\0' */ - memset (&amount->currency [colon - str], - 0, - TALER_CURRENCY_LEN - (colon - str)); - if (GNUNET_OK != - TALER_check_currency (amount->currency)) - return GNUNET_SYSERR; - /* skip colon */ - value = colon + 1; - if ('\0' == value[0]) - { - invalidate (amount); - return GNUNET_SYSERR; - } - - amount->value = 0; - amount->fraction = 0; - - /* parse value */ - while ('.' != *value) - { - if ('\0' == *value) - { - /* we are done */ - return GNUNET_OK; - } - if ( (*value < '0') || - (*value > '9') ) - { - invalidate (amount); - return GNUNET_SYSERR; - } - n = *value - '0'; - if ( (amount->value * 10 < amount->value) || - (amount->value * 10 + n < amount->value) || - (amount->value > TALER_AMOUNT_MAX_VALUE) || - (amount->value * 10 + n > TALER_AMOUNT_MAX_VALUE) ) - { - invalidate (amount); - return GNUNET_SYSERR; - } - amount->value = (amount->value * 10) + n; - value++; - } - - /* skip the dot */ - value++; - - - /* parse fraction */ - if ('\0' == *value) - { - invalidate (amount); - return GNUNET_SYSERR; - } - b = TALER_AMOUNT_FRAC_BASE / 10; - while ('\0' != *value) - { - if (0 == b) - { - invalidate (amount); - return GNUNET_SYSERR; - } - if ( (*value < '0') || - (*value > '9') ) - { - invalidate (amount); - return GNUNET_SYSERR; - } - n = *value - '0'; - amount->fraction += n * b; - b /= 10; - value++; - } - return GNUNET_OK; -} - -enum GNUNET_GenericReturnValue -TALER_string_to_amount_nbo (const char *str, - struct TALER_AmountNBO *amount_nbo) -{ - struct TALER_Amount amount; - - if (GNUNET_OK != - TALER_string_to_amount (str, - &amount)) - return GNUNET_SYSERR; - TALER_amount_hton (amount_nbo, - &amount); - return GNUNET_OK; -} - -/** - * @brief A 512-bit hashcode. These are the default length for GNUnet, using SHA-512. - */ -struct GNUNET_HashCode -{ - uint32_t bits[512 / 8 / sizeof(uint32_t)]; /* = 16 */ -}; - -/** - * Donor's hashed and salted unique donation identifier. - */ -struct DONAU_HashDonorTaxId -{ - unsigned char hash[512/8]; -}; - - -GNUNET_NETWORK_STRUCT_BEGIN - -/** - * @brief Format used to generate the signature/donation statement - * over the total amount and a donor identifier of a year. - */ -struct DONAU_DonationStatementConfirmationPS -{ - /** - * Purpose must be #DONAU_SIGNATURE_DONAU_DONATION_STATEMENT. Signed - * by a `struct DONAU_DonauPublicKeyP` using EdDSA. - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - /** - * Total amount donated of a specific @a year. - */ - struct TALER_AmountNBO amount_tot; - - /** - * The hash of the identifier of the donor. - */ - struct DONAU_HashDonorTaxId i; - - /** - * The corresponding year. - */ - uint32_t year; - -}; - -GNUNET_NETWORK_STRUCT_END - - -/** - * Get the decoded value corresponding to a character according to Crockford - * Base32 encoding. - * - * @param a a character - * @return corresponding numeric value - */ -static unsigned int -getValue__ (unsigned char a) -{ - unsigned int dec; - - switch (a) - { - case 'O': - case 'o': - a = '0'; - break; - - case 'i': - case 'I': - case 'l': - case 'L': - a = '1'; - break; - - /* also consider U to be V */ - case 'u': - case 'U': - a = 'V'; - break; - - default: - break; - } - if ((a >= '0') && (a <= '9')) - return a - '0'; - if ((a >= 'a') && (a <= 'z')) - a = toupper (a); - /* return (a - 'a' + 10); */ - dec = 0; - if ((a >= 'A') && (a <= 'Z')) - { - if ('I' < a) - dec++; - if ('L' < a) - dec++; - if ('O' < a) - dec++; - if ('U' < a) - dec++; - return(a - 'A' + 10 - dec); - } - return -1; -} - -int -GNUNET_STRINGS_string_to_data (const char *enc, - size_t enclen, - void *out, - size_t out_size) -{ - size_t rpos; - size_t wpos; - unsigned int bits; - unsigned int vbit; - int ret; - int shift; - unsigned char *uout; - size_t encoded_len; - - if (0 == enclen) - { - if (0 == out_size) - return 0; - return -1; - } - if (out_size >= SIZE_MAX) return -1; - encoded_len = out_size * 8; - uout = (unsigned char *) out; - wpos = out_size; - rpos = enclen; - if ((encoded_len % 5) > 0) - { - vbit = encoded_len % 5; /* padding! */ - shift = 5 - vbit; - bits = (ret = getValue__ (enc[--rpos])) >> shift; - } - else - { - vbit = 5; - shift = 0; - bits = (ret = getValue__ (enc[--rpos])); - } - if ((encoded_len + shift) / 5 != enclen) - return -1; - if (-1 == ret) - return -1; - while (wpos > 0) - { - if (0 == rpos) - { - return -1; - } - bits = ((ret = getValue__ (enc[--rpos])) << vbit) | bits; - if (-1 == ret) - return -1; - vbit += 5; - if (vbit >= 8) - { - uout[--wpos] = (unsigned char) bits; - bits >>= 8; - vbit -= 8; - } - } - if ((0 != rpos) || (0 != vbit)) - return -1; - return 0; -} - -extern "C" -JNIEXPORT jint JNICALL -Java_taler_donau_verification_Results_ed25519_1verify( - JNIEnv *env, jobject thiz, - jstring year, - jstring totalAmount, - jstring taxId, - jstring taxIdSalt, - jstring signature, - jstring public_key) { - - const char *const year_string = reinterpret_cast<const char *const>(env->GetStringUTFChars( - year, 0)); - const char *const s_str = reinterpret_cast<const char *const>(env->GetStringUTFChars( - signature, 0)); - const char *const pub_str = reinterpret_cast<const char *const>(env->GetStringUTFChars( - public_key, 0)); - const char* total_amount = env->GetStringUTFChars(totalAmount, 0); - const unsigned char* tax_id = reinterpret_cast<const unsigned char*>(env->GetStringUTFChars(taxId, 0)); - const unsigned char* salt = reinterpret_cast<const unsigned char*>(env->GetStringUTFChars(taxIdSalt, 0)); - - unsigned long long donation_year; - char dummy; - if ( (NULL == year_string) || - (1 != sscanf (year_string, - "%llu%c", - &donation_year, - &dummy)) ) - { - return -6; - } - - struct DONAU_DonauPublicKeyP pub; - struct DONAU_DonauSignatureP sig; - struct DONAU_HashDonorTaxId h_donor_tax_id; - - crypto_hash_sha512_state state; - crypto_hash_sha512_init(&state); - - unsigned int tax_length; - for (tax_length = 0; tax_id[tax_length]!= '\0'; ++tax_length); - unsigned int salt_length; - for (salt_length = 0; salt[salt_length]!= '\0'; ++salt_length); - - crypto_hash_sha512_update(&state, tax_id, tax_length); - crypto_hash_sha512_update(&state, salt, salt_length); - - crypto_hash_sha512_final(&state, h_donor_tax_id.hash); - - struct DONAU_DonationStatementConfirmationPS confirm = { - .purpose.purpose = htonl (1500), - .purpose.size = htonl (sizeof (confirm)), - .year = htonl (donation_year), - .i = h_donor_tax_id - }; - if (GNUNET_OK != TALER_string_to_amount_nbo (total_amount, - &confirm.amount_tot)) { - return -3; - } - if (0 != - GNUNET_STRINGS_string_to_data (s_str, - strlen (s_str), - &sig, - sizeof (sig))) - { - return -4; - } - if (0 != - GNUNET_STRINGS_string_to_data (pub_str, - strlen (pub_str), - &pub, - sizeof (pub))) - { - return -5; - } - size_t mlen = ntohl (confirm.purpose.size); - const unsigned char *m = (const unsigned char *) &confirm.purpose; - const unsigned char *s = (const unsigned char *) &sig.eddsa_sig; - const unsigned char *eddsa_pub = (const unsigned char*) &pub.eddsa_pub.q_y; - //verify function from libsodium (also used by GNUNET) - return crypto_sign_verify_detached (s, m, mlen, eddsa_pub); -} -\ No newline at end of file diff --git a/verification-app/app/src/main/ic_launcher-playstore.png b/verification-app/app/src/main/ic_launcher-playstore.png Binary files differ. diff --git a/verification-app/app/src/main/java/taler/donau/verification/MainActivity.java b/verification-app/app/src/main/java/taler/donau/verification/MainActivity.java @@ -1,158 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2024 Taler Systems SA - - TALER is free software; you can redistribute it and/or modify it under the - terms of the GNU General Public License as published by the Free Software - Foundation; either version 3, or (at your option) any later version. - - TALER is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along with - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> -*/ - -package taler.donau.verification; - -import static androidx.core.content.PermissionChecker.PERMISSION_GRANTED; - -import android.Manifest; -import android.app.AlertDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.os.Bundle; -import android.widget.Toast; - -import com.budiyev.android.codescanner.CodeScanner; -import com.budiyev.android.codescanner.CodeScannerView; -import com.budiyev.android.codescanner.DecodeCallback; -import com.google.zxing.Result; - -import androidx.annotation.NonNull; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.app.ActivityCompat; -import androidx.core.content.ContextCompat; - -import taler.donau.verification.databinding.ActivityMainBinding; - -public class MainActivity extends AppCompatActivity { - private int PERMISSIONS_REQUEST_CAMERA = 0; - private ActivityMainBinding binding; - private CodeScanner mCodeScanner; - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - binding = ActivityMainBinding.inflate(getLayoutInflater()); - setContentView(binding.getRoot()); - - //Check if CAMERA permission is granted - if (ContextCompat.checkSelfPermission(this, "android.permission.CAMERA") == PERMISSION_GRANTED) { - } else { - askPermission(); - } - CodeScannerView scannerView = binding.scannerView; - mCodeScanner = new CodeScanner(this, scannerView); - mCodeScanner.setDecodeCallback(new DecodeCallback() { - @Override - public void onDecoded(@NonNull final Result result) { - runOnUiThread(new Runnable() { - @Override - public void run() { - sendRequestDialog(result.getText()); - } - }); - } - }); - //temporary for debugging - sendRequestDialog("donau://2024/EUR:15/7560001010000/1234/SAAM5BA1F9H4VT6T78CFC3X63HAMY2TXB597XBVZ0EMXEZ90QPJ3000BXDBJ3ECHGB8AEX9FFQ5BAXVSF6X6NXM98PY353F2R99PP1R/E24CDJHGSPZG20ZSSTMTBREGCCP495WKETQYCYA9C93EPMZN4FEG"); - - } - - @Override - public void onResume() { - super.onResume(); - mCodeScanner.startPreview(); - } - - @Override - public void onPause() { - mCodeScanner.releaseResources(); - super.onPause(); - } - - @Override - public void onDestroy() { - super.onDestroy(); - binding = null; - } - /** - * Asks user if app should proceed - * @param qrstring - */ - private void sendRequestDialog(String qrstring) { - DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - switch (which) { - case DialogInterface.BUTTON_POSITIVE: - //Yes button clicked - Intent intent = new Intent(getApplicationContext(), Results.class); - intent.putExtra("QR-String", qrstring); - startActivity(intent); - break; - - case DialogInterface.BUTTON_NEGATIVE: - //No button clicked - mCodeScanner.releaseResources(); - mCodeScanner.startPreview(); - break; - default: - throw new IllegalStateException("Unexpected value: " + which); - } - } - }; - AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setMessage("QR scanned: '" + qrstring + "'\nWould you like to proceed?").setPositiveButton("Yes", dialogClickListener) - .setNegativeButton("No", dialogClickListener).show(); - } - - /** - * Ask user to get camera permissions - * Handles permission lifecycle - */ - private void askPermission() { - - //Checks if a RequestPermissionRationale should be shown - if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.CAMERA)) { - - AlertDialog.Builder alert = new AlertDialog.Builder(getApplicationContext()); - alert.setTitle("Please grant camera permission"); - alert.setMessage("This APP needs the camera permission to scan QR codes."); - alert.setNeutralButton("OK", new DialogInterface.OnClickListener() { - public void onClick(DialogInterface dialog, int id) { - checkPermission("android.permission.CAMERA", PERMISSIONS_REQUEST_CAMERA); - } - }); - alert.setIcon(android.R.drawable.ic_dialog_alert); - alert.show(); - } else { - //A permission request should be performed - checkPermission("android.permission.CAMERA", PERMISSIONS_REQUEST_CAMERA); - } - } - - private void checkPermission(String permission, int requestCode) { - if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) { - ActivityCompat.requestPermissions(this, new String[] {permission}, requestCode); - } else { - Toast.makeText(this, "Permission already granted", Toast.LENGTH_SHORT).show(); - } - } - -} -\ No newline at end of file diff --git a/verification-app/app/src/main/java/taler/donau/verification/Results.java b/verification-app/app/src/main/java/taler/donau/verification/Results.java @@ -1,171 +0,0 @@ -/* - This file is part of TALER - Copyright (C) 2024 Taler Systems SA - - TALER is free software; you can redistribute it and/or modify it under the - terms of the GNU General Public License as published by the Free Software - Foundation; either version 3, or (at your option) any later version. - - TALER is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along with - TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> -*/ - -package taler.donau.verification; - -import android.annotation.SuppressLint; -import android.content.Intent; -import android.net.Uri; -import android.os.Bundle; -import android.view.View; -import android.widget.TableLayout; -import android.widget.TextView; - - -import androidx.appcompat.app.AppCompatActivity; - -import java.io.ByteArrayOutputStream; -import java.math.BigInteger; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.List; - -public class Results extends AppCompatActivity { - static { - System.loadLibrary("verification"); - } - - // QR-string : YEAR/TOTALAMOUNT/TAXID/TAXIDSALT/ED25519SIGNATURE/PUBKEY - // CrockfordBase32 encoded: SIGNATURE, PUBLICKEY - // TODO: Salt and taxId should maybe also be encoded - - private final int NUMBER_OF_ARGUMENTS = 6; - private String year; - private String totalAmount; - private String taxId; - private String salt; - private String eddsaSignature; - private String publicKey; - TextView sigStatusView; - TextView yearView; - TextView taxidView; - TextView totalView; - TableLayout tableLayout; - - public enum SignatureStatus { - INVALID_SCHEME, - INVALID_NUMBER_OF_ARGUMENTS, - MALFORMED_ARGUMENT, - SIGNATURE_INVALID, - SIGNATURE_VALID; - } - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.fragment_results); - sigStatusView = findViewById(R.id.sigStatus); - yearView = findViewById(R.id.year); - taxidView = findViewById(R.id.taxid); - totalView = findViewById(R.id.total); - tableLayout = findViewById(R.id.tableLayout); - tableLayout.setVisibility(View.INVISIBLE); - - Intent intent = getIntent(); - String scheme[]; - // handle URI scheme - if (null != intent.getData()) { - scheme = new String[2]; - Uri uri = intent.getData(); - List<String> pathSegments = uri.getPathSegments(); - StringBuilder fullPath = new StringBuilder(); - fullPath.append(uri.getHost()); - for (String segment : pathSegments) { - fullPath.append("/").append(segment); - } - scheme[1] = fullPath.toString(); - // handle self scanned QR code - } else { - scheme = intent.getStringExtra("QR-String").split("//"); - if (scheme == null || scheme.length != 2 || !scheme[0].equals("donau:")) { - statusHandling(SignatureStatus.INVALID_SCHEME); - return; - } - } - String[] parts = scheme[1].split("/"); - if (parts == null || parts.length != NUMBER_OF_ARGUMENTS) { - statusHandling(SignatureStatus.INVALID_NUMBER_OF_ARGUMENTS); - return; - } - - try { - year = parts[0]; - totalAmount = parts[1]; - taxId = parts[2]; - salt = parts[3]; - eddsaSignature = parts[4]; - publicKey = parts[5]; - } catch (Exception e) { - statusHandling(SignatureStatus.MALFORMED_ARGUMENT); - return; - } - - try { - checkSignature(); - } catch (Exception e) { - throw new RuntimeException(e); - } - - } - - private void checkSignature() throws Exception{ - - int res = ed25519_verify(year, totalAmount, taxId, - salt, eddsaSignature, publicKey); - System.out.println("Result: " + res); - if (res == 0) { - statusHandling(SignatureStatus.SIGNATURE_VALID); - } else { - statusHandling(SignatureStatus.SIGNATURE_INVALID); - } - } - - private void statusHandling(SignatureStatus es) { - View rootView = findViewById(R.id.root_view); - switch (es) { - case INVALID_SCHEME: - sigStatusView.setText(R.string.invalid_scheme); - rootView.setBackgroundResource(R.color.red); - break; - case INVALID_NUMBER_OF_ARGUMENTS: - sigStatusView.setText(R.string.invalid_number_of_arguments); - rootView.setBackgroundResource(R.color.red); - break; - case MALFORMED_ARGUMENT: - sigStatusView.setText(R.string.malformed_argument); - rootView.setBackgroundResource(R.color.red); - break; - case SIGNATURE_INVALID: - sigStatusView.setText(R.string.invalid_signature); - rootView.setBackgroundResource(R.color.red); - break; - case SIGNATURE_VALID: - tableLayout.setVisibility(View.VISIBLE); - sigStatusView.setText(R.string.valid_signature); - yearView.setText(year); - taxidView.setText(taxId); - totalView.setText(totalAmount); - rootView.setBackgroundResource(R.color.green); - break; - } - } - - public native int ed25519_verify(String year, String totalAmount, - String taxId, String salt, - String eddsaSignature, String publicKey); -} - diff --git a/verification-app/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/verification-app/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -1,30 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:aapt="http://schemas.android.com/aapt" - android:width="108dp" - android:height="108dp" - android:viewportWidth="108" - android:viewportHeight="108"> - <path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"> - <aapt:attr name="android:fillColor"> - <gradient - android:endX="85.84757" - android:endY="92.4963" - android:startX="42.9492" - android:startY="49.59793" - android:type="linear"> - <item - android:color="#44000000" - android:offset="0.0" /> - <item - android:color="#00000000" - android:offset="1.0" /> - </gradient> - </aapt:attr> - </path> - <path - android:fillColor="#FFFFFF" - android:fillType="nonZero" - android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z" - android:strokeWidth="1" - android:strokeColor="#00000000" /> -</vector> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/drawable/barcode.png b/verification-app/app/src/main/res/drawable/barcode.png Binary files differ. diff --git a/verification-app/app/src/main/res/drawable/ic_dashboard_black_24dp.xml b/verification-app/app/src/main/res/drawable/ic_dashboard_black_24dp.xml @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> - <path - android:fillColor="#FF000000" - android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" /> -</vector> diff --git a/verification-app/app/src/main/res/drawable/ic_home_black_24dp.xml b/verification-app/app/src/main/res/drawable/ic_home_black_24dp.xml @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> - <path - android:fillColor="#FF000000" - android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" /> -</vector> diff --git a/verification-app/app/src/main/res/drawable/ic_launcher_background.xml b/verification-app/app/src/main/res/drawable/ic_launcher_background.xml @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector - android:height="108dp" - android:width="108dp" - android:viewportHeight="108" - android:viewportWidth="108" - xmlns:android="http://schemas.android.com/apk/res/android"> - <path android:fillColor="#3DDC84" - android:pathData="M0,0h108v108h-108z"/> - <path android:fillColor="#00000000" android:pathData="M9,0L9,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,0L19,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M29,0L29,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M39,0L39,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M49,0L49,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M59,0L59,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M69,0L69,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M79,0L79,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M89,0L89,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M99,0L99,108" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,9L108,9" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,19L108,19" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,29L108,29" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,39L108,39" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,49L108,49" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,59L108,59" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,69L108,69" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,79L108,79" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,89L108,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M0,99L108,99" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,29L89,29" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,39L89,39" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,49L89,49" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,59L89,59" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,69L89,69" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M19,79L89,79" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M29,19L29,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M39,19L39,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M49,19L49,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M59,19L59,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M69,19L69,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> - <path android:fillColor="#00000000" android:pathData="M79,19L79,89" - android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> -</vector> diff --git a/verification-app/app/src/main/res/drawable/ic_notifications_black_24dp.xml b/verification-app/app/src/main/res/drawable/ic_notifications_black_24dp.xml @@ -1,9 +0,0 @@ -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24.0" - android:viewportHeight="24.0"> - <path - android:fillColor="#FF000000" - android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" /> -</vector> diff --git a/verification-app/app/src/main/res/drawable/ngi_taler_logo.png b/verification-app/app/src/main/res/drawable/ngi_taler_logo.png Binary files differ. diff --git a/verification-app/app/src/main/res/layout/activity_main.xml b/verification-app/app/src/main/res/layout/activity_main.xml @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/container" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:paddingTop="?attr/actionBarSize"> - - - <com.budiyev.android.codescanner.CodeScannerView - android:id="@+id/scanner_view" - android:layout_width="match_parent" - android:layout_height="match_parent"/> - -</androidx.constraintlayout.widget.ConstraintLayout> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/layout/fragment_results.xml b/verification-app/app/src/main/res/layout/fragment_results.xml @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" -android:id="@+id/root_view" -xmlns:tools="http://schemas.android.com/tools" -android:layout_width="match_parent" -android:layout_height="match_parent" -android:paddingStart="10dp" -android:paddingEnd="10dp" -android:orientation="vertical" -tools:context=".MainActivity"> - -<ImageView - android:id="@+id/image" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:maxWidth="200dp" - android:adjustViewBounds="true" - android:paddingBottom="30dp" - android:src="@drawable/ngi_taler_logo" - android:contentDescription="@string/NGI_TALER_logo" /> - -<TableLayout - android:id="@+id/tableLayout" - android:layout_below="@+id/image" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:stretchColumns="1"> - - <!-- Row 1 --> - <TableRow - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="8dp" - android:textStyle="bold" - android:text="Year: " - android:textSize="18sp" /> - - <TextView - android:id="@+id/year" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="8dp" - android:textSize="18sp" /> - </TableRow> - - <!-- Row 2 --> - <TableRow - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="8dp" - android:textStyle="bold" - android:text="Tax Id: " - android:textSize="18sp" /> - - <TextView - android:id="@+id/taxid" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="8dp" - android:textSize="18sp" /> - </TableRow> - - <!-- Row 3 --> - <TableRow - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="8dp" - android:textStyle="bold" - android:text="Total Amount: " - android:textSize="18sp" /> - - <TextView - android:id="@+id/total" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:padding="8dp" - android:textSize="18sp" /> - </TableRow> - -</TableLayout> - -<TextView - android:id="@+id/sigStatus" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textSize="20sp" - android:layout_centerInParent="true"/> -</RelativeLayout> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/verification-app/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> - <background android:drawable="@color/ic_launcher_background"/> - <foreground android:drawable="@mipmap/ic_launcher_foreground"/> -</adaptive-icon> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/verification-app/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> - <background android:drawable="@color/ic_launcher_background"/> - <foreground android:drawable="@mipmap/ic_launcher_foreground"/> -</adaptive-icon> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp b/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/verification-app/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp b/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/verification-app/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp b/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/verification-app/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp b/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/verification-app/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp b/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp Binary files differ. diff --git a/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/verification-app/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp Binary files differ. diff --git a/verification-app/app/src/main/res/values-night/themes.xml b/verification-app/app/src/main/res/values-night/themes.xml @@ -1,16 +0,0 @@ -<resources xmlns:tools="http://schemas.android.com/tools"> - <!-- Base application theme. --> - <style name="Theme.Verifaction" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> - <!-- Primary brand color. --> - <item name="colorPrimary">@color/purple_200</item> - <item name="colorPrimaryVariant">@color/purple_700</item> - <item name="colorOnPrimary">@color/black</item> - <!-- Secondary brand color. --> - <item name="colorSecondary">@color/teal_200</item> - <item name="colorSecondaryVariant">@color/teal_200</item> - <item name="colorOnSecondary">@color/black</item> - <!-- Status bar color. --> - <item name="android:statusBarColor">?attr/colorPrimaryVariant</item> - <!-- Customize your theme here. --> - </style> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/values/colors.xml b/verification-app/app/src/main/res/values/colors.xml @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <color name="purple_200">#FFBB86FC</color> - <color name="purple_500">#FF6200EE</color> - <color name="purple_700">#FF3700B3</color> - <color name="teal_200">#FF03DAC5</color> - <color name="teal_700">#FF018786</color> - <color name="black">#FF000000</color> - <color name="white">#FFFFFFFF</color> - <color name="red">#870C0C</color> - <color name="green">#045F06</color> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/values/dimens.xml b/verification-app/app/src/main/res/values/dimens.xml @@ -1,5 +0,0 @@ -<resources> - <!-- Default screen margins, per the Android Design guidelines. --> - <dimen name="activity_horizontal_margin">16dp</dimen> - <dimen name="activity_vertical_margin">16dp</dimen> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/values/ic_launcher_background.xml b/verification-app/app/src/main/res/values/ic_launcher_background.xml @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<resources> - <color name="ic_launcher_background">#FFFFFF</color> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/values/strings.xml b/verification-app/app/src/main/res/values/strings.xml @@ -1,10 +0,0 @@ -<resources> - <string name="app_name">Donau Verify</string> - <string name="NGI_TALER_logo" >NGI Taler Logo</string> - <string name="with_adapter">List</string> - <string name="invalid_number_of_arguments">Invalid number of arguments!</string> - <string name="malformed_argument">Malformed argument!</string> - <string name="invalid_signature">Donation statement signature is invalid!</string> - <string name="valid_signature">Donation statement signature is valid!</string> - <string name="invalid_scheme">Invalid scheme!</string> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/values/themes.xml b/verification-app/app/src/main/res/values/themes.xml @@ -1,16 +0,0 @@ -<resources xmlns:tools="http://schemas.android.com/tools"> - <!-- Base application theme. --> - <style name="Theme.Verifaction" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> - <!-- Primary brand color. --> - <item name="colorPrimary">@color/purple_500</item> - <item name="colorPrimaryVariant">@color/purple_700</item> - <item name="colorOnPrimary">@color/white</item> - <!-- Secondary brand color. --> - <item name="colorSecondary">@color/teal_200</item> - <item name="colorSecondaryVariant">@color/teal_700</item> - <item name="colorOnSecondary">@color/black</item> - <!-- Status bar color. --> - <item name="android:statusBarColor">?attr/colorPrimaryVariant</item> - <!-- Customize your theme here. --> - </style> -</resources> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/xml/backup_rules.xml b/verification-app/app/src/main/res/xml/backup_rules.xml @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><!-- - Sample backup rules file; uncomment and customize as necessary. - See https://developer.android.com/guide/topics/data/autobackup - for details. - Note: This file is ignored for devices older that API 31 - See https://developer.android.com/about/versions/12/backup-restore ---> -<full-backup-content> - <!-- - <include domain="sharedpref" path="."/> - <exclude domain="sharedpref" path="device.xml"/> ---> -</full-backup-content> -\ No newline at end of file diff --git a/verification-app/app/src/main/res/xml/data_extraction_rules.xml b/verification-app/app/src/main/res/xml/data_extraction_rules.xml @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?><!-- - Sample data extraction rules file; uncomment and customize as necessary. - See https://developer.android.com/about/versions/12/backup-restore#xml-changes - for details. ---> -<data-extraction-rules> - <cloud-backup> - <!-- TODO: Use <include> and <exclude> to control what is backed up. - <include .../> - <exclude .../> - --> - </cloud-backup> - <!-- - <device-transfer> - <include .../> - <exclude .../> - </device-transfer> - --> -</data-extraction-rules> -\ No newline at end of file diff --git a/verification-app/app/src/test/java/taler/donau/verification/ExampleUnitTest.java b/verification-app/app/src/test/java/taler/donau/verification/ExampleUnitTest.java @@ -1,17 +0,0 @@ -package ch.bfh.verification; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Example local unit test, which will execute on the development machine (host). - * - * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() { - assertEquals(4, 2 + 2); - } -} -\ No newline at end of file diff --git a/verification-app/build.gradle b/verification-app/build.gradle @@ -1,5 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -plugins { - id 'com.android.application' version '7.4.1' apply false - id 'com.android.library' version '7.4.1' apply false -} -\ No newline at end of file diff --git a/verification-app/gradle.properties b/verification-app/gradle.properties @@ -1,23 +0,0 @@ -# Project-wide Gradle settings. -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true -# AndroidX package structure to make it clearer which packages are bundled with the -# Android operating system, and which are packaged with your app's APK -# https://developer.android.com/topic/libraries/support-library/androidx-rn -android.useAndroidX=true -# Enables namespacing of each library's R class so that its R class includes only the -# resources declared in the library itself and none from the library's dependencies, -# thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true - -android.suppressUnsupportedCompileSdk=34 -\ No newline at end of file diff --git a/verification-app/gradle/wrapper/gradle-wrapper.jar b/verification-app/gradle/wrapper/gradle-wrapper.jar Binary files differ. diff --git a/verification-app/gradle/wrapper/gradle-wrapper.properties b/verification-app/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +0,0 @@ -#Mon Nov 13 15:34:56 CET 2023 -distributionBase=GRADLE_USER_HOME -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip -distributionPath=wrapper/dists -zipStorePath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME diff --git a/verification-app/gradlew b/verification-app/gradlew @@ -1,185 +0,0 @@ -#!/usr/bin/env sh - -# -# Copyright 2015 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=`expr $i + 1` - done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -exec "$JAVACMD" "$@" diff --git a/verification-app/gradlew.bat b/verification-app/gradlew.bat @@ -1,89 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/verification-app/invalid-qr.png b/verification-app/invalid-qr.png Binary files differ. diff --git a/verification-app/settings.gradle b/verification-app/settings.gradle @@ -1,18 +0,0 @@ -pluginManagement { - repositories { - google() - mavenCentral() - gradlePluginPortal() - } -} -dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) - repositories { - google() - mavenCentral() - maven { url 'https://jitpack.io' } - } -} - -rootProject.name = "Donau-Verification" -include ':app' diff --git a/verification-app/valid-qr.png b/verification-app/valid-qr.png Binary files differ.