Skip to content

Commit

Permalink
Feature/Add: add input generator tools as a common api for other methods
Browse files Browse the repository at this point in the history
  • Loading branch information
cs committed Nov 14, 2024
1 parent 6ae63d5 commit 387fc0d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions claasp/cipher_modules/input_generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# ****************************************************************************
# Copyright 2023 Technology Innovation Institute
#
# This program 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 of the License, or
# (at your option) any later version.
#
# This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************


import numpy as np
from types import ModuleType
from subprocess import Popen, PIPE

from claasp.cipher_modules import code_generator
from claasp.cipher_modules.generic_functions_vectorized_byte import cipher_inputs_to_evaluate_vectorized_inputs, \
evaluate_vectorized_outputs_to_integers

def generate_zeros(amount_of_samples):
return

def generate_ones(amount_of_samples):
return

def generate_binary(amount_of_samples):
return

def generate_byte(amount_of_samples):
return

def generate_int_with_range(size_of_bit, range, amount_of_samples):
return

def generate_avalanche(input):
return


class InputGenerator:

def __init__(self, cipher):
self.cipher = cipher

def generate_input(self, type_list, number_of_samples):
return

0 comments on commit 387fc0d

Please sign in to comment.