first_add_round_key.__doc__="""Build an attack selection function which computes intermediate values after AES decrypt round key operation at first round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
ciphertext_tag (str, default='ciphertext'): tag (key value) of the ciphertext metadata to use to retrieve ciphertext
values from the metadata dict when selection function is called.
"""
last_add_round_key=encrypt.first_add_round_key
last_add_round_key.__doc__="""Build an attack selection function which computes intermediate values after AES decrypt round key operation at last round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
plaintext_tag (str, default='plaintext'): tag (key value) of the plaintext metadata to use to retrieve plaintext
values from the metadata dict when selection function is called.
"""
first_sub_bytes=encrypt.last_sub_bytes
first_sub_bytes.__doc__="""Build an attack selection function which computes intermediate values after AES decrypt sub bytes (S-box) operation at first round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
ciphertext_tag (str, default='ciphertext'): tag (key value) of the ciphertext metadata to use to retrieve ciphertext
values from the metadata dict when selection function is called.
"""
last_sub_bytes=encrypt.first_sub_bytes
last_sub_bytes.__doc__="""Build an attack selection function which computes intermediate values after AES decrypt sub bytes (S-box) operation at last round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
plaintext_tag (str, default='plaintext'): tag (key value) of the plaintext metadata to use to retrieve plaintext
values from the metadata dict when selection function is called.
"""
delta_r_first_rounds=encrypt.delta_r_last_rounds
delta_r_first_rounds.__doc__="""Build an attack selection function which computes delta intermediate values between AES decrypt first two rounds, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
ciphertext_tag (str, default='ciphertext'): tag (key value) of the ciphertext metadata to use to retrieve ciphertext
values from the metadata dict when selection function is called.
"""Build an attack selection function which computes intermediate values after AES encrypt sub bytes (S-box) operation at first round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
plaintext_tag (str, default='plaintext'): tag (key value) of the plaintext metadata to use to retrieve plaintext
values from the metadata dict when selection function is called.
"""Build an attack selection function which computes intermediate values after AES encrypt sub bytes (S-box) operation at last round, for guesses values.
Args:
guesses (numpy.array, default=numpy.arange(256)): default guesses value used for key hypothesis.
words (:class:`scared.traces.Samples.SUPPORTED_INDICES_TYPES`, default=None): selection of key words computed.
ciphertext_tag (str, default='ciphertext'): tag (key value) of the ciphertext metadata to use to retrieve ciphertext
values from the metadata dict when selection function is called.