This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const HmacSha256 = std.crypto.auth.hmac.sha2.HmacSha256; | |
pub fn main() !void { | |
var out: [HmacSha256.mac_length]u8 = undefined; | |
HmacSha256.create(&out, "The quick brown fox jumps over the lazy dog", "key"); | |
std.debug.print("{s}\n", .{std.fmt.bytesToHex(&out, .lower)}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.toml b/Cargo.toml | |
index 5f580b6..d0f55d0 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -1,7 +1,12 @@ | |
[package] | |
name = "prio" | |
version = "0.12.2" | |
-authors = ["Josh Aas <[email protected]>", "Tim Geoghegan <[email protected]>", "Christopher Patton <[email protected]", "Karl Tarbe <[email protected]>"] | |
+authors = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.toml b/Cargo.toml | |
index 5f580b6..d0f55d0 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -1,7 +1,12 @@ | |
[package] | |
name = "prio" | |
version = "0.12.2" | |
-authors = ["Josh Aas <[email protected]>", "Tim Geoghegan <[email protected]>", "Christopher Patton <[email protected]", "Karl Tarbe <[email protected]>"] | |
+authors = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Cargo.toml b/Cargo.toml | |
index 5f580b6..984b476 100644 | |
--- a/Cargo.toml | |
+++ b/Cargo.toml | |
@@ -35,7 +35,7 @@ rayon = { version = "1.7.0", optional = true } | |
# dependencies required if feature "prio2" is enabled | |
aes-gcm = { version = "^0.10", optional = true } | |
-ring = { version = "0.16.20", optional = true } | |
+ring = { package = "ring-wasi", version = "0.16.25", optional = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "src/aegis128l/aegis128l.h" | |
static void | |
dump(const uint8_t *x, size_t len) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cargo vet diff aead 0.4.3 0.5.1 (used by aes-gcm, chacha20poly1305) | |
cargo vet diff aes 0.7.5 0.8.2 (used by aes-gcm) | |
cargo vet diff aes-gcm 0.9.4 0.10.1 (used by wasi-crypto) | |
cargo vet diff base64ct 1.1.1 1.5.3 (used by spki, pem-rfc7468) | |
cargo vet diff bindgen 0.59.2 0.60.1 (used by boring-sys) | |
cargo vet diff chacha20 0.8.1 0.9.0 (used by chacha20poly1305) | |
cargo vet diff chacha20poly1305 0.9.0 0.10.1 (used by wasi-crypto) | |
cargo vet diff cipher 0.3.0 0.4.3 (used by aes, ctr, aes-gcm, and 2 others) | |
cargo vet diff const-oid 0.6.2 0.9.1 (used by der, digest) | |
cargo vet diff crypto-bigint 0.2.11 0.4.9 (used by rfc6979, e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <inttypes.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifdef USE_WOLFSSL | |
#include <wolfssl/options.h> | |
#endif | |
#include <openssl/ssl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Compilation.zig b/src/Compilation.zig | |
index b00f13581..4e21245f4 100644 | |
--- a/src/Compilation.zig | |
+++ b/src/Compilation.zig | |
@@ -4474,7 +4474,7 @@ fn detectLibCIncludeDirs( | |
// If linking system libraries and targeting the native abi, default to | |
// using the system libc installation. | |
- if (link_system_libs and is_native_abi and !target.isMinGW()) { | |
+ if ((link_system_libs or target.isDarwin()) and is_native_abi and !target.isMinGW()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
CONFIG="/tmp/dnscrypt-proxy.toml" | |
TEST_SERVER="sdns://AQcAAAAAAAAADTUxLjE1LjEyMi4yNTAg6Q3ZfapcbHgiHKLF7QFoli0Ty1Vsz3RXs1RUbxUrwZAcMi5kbnNjcnlwdC1jZXJ0LnNjYWxld2F5LWFtcw" | |
DNSCRYPT_PROXY=~/src/dnscrypt-proxy/dnscrypt-proxy/dnscrypt-proxy | |
PIDFILE="/tmp/dnscrypt-proxy.pid" | |
relaycheck() { | |
stamp="$1" | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const big = std.math.big; | |
const Allocator = std.mem.Allocator; | |
const crypto = std.crypto; | |
const Managed = big.int.Managed; | |
const Const = big.int.Const; | |
const Order = std.math.Order; | |
fn powMod(res: *Managed, b: Const, e: Const, m: Const) !void { |