Skip to content

Commit 3ba7d6e

Browse files
committed
Reset to version 0.0.1 with optimized imports
1 parent 8284848 commit 3ba7d6e

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sboxanalyzer"
7-
version = "1.0.2"
7+
version = "0.0.1"
88
description = "A tool for analyzing S-boxes and Boolean functions against differential, linear, differential-linear, boomerang, and integral attacks"
99
readme = "README.md"
1010
authors = [

sboxanalyzer/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@
6969
# In case you use this tool please include the above copyright informations (name, contact, license)
7070
#*****************************************************************************
7171

72-
__version__ = "1.0.2"
72+
__version__ = "0.0.1"
7373

7474
import subprocess
7575
import os
7676
import time
77-
from sage.all import *
77+
# Optimized imports: only import what we actually need from SageMath
7878
from sage.crypto.sboxes import SBox
79+
from sage.rings.polynomial.pbori.pbori import BooleanPolynomialRing
80+
from sage.misc.functional import log
81+
from sage.misc.misc_c import prod as product
82+
from sage.misc.flatten import flatten
7983
import itertools
84+
from random import randint
8085
from .espresso_loader import get_espresso_path_cached
8186

8287
# Get espresso binary path (uses pre-built binary or builds from source)

0 commit comments

Comments
 (0)