Skip to content

#ifdef/#endif missing #472

@mjfh

Description

@mjfh

Thanks for providing libTom. In order to strip it down, I needed an additonal #ifdef/#endif clause for compiling - seems like it was overlooked. Currently my unit tests pull in ecc_test() and sha256_test() successfully.
Jordan

Prerequisites

I use a custom configuration not enabling LTC_RNG_GET_BYTES.

Description

Compiling the source padding_pad.c will fail unless LTC_RNG_GET_BYTES is enabled.

Steps to Reproduce

Apply attached custom configuration patch only on tomcrypt_custom.h only and compile with make CFLAGS='-DLTC_JORDAN_DEBUG ...' ...

Suggested Steps to Fix

Apply attached custom configuration patch to padding_pad.c.

Version

1.18.2-develop (check-in from 07/11/2018)

0001-enable-fortuna-sha256-ecc-debugging.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions