newhope | Golang Post-quantum key exchange – a new hope
kandi X-RAY | newhope Summary
kandi X-RAY | newhope Summary
Golang "Post-quantum key exchange – a new hope." (Mirror of https://gitlab.com/yawning/newhope)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- batcher84 calls the function in ascending order .
- KeyExchange Bob takes an alicePk seed and returns the resulting public key .
- KeyExchangeSimpleBob encrypts the given public key .
- ntt computes the distance between two parameters .
- GenerateKeyPairAlice returns a new private key pair .
- GenerateKeyPairSimpleAlice returns a private keypair and public key pair .
- KeyExchangeAlice exchanges a key and alice sk .
- rec performs a linear linear step .
- KeyExchangeSimpleAlice is the same as KeyExchange except that it takes a simple Alice sk .
- f returns the float32 value of x .
newhope Key Features
newhope Examples and Code Snippets
pip install pynewhope
from pynewhope import newhope
# Step 1: Alice generates random keys and her public msg to Bob
alicePrivKey, aliceMsg = newhope.keygen()
print("Alice sends to Bob her public message:", aliceMsg)
# Step 2: Bob receives the msg
Community Discussions
Trending Discussions on newhope
QUESTION
I cannot understand how to build Botan for android, according on the instruction here:
$ export CXX=/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang++
$ ./configure.py --os=android --cc=clang --cpu=arm64
i cannot understand how to use this commands on Windows, also reading previous issues did not help me, can you tell me how did you build this library on windows step-by-step, just your command examples?
I used --cc-bin option of configure.py to specify the path to the compiler, it is considered a solution for windows, but what i have is:
...ANSWER
Answered 2020-Mar-21 at 22:13It seems Botan support for building Android binaries on Windows hosts is limited. You will have to use dark magic to make this work.
The build process consists of two phases, the configuration phase and the make phase.
The Android-specific instructions in the documentation you linked do not cover the whole build process, only the configuration phase. For the make phase, you then have to follow the Windows-specific instructions (link).
Configuration phase:You will need the following binaries, adjust the paths to your machine:
clang++ (note the
.cmd
at the end):C:\Development\android-ndk-r19c-windows-x86_64\android-ndk-r19c\toolchains\llvm\prebuilt\windows-x86_64\bin\armv7a-linux-androideabi28-clang++.cmd
ar:
C:\Development\android-ndk-r19c-windows-x86_64\android-ndk-r19c\toolchains\llvm\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ar.exe
In the Botan folder, run the configure
command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install newhope
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page