anastasis

Credential backup and recovery protocol and service
Log | Files | Refs | Submodules | README | LICENSE

commit 3535bfa026eb44392c8a5f1abdc348f6f6ffe6ff
parent 370de45652f9b3cf88d1ffd053d32af48e07b12e
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Tue, 16 Jun 2026 16:45:44 +0200

convert to new gnunet random API

Diffstat:
Mflake.lock | 278++++++++++++++++++++++++++++++++++++++++----------------------------------------
Mflake.nix | 10+++++-----
Msrc/backend/anastasis-httpd_policy-upload.c | 10+++-------
Msrc/backend/anastasis-httpd_truth-challenge.c | 3+--
Msrc/backend/anastasis-httpd_truth-solve.c | 3+--
Msrc/lib/anastasis_backup.c | 15+++++----------
Msrc/stasis/test_anastasis_db.c | 7+++----
Msrc/testing/testing_api_cmd_truth_store.c | 8++------
Msrc/util/anastasis-crypto-tvg.c | 3+--
Msrc/util/anastasis_crypto.c | 21+++++++--------------
Msrc/util/test_anastasis_crypto.c | 12++++--------
11 files changed, 171 insertions(+), 199 deletions(-)

diff --git a/flake.lock b/flake.lock @@ -8,17 +8,17 @@ "systems": "systems_4" }, "locked": { - "lastModified": 1776068074, - "narHash": "sha256-/UG1yoOAak34+mZ/fTB8+/FMMEaj4enPn+IxOV8R/4A=", + "lastModified": 1781619243, + "narHash": "sha256-4R/1IBmvL91RsiulzQE5OlFdkhCDAwil9Y9YRv6OCzE=", "ref": "refs/heads/master", - "rev": "4f609168fe263891f134eff01f86288066acdd81", - "revCount": 1050, + "rev": "014bf263a4f4631cfbab6486a3af069524e98ec6", + "revCount": 1089, "submodules": true, "type": "git", "url": "https://git.gnunet.org/donau" }, "original": { - "rev": "4f609168fe263891f134eff01f86288066acdd81", + "rev": "014bf263a4f4631cfbab6486a3af069524e98ec6", "type": "git", "url": "https://git.gnunet.org/donau" } @@ -31,17 +31,17 @@ "systems": "systems_11" }, "locked": { - "lastModified": 1776068074, - "narHash": "sha256-/UG1yoOAak34+mZ/fTB8+/FMMEaj4enPn+IxOV8R/4A=", + "lastModified": 1781619243, + "narHash": "sha256-4R/1IBmvL91RsiulzQE5OlFdkhCDAwil9Y9YRv6OCzE=", "ref": "refs/heads/master", - "rev": "4f609168fe263891f134eff01f86288066acdd81", - "revCount": 1050, + "rev": "014bf263a4f4631cfbab6486a3af069524e98ec6", + "revCount": 1089, "submodules": true, "type": "git", "url": "https://git.gnunet.org/donau" }, "original": { - "rev": "4f609168fe263891f134eff01f86288066acdd81", + "rev": "014bf263a4f4631cfbab6486a3af069524e98ec6", "type": "git", "url": "https://git.gnunet.org/donau" } @@ -53,17 +53,17 @@ "systems": "systems_2" }, "locked": { - "lastModified": 1776020637, - "narHash": "sha256-U/KHaAaE/JrlS3RYbRRiRRe0ur2JACkKysevCrzCXYY=", + "lastModified": 1781618942, + "narHash": "sha256-yRKtW+Q8nZtnBB4L5ewOT9dFaMFOofUNoNidgsyI9AU=", "ref": "refs/heads/master", - "rev": "1b474b461597d11382e4e036520259a96f254e9b", - "revCount": 9931, + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", + "revCount": 10032, "submodules": true, "type": "git", "url": "https://git.gnunet.org/exchange" }, "original": { - "rev": "1b474b461597d11382e4e036520259a96f254e9b", + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", "type": "git", "url": "https://git.gnunet.org/exchange" } @@ -75,17 +75,17 @@ "systems": "systems_6" }, "locked": { - "lastModified": 1776021477, - "narHash": "sha256-V6qYPCNgaalQi6tRkDZ+Per3PPifm1Ze2pShV6LGomg=", + "lastModified": 1781618942, + "narHash": "sha256-yRKtW+Q8nZtnBB4L5ewOT9dFaMFOofUNoNidgsyI9AU=", "ref": "refs/heads/master", - "rev": "92da4e81006404494f6443781c8f55249e723847", - "revCount": 9932, + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", + "revCount": 10032, "submodules": true, "type": "git", "url": "https://git.gnunet.org/exchange" }, "original": { - "rev": "92da4e81006404494f6443781c8f55249e723847", + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", "type": "git", "url": "https://git.gnunet.org/exchange" } @@ -97,17 +97,17 @@ "systems": "systems_9" }, "locked": { - "lastModified": 1776020637, - "narHash": "sha256-U/KHaAaE/JrlS3RYbRRiRRe0ur2JACkKysevCrzCXYY=", + "lastModified": 1781618942, + "narHash": "sha256-yRKtW+Q8nZtnBB4L5ewOT9dFaMFOofUNoNidgsyI9AU=", "ref": "refs/heads/master", - "rev": "1b474b461597d11382e4e036520259a96f254e9b", - "revCount": 9931, + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", + "revCount": 10032, "submodules": true, "type": "git", "url": "https://git.gnunet.org/exchange" }, "original": { - "rev": "1b474b461597d11382e4e036520259a96f254e9b", + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", "type": "git", "url": "https://git.gnunet.org/exchange" } @@ -119,17 +119,17 @@ "systems": "systems_13" }, "locked": { - "lastModified": 1776021477, - "narHash": "sha256-V6qYPCNgaalQi6tRkDZ+Per3PPifm1Ze2pShV6LGomg=", + "lastModified": 1781618942, + "narHash": "sha256-yRKtW+Q8nZtnBB4L5ewOT9dFaMFOofUNoNidgsyI9AU=", "ref": "refs/heads/master", - "rev": "92da4e81006404494f6443781c8f55249e723847", - "revCount": 9932, + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", + "revCount": 10032, "submodules": true, "type": "git", "url": "https://git.gnunet.org/exchange" }, "original": { - "rev": "92da4e81006404494f6443781c8f55249e723847", + "rev": "b542c0c40c30e1ddd9b0528e913cceed8eef9c56", "type": "git", "url": "https://git.gnunet.org/exchange" } @@ -140,17 +140,17 @@ "systems": "systems" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -161,17 +161,17 @@ "systems": "systems_3" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -182,17 +182,17 @@ "systems": "systems_5" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -203,17 +203,17 @@ "systems": "systems_7" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -224,17 +224,17 @@ "systems": "systems_8" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -245,17 +245,17 @@ "systems": "systems_10" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -266,17 +266,17 @@ "systems": "systems_12" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -287,17 +287,17 @@ "systems": "systems_14" }, "locked": { - "lastModified": 1774899416, - "narHash": "sha256-YcGma1gX/t76xDv9DW71nKkWFhzXYz3NkN/WEceHbZM=", + "lastModified": 1781611204, + "narHash": "sha256-4uCu+3Cdi1ck9J7LT72INcrm3coIkP7Gh9k0COAr91g=", "ref": "refs/heads/master", - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", - "revCount": 33194, + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", + "revCount": 33248, "submodules": true, "type": "git", "url": "https://git.gnunet.org/gnunet" }, "original": { - "rev": "7c6b613e37e301b0e81fb94af5878d00c98e5b75", + "rev": "e8e7504b7ab43f7dffa25f273ff228069d8d6dd4", "type": "git", "url": "https://git.gnunet.org/gnunet" } @@ -311,258 +311,258 @@ "systems": "systems_15" }, "locked": { - "lastModified": 1776070816, - "narHash": "sha256-R+a90LanaprK2S4XzUXyW5tAUXOf+pVD7ljCfvulgAM=", + "lastModified": 1781620908, + "narHash": "sha256-hCX9p/OmHXiYkdgHlOv+W/L9HKUmV89Ls5cNsmrABD4=", "ref": "refs/heads/master", - "rev": "b174138726171601b666fff346762502be5150a1", - "revCount": 5567, + "rev": "8ca128478cf6dd8524572bf4fb344abde24ea34e", + "revCount": 5689, "submodules": true, "type": "git", "url": "https://git.gnunet.org/merchant" }, "original": { - "rev": "b174138726171601b666fff346762502be5150a1", + "rev": "8ca128478cf6dd8524572bf4fb344abde24ea34e", "type": "git", "url": "https://git.gnunet.org/merchant" } }, "nixpkgs": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_10": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_11": { "locked": { - "lastModified": 1775825553, - "narHash": "sha256-LH0FGBWngFpvqXYfN1eks+L5n3aXy1ALTTRRhxP0HGA=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ca62ee54d15571e3122309abb6740578906bcdf7", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_12": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_13": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_14": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_15": { "locked": { - "lastModified": 1775730577, - "narHash": "sha256-5i3MKmxBFQP9/wp3QyFWyS7DqURq/M4T8gr1JSbyygI=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0d5a853f7004a5fc57b61a97ccb02832f8e7ed9d", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_16": { "locked": { - "lastModified": 1776360938, - "narHash": "sha256-Tq/T/Us82tBQIRuyuZyWR1EMVJ0EStmk/u8qQgsKlVM=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "67664cad2361605c8fce9712d9ce6a8e026d2380", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_2": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_3": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_4": { "locked": { - "lastModified": 1775825553, - "narHash": "sha256-LH0FGBWngFpvqXYfN1eks+L5n3aXy1ALTTRRhxP0HGA=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ca62ee54d15571e3122309abb6740578906bcdf7", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_5": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_6": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_7": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_8": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1780734595, + "narHash": "sha256-DmTfP92QFYRLOGXlMIE54MAgxSJjDWocl3gRNOu72Os=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "9b696460ac78b5ccfc17c854d8c976f20456e943", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, "nixpkgs_9": { "locked": { - "lastModified": 1774799055, - "narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=", + "lastModified": 1781616846, + "narHash": "sha256-pujkSXZ/LvNu0sObeK09KfS0lV/YoeWKZ5hwuY265Cs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a", + "rev": "1d92060175b76bf5b7d8a1d5d1d924e31ef76ff8", "type": "github" }, "original": { "id": "nixpkgs", - "ref": "release-25.11", + "ref": "release-26.05", "type": "indirect" } }, diff --git a/flake.nix b/flake.nix @@ -21,12 +21,12 @@ { inputs = { - nixpkgs.url = "nixpkgs/release-25.11"; + nixpkgs.url = "nixpkgs/release-26.05"; systems.url = "github:nix-systems/default"; - gnunet.url = "git+https://git.gnunet.org/gnunet?rev=7c6b613e37e301b0e81fb94af5878d00c98e5b75"; - exchange.url = "git+https://git.gnunet.org/exchange?rev=92da4e81006404494f6443781c8f55249e723847"; - merchant.url = "git+https://git.gnunet.org/merchant?rev=b174138726171601b666fff346762502be5150a1"; - donau.url = "git+https://git.gnunet.org/donau?rev=4f609168fe263891f134eff01f86288066acdd81"; + gnunet.url = "git+https://git.gnunet.org/gnunet?rev=e8e7504b7ab43f7dffa25f273ff228069d8d6dd4"; + exchange.url = "git+https://git.gnunet.org/exchange?rev=b542c0c40c30e1ddd9b0528e913cceed8eef9c56"; + merchant.url = "git+https://git.gnunet.org/merchant?rev=8ca128478cf6dd8524572bf4fb344abde24ea34e"; + donau.url = "git+https://git.gnunet.org/donau?rev=014bf263a4f4631cfbab6486a3af069524e98ec6"; self.submodules = true; }; diff --git a/src/backend/anastasis-httpd_policy-upload.c b/src/backend/anastasis-httpd_policy-upload.c @@ -644,7 +644,6 @@ prepare_payment (struct PolicyUploadContext *puc) if (! puc->payment_identifier_provided) { GNUNET_CRYPTO_random_block ( - GNUNET_CRYPTO_QUALITY_NONCE, &puc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); puc->payment_identifier_provided = true; @@ -907,8 +906,7 @@ AH_handler_policy_post ( struct GNUNET_TIME_Relative rel; /* generate fresh payment identifier */ - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &puc->payment_identifier, + GNUNET_CRYPTO_random_block (&puc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); if (! TALER_amount_is_zero (&AH_annual_fee)) { @@ -1133,8 +1131,7 @@ AH_handler_policy_post ( "Storage request limit exceeded, requesting payment\n"); if (! puc->payment_identifier_provided) { - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &puc->payment_identifier, + GNUNET_CRYPTO_random_block (&puc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); puc->payment_identifier_provided = true; GNUNET_log (GNUNET_ERROR_TYPE_INFO, @@ -1146,8 +1143,7 @@ AH_handler_policy_post ( "Policy store operation requires payment\n"); if (! puc->payment_identifier_provided) { - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &puc->payment_identifier, + GNUNET_CRYPTO_random_block (&puc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); puc->payment_identifier_provided = true; } diff --git a/src/backend/anastasis-httpd_truth-challenge.c b/src/backend/anastasis-httpd_truth-challenge.c @@ -823,8 +823,7 @@ begin_payment (struct ChallengeContext *gc) /* Create a fresh order */ struct GNUNET_TIME_Timestamp pay_deadline; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, - &gc->payment_identifier, + GNUNET_CRYPTO_random_block (&gc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); order_id = GNUNET_STRINGS_data_to_string_alloc ( &gc->payment_identifier, diff --git a/src/backend/anastasis-httpd_truth-solve.c b/src/backend/anastasis-httpd_truth-solve.c @@ -658,8 +658,7 @@ begin_payment (struct SolveContext *gc) /* Create a fresh order */ struct GNUNET_TIME_Timestamp pay_deadline; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, - &gc->payment_identifier, + GNUNET_CRYPTO_random_block (&gc->payment_identifier, sizeof (struct ANASTASIS_PaymentSecretP)); order_id = GNUNET_STRINGS_data_to_string_alloc ( &gc->payment_identifier, diff --git a/src/lib/anastasis_backup.c b/src/lib/anastasis_backup.c @@ -371,17 +371,13 @@ ANASTASIS_truth_upload ( struct ANASTASIS_CRYPTO_KeyShareP key_share; struct ANASTASIS_CRYPTO_NonceP nonce; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &question_salt, + GNUNET_CRYPTO_random_block (&question_salt, sizeof (question_salt)); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &uuid, + GNUNET_CRYPTO_random_block (&uuid, sizeof (uuid)); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &truth_key, + GNUNET_CRYPTO_random_block (&truth_key, sizeof (truth_key)); ANASTASIS_CRYPTO_keyshare_create (&key_share); return ANASTASIS_truth_upload2 (ctx, @@ -486,8 +482,7 @@ ANASTASIS_policy_create (const struct ANASTASIS_Truth *truths[], struct ANASTASIS_Policy *p; p = GNUNET_new (struct ANASTASIS_Policy); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &p->master_salt, + GNUNET_CRYPTO_random_block (&p->master_salt, sizeof (p->master_salt)); { struct ANASTASIS_CRYPTO_KeyShareP key_shares[truths_len]; diff --git a/src/stasis/test_anastasis_db.c b/src/stasis/test_anastasis_db.c @@ -33,8 +33,8 @@ } while (0) #define RND_BLK(ptr) \ - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, ptr, sizeof (* \ - ptr)) + GNUNET_CRYPTO_random_block (ptr, sizeof (* \ + ptr)) /** * Global return value for the test. Initially -1, set to 0 upon @@ -112,8 +112,7 @@ run (void *cls) method = "Method"; TALER_string_to_amount ("EUR:30",&amount); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &truth_uuid, + GNUNET_CRYPTO_random_block (&truth_uuid, sizeof (truth_uuid)); rel_time = GNUNET_TIME_UNIT_MONTHS; diff --git a/src/testing/testing_api_cmd_truth_store.c b/src/testing/testing_api_cmd_truth_store.c @@ -220,16 +220,13 @@ truth_store_run (void *cls, } else { - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &tss->uuid, + GNUNET_CRYPTO_random_block (&tss->uuid, sizeof (struct ANASTASIS_CRYPTO_TruthUUIDP)); GNUNET_CRYPTO_random_block ( - GNUNET_CRYPTO_QUALITY_WEAK, &tss->encrypted_keyshare, sizeof (struct ANASTASIS_CRYPTO_EncryptedKeyShareP)); } GNUNET_CRYPTO_random_block ( - GNUNET_CRYPTO_QUALITY_WEAK, &tss->key, sizeof (struct ANASTASIS_CRYPTO_TruthKeyP)); @@ -238,8 +235,7 @@ truth_store_run (void *cls, size_t size_encrypted_truth; struct ANASTASIS_CRYPTO_NonceP nonce; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); ANASTASIS_CRYPTO_truth_encrypt (&nonce, &tss->key, diff --git a/src/util/anastasis-crypto-tvg.c b/src/util/anastasis-crypto-tvg.c @@ -138,8 +138,7 @@ d2j_append (json_t *arr, #define d2j_auto(vec, label, d) d2j (vec, label, d, sizeof (*d)) #define d2j_append_auto(arr, d) d2j_append (arr, d, sizeof (*d)) -#define random_auto(d) GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, \ - d, \ +#define random_auto(d) GNUNET_CRYPTO_random_block (d, \ sizeof (*d)); diff --git a/src/util/anastasis_crypto.c b/src/util/anastasis_crypto.c @@ -275,8 +275,7 @@ ANASTASIS_CRYPTO_recovery_document_encrypt ( const char *salt = "erd"; struct ANASTASIS_CRYPTO_NonceP nonce; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); anastasis_encrypt (&nonce, id, @@ -321,8 +320,7 @@ ANASTASIS_CRYPTO_keyshare_encrypt ( void *eks = NULL; struct ANASTASIS_CRYPTO_NonceP nonce; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); anastasis_encrypt (&nonce, id, @@ -414,8 +412,7 @@ void ANASTASIS_CRYPTO_keyshare_create ( struct ANASTASIS_CRYPTO_KeyShareP *key_share) { - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - key_share, + GNUNET_CRYPTO_random_block (key_share, sizeof (struct ANASTASIS_CRYPTO_KeyShareP)); } @@ -456,11 +453,9 @@ ANASTASIS_CRYPTO_core_secret_encrypt ( cser = GNUNET_new (struct ANASTASIS_CoreSecretEncryptionResult); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &master_key, + GNUNET_CRYPTO_random_block (&master_key, sizeof (struct GNUNET_HashCode)); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (struct ANASTASIS_CRYPTO_NonceP)); anastasis_encrypt (&nonce, @@ -483,8 +478,7 @@ ANASTASIS_CRYPTO_core_secret_encrypt ( { struct ANASTASIS_CRYPTO_NonceP nonce_i; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_STRONG, - &nonce_i, + GNUNET_CRYPTO_random_block (&nonce_i, sizeof (struct ANASTASIS_CRYPTO_NonceP)); anastasis_encrypt (&nonce_i, @@ -584,8 +578,7 @@ ANASTASIS_CRYPTO_recovery_metadata_encrypt ( const char *salt = "rmd"; struct ANASTASIS_CRYPTO_NonceP nonce; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); anastasis_encrypt (&nonce, id, diff --git a/src/util/test_anastasis_crypto.c b/src/util/test_anastasis_crypto.c @@ -149,8 +149,7 @@ test_key_share (void) &key_share_2)); // testing of enc-/decryption of a keyshare - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &id, + GNUNET_CRYPTO_random_block (&id, sizeof (struct ANASTASIS_CRYPTO_UserIdentifierP)); ANASTASIS_CRYPTO_keyshare_create (&key_share); ANASTASIS_CRYPTO_keyshare_encrypt (&key_share, @@ -182,11 +181,9 @@ test_truth (void) "TRUTH_BEFORE: %s\n", TALER_b2s (test, strlen (test))); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &truth_enc_key, + GNUNET_CRYPTO_random_block (&truth_enc_key, sizeof (struct ANASTASIS_CRYPTO_TruthKeyP)); - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_NONCE, - &nonce, + GNUNET_CRYPTO_random_block (&nonce, sizeof (nonce)); ANASTASIS_CRYPTO_truth_encrypt (&nonce, &truth_enc_key, @@ -221,8 +218,7 @@ test_core_secret (void) struct ANASTASIS_CoreSecretEncryptionResult *cser; struct ANASTASIS_CRYPTO_PolicyKeyP policy_keys[policy_keys_length]; - GNUNET_CRYPTO_random_block (GNUNET_CRYPTO_QUALITY_WEAK, - &salt, + GNUNET_CRYPTO_random_block (&salt, sizeof (salt)); // construction of PolicyKey-array for (unsigned int i = 0; i < policy_keys_length; i++)