<commit_before>package main

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"crypto/hmac"
	"crypto/sha256"
	"math/big"

	"github.com/btcsuite/btcd/btcec"
)

const (
	// So, 256-bit EC curve, 128-bit keys symmetric encryption, 128-bit keys for
	// HMAC, etc. Stored in bytes, here.
	securityParameter = 16

	// Default message size in bytes. This is probably too big atm?
	messageSize = 1024

	// Mix header over head. If we assume 5 hops (which seems sufficient for
	// LN, for now atleast), 32 byte group element to be re-randomized each
	// hop, and 16 byte symmetric key.
	// Overhead is: p + (2r + 2)s
	//  * p = pub key size (in bytes, for DH each hop)
	//  * r = max number of hops
	//  * s = summetric key size (in bytes)
	// It's: 32 + (2*5 + 2) * 16 = 224 bytes! But if we use secp256k1 instead of
	// Curve25519, then we've have an extra byte for the compressed keys.
	mixHeaderOverhead = 225

	// Basically an upper limit on the diameter on our node graph.
	numMaxHops = 5

	// Special destination to indicate we're at the end of the path.
	nullDestination = 0x00

	// (2r + 3)k = (2*5 + 3) * 16 = 208
	numStreamBytes = 208

	sharedSecretSize = 32
<commit_msg>switch default securityParamter to 32 bytes<commit_after>package main

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"crypto/hmac"
	"crypto/sha256"
	"math/big"

	"github.com/btcsuite/btcd/btcec"
)

const (
	// So, 256-bit EC curve pubkeys, 256-bit keys symmetric encryption,
	// 256-bit keys for HMAC, etc. Represented in bytes.
	securityParameter = 32

	// Default message size in bytes. This is probably *much* too big atm?
	messageSize = 1024

	// Mix header over head. If we assume 5 hops (which seems sufficient for
	// LN, for now atleast), 32 byte group element to be re-randomized each
	// hop, and 32 byte symmetric key.
	// Overhead is: p + (2r + 2)s
	//  * p = pub key size (in bytes, for DH each hop)
	//  * r = max number of hops
	//  * s = summetric key size (in bytes)
	// It's: 32 + (2*5 + 2) * 32 = 416 bytes! But if we use secp256k1 instead of
	// Curve25519, then we've have an extra byte for the compressed keys.
	mixHeaderOverhead = 417

	// The maximum path length. This should be set to an
	// estiamate of the upper limit of the diameter of the node graph.
	numMaxHops = 5

	// Special destination to indicate we're at the end of the path.
	nullDestination = 0x00

	// (2r + 3)k = (2*5 + 3) * 16 = 208
	numStreamBytes = 208

	sharedSecretSize = 32

{'fraction_non_alphanumeric': 0.10612244897959183, 'fraction_numerical': 0.054693877551020405, 'mean_word_length': 2.972447325769854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4167341', 'n_tokens_mistral': 978, 'n_tokens_neox': 833, 'n_words': 343}