-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build with BP_WITH_OPENSSL fails - missing bp.h #43
Comments
Oh, great point Uri @mouse07410! Yeah, you'll have to compile with https://github.com/zeutro/openssl (fork of v1.0.2 I vaguely recall). This fork includes a somewhat slower implementation of BN-254 (compared to RELIC). |
@jakinyele I see, thank you. In fact, based on # openssl with BP support
if [[ $CMD == "with-bp" ]]; then
LINK=https://github.com/zeutro/openssl
VERSION=1.1.1-dev-bp
echo "Clone github repo @ ${LINK}"
git clone -b patch ${LINK} openssl-${VERSION}.git
cd openssl-${VERSION}.git
else
LINK=https://github.com/openssl/openssl
VERSION=1.1.1-dev
echo "Clone github repo @ ${LINK}"
git clone ${LINK} openssl-${VERSION}.git
cd openssl-${VERSION}.git
git reset --hard ${COMMIT}
fi It would be great if you could update Would you consider "packaging" your BP implementation, so that instead of pulling your entire OpenSSL fork (which I do not want to do), I could just pull the BP stuff and compile it against my already-installed OpenSSL? |
@mouse07410 right, v1.1.1 and will update the README. I think we could repackage the BP implementation as a source code patch of OpenSSL v1.1.1 so you can recompile against your already-installed OpenSSL version. Will see if this approach could work with other versions as well. |
Thank you! Might I suggest that the ideal solution would be repackaging as an add-on rather than a patch that requires OpenSSL source code modification?
IMHO, the only two versions worth worrying about are the current stable 1.1.1, and the upcoming 3.0. UpdateClarification: I mean - if I have a binary installation of OpenSSL (say, 1.1.1), I'd like to be able to compile your source BP package against it (linking against |
OpenSSL-1.1.1 and 3.0 (and 1.0.2 - I checked) do not have
bp.h
header file.src/include/openabe/zml/zelement.h
tries to includebp.h
. which fails:How to trigger this bug:
Seems the same as #15, only with more details. ;-)
@jakinyele any help here? Is
ZML_LIB="with_openssl"
deprecated? Because I don't see how this can even compile, and OpenSSL stopped providingopenssl/bp.h
header file (and the rest of support) way before v1.0.2. So, this must be a really old relict.The text was updated successfully, but these errors were encountered: