instruction
stringlengths
32
27.2k
I'm trying to implement related key attack on 9 round AES256, described here: Biryukov, Dunkelman, Keller, Khovratovich, Shamir, but I am stuck at the very beginning with Observation A, used to validate state difference before final round. Since I have to guess byte 12 of the subkey, I can end up with impossible value ...
What are the differences between Gravity-SPHINCS and SPHINCS+ from security and practicality standpoints? Are they just different implementations of the underlying SPHINCS algorithms or are they functional variations on the underlying algorithms?
Let, $g^{a}$, $g^{b}$ are known elements, where $g\in G$ and $a, b\in Z_q$. According to Computational Diffie-Hellman (CDH) assumption, it is hard to compute $g^{ab}$. If $g^{a^2}$ is also known then is it still fall into Computational Diffie-Hellman assumption? In other words, if $g$, $g^{a}$, $g^{b}$, $g^{a^2}$ and $...
Three participants Quadratic polynomial, one cheater. The Cheater discloses a false (x,y) pair I need to prove that any one of the truth-telling participants can't tell which of the others is the liar. I do realize that any pair of participants have a linear subspace of possible solutions since they don't know the secr...
I've found an algorithm taht performs the following: expand the two keys using cryptographic hashing functions so the final keys will look like nonsense ASCII, then XOR them together to create a single key. Is this algorithm secure? Is there any benefit to xor together two keys rather than one with the message?
Question. I'm a software developer. I design and write secured systems for my customer. My customer recently downward directed that all traffic to/from my server be routed through a new appliance. I have no idea what the appliance is. All I was told was that it would impact routing and client certificates. I was given ...
Assume the following: You have to encrypt a file (ZIP-file) containing import information. This file should be password-protected and you want to leave yourself the password encrypted (on paper, maybe bury it somewhere in your yard, hide it behind the walls, you name it). How could you encrypt it so that you might be a...
Suppose the server has a public key which everyone knows is associated with it, maybe it's hardcoded into the browser or signed by some CA. At no point do you need the server to sign anything with it, the client generates an ephemeral key pair, performs DH with the server's public key and sends his ephemeral public key...
In the Wikipedia article or another article about post-quantum crypto there's a plenty of information about hash-based signatures. But where are hash-based ecryption with pubkey? But, over the long-term, it's generally confidentiality (i.e. encryption) that you need to maintain and I haven't talked about post-quantum ...
Terms like "trustless protocol", "trusted third party", "trusted platform", "trusted server", etc. require a notion of trust. I already wrote The term trust when used in the context of cryptography does not refer to personal confidence in whether a person is reliable or has good intentions but instead describes whethe...
I am really lost in this subject, I find it hard to get any reliable documentation on the subject that is a bit friendly for beginners like me. So I apologize in advance if this question would sound nonsensical. Anyway, I am implementing encryption in a project using php openssl_encrypt. So far this is what I have: // ...
Are there any natural ways to transform ElGamal encryption system or ElGamal signature scheme into an authentication protocol?
Based on the NIST submission it looks like the SPHINCS+-256s algorithm comes in at public key sizes of 64 bytes, private key sizes of 128 bytes, and signature sizes of 29,792 bytes. What I can't seem to locate (or understand from the submission documentation) are implementation details suggesting how to use it. For th...
I'm looking for weak groups in discrete logarithm, that $x$ can be extracted from $Y$ in polynomial time where $Y \equiv g^x \pmod{p}$ . I thought one way is to produce a prime $p$ that $p-1$ is an smooth integer which then makes discrete logarithm problem easy using Pohlig-Hellman algorithm but i couldn't find any alg...
I wanted to implement a way to generate an RSA public/private key pair and protect the private key with a password. Looking into the Web crypto api, I thought the wrapKey/unwrapKey pair was the way to go. But then I got confused, and the documentation is not really helping because it seems to assume you know everything...
I have some questions about deriveKey and deriveBits for web crypto API. I am confused about the state of these APIs. I do understand deriveKey generates a native key object whereas deriveBits just generates a byte array. However, when I look at Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/Su...
I was reading the Wikipedia page https://en.m.wikipedia.org/wiki/Random_self-reducibility and it states: "If an NP-complete problem is non-adaptively random self-reducible the polynomial hierarchy collapses to Σ3". I am trying to understand that statement. It seems to say if we find a problem where a random instance i...
I decided to use TweetNaCl in my project and did some tests. For some reason, its Ed25519 signing mechanism gives me very short public and private keys, as opposed to RSA, though RSA, as I it explained to me, is not secure. So can I trust this implementation, experts, please?
Ed25519 secret and public keys can both be represented in 32 bytes. Why does NaCl use 64 byte signing keys?
Question: Consider the following commitment scheme: Public parameters: large primes $q$ and $p$ such that $p = 2\cdot q + 1$, and two generators $g, g'$ of a $q$-order subgroup of $\mathbb Z_p^*$. Alice commits to $t$ in $\mathbb Z_q$ by uniformly picking $r$ from $\mathbb Z_q$, and sending $g^t \cdot g'^r$. She o...
I'm trying to understand how Krack works on GCM. I thought that looking at GCM would be easier since it's a full break and the video shows a tool that is able to decrypt everything. I see that the IV is resent, but how does that carry forward? Each packet is sent with an IV that is used to encrypt/decrypt that packet, ...
I have been stuck all day trying to understand how to show that an Encrypt-and-Mac ($SE_{EaM}$) scheme is not IND-CCA secure. I have seen this similar post, however it is slightly different and the notation in the selected answer confuses me. The line of thought I want to follow is this: While the $MAC$ is perfectly UF...
What is the smallest hash-based OTS in terms of the sum of the public key and signature which provides 256 bits of security?
I am building the distributed system, where each user sends signed messages. I dont want to have a certificates system for public keys, like it is done in SSL, so I thought to use public keys themselves as user id. Like: a message from My public key to Your public key: hello! and here goes a signature of "hello!", mad...
I am attempting to secure a private key for remote storage on an untrusted device. Here are the parameters and my assumptions, I'd like to confirm I'm correct with them. The keypair that I wish to encrypt is generated with ECDSA using the P-256 curve. My understanding is that this curve has 128 bits of security. I give...
I have an issue with this proof. We define two games: $$H'(\lambda):$$ 1) Pick $R \in \mathcal{R}(n,l)$ (the space of truly random functions from $\{0,1\}^n$ to $\{0,1\}^l$ 2) we define $\mathit{Enc}'_k(m)=(r,R(r) \oplus m)$, where $r$ is random from $\{0,1\}^n$. 3)$\mathcal{A}$ is an adversary who chooses two messages...
A5/1 and (I think) ZUC, both stream ciphers used in mobile telecommunications, have "frames" where the, in addition to the key, a frame number is provided to the keystream generator which produces a relatively short pseudorandom sequence called a "frame" (on the order of at most a few kilobytes). Advancing the stream c...
I've read on differential cryptanalysis where it traces the differences on the changes of ciphertexts of the same plaintext, except for some bits. However, I wonder is the differential cryptanalysis is applicable to CPA secure cryptos like El-Gamal? Thanks in advance.
We all know there is Base 10, Base 16, etc. Are there encryption algorithms out there based on different or unique Base-N numbering systems?
What is the current conventional algorithm used to calculate factors of large numbers in order to determine if they are coprimes, or if there is a way to do it without calculating factors, what would it be? I'm creating RSA encryption for files and messages. I need to be able to find coprimes, but I run into the proble...
Assume that we have a block cipher with a key size of $\ell_{K}$ bits, a tweak size of $\ell_{T}$ bits, and a block size of $\ell_{X}$ bits. Formally, the encryption of a given block of data is $$E(K, T, X): \{0, 1\}^{\ell_{K}} \times \{0, 1\}^{\ell_{T}} \times \{0, 1\}^{\ell_{X}} \rightarrow \{0, 1\}^{\ell_{X}}$$ and ...
In Adaptively Secure Garbled Circuits from One-Way Functions, the authors wrote that the adversary may be able to influence the choice of the input $x$ after seeing the garbled circuit, so we need a stronger notion called adaptive security. Why may the adversary be able to influence the choice of the input after seeing...
I saw in several places online that the different between IKEv1 and IKEv2 is the use of multiple combinations of a source IP range as left and right subnets (locally and remote), a destination IP range, a source port range and a destination port range are allowed per Child SA. I am using Strongswan 5.3.5 version on Ubu...
I'm doing some tests in Java, encrypting messages exchanged between two entities. I'm using a symmetric key to encrypt the messages. Right now I've stumbled upon a question. Is it enough to encrypt then sign when using symmetric-key encryption? The signature process is based on an asymmetric key pair. I think that by ...
Suppose we have $3$ parties Alice, Bob and Charlie such that Alice can't talk with Bob. Suppose that Alice has some string $x\in\{0,1\}^n$ and Bob has a string $y\in\{0,1\}^n$. Suppose that Alice and Bob have access to a shared random string $r$ and a shared secret $s$. Suppose that Charlie knows both $x$ and $y$ and h...
The question that I am asking is exactly what I ask in the title.
Assuming we have a valid EC-DSA signature $\sigma = (r,s)$. We can then easily create another valid signature without the knowledge of the secret key by negating $s$. That is, $\sigma' = (r, -s)$ can still be verified. The verification algorithm of ECDSA works the following $e = H(M)$ $w = s^{-1 }\mod p$ $u = ew \mod ...
Of course, I know RSA is to widely used and tested to have any legitimate threats, but I still am confused by this. I have been trying to implement C++ (in a effort to learn how it works, not to be used in production), and I stumbled upon a C++ program online. When I run the program, it generates two random primes and ...
I'm trying to explain the basics of Bitcoin to my parents. One of the core components of bitcoin, is signing transactions to make sure your identity can't be impersonated, and thus the need to explain a simplified asymmetric cipher. What's an extremely simple asymmetric cipher I can use as an example? How can this simp...
Authenticated encryption is said to be achievable with either of these three things: Use a separate algorithm that ensures authentications such as HMAC. Use one of the several block cipher modes of operation that generate/verify an authentication tag like OCB, CCM, or GCM. Use a cipher that is dedicated to authenticat...
I have recently been reading (and writing) a lot off ECC on top of TCP via pythons sockets. I've stubbled across a couple of things mentioning how elliptical curves are more secure with the same key length as other algorithms. Just to humor myself I made a simple associate/communicative function and used it to with a '...
I learned today about the Pedersen commitment scheme. A quick reminder (I know there are some variants of this scheme, so I will present the one I learned about): Public parameters - 2 primes $p,q$ such that $p=2q+1$, and 2 elements $g_1, g_2 \in \mathbb{Z}_p^*$ of order $q$ (i.e $g_1,g_2$ are generators of a q-orde...
I am using the standard version of the Euclidian Algorithm (i.e. GCD(270, 192) = GCD(192, [270 % 192]) = ...repeat until 0) to determine if two numbers are coprime. I run the algorithm, check if the GCD is 1 and use that to determine if they are. The problem is that I'm doing this for RSA and when I test the algorith...
I understand that DES and AES use multiple rounds of encryption to secure the cipher text output, what is the real reason this is carried out? Is there a certain point performing multiple rounds becomes pointless not relating to security; as of course performance becomes an issue at some point? Do all encryption algori...
From 2.5.1 in this paper, how is $p$ = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE FFFFFFFF 00000000 00000000 FFFFFFFF = $2^{384} − 2^{128} − 2^{96} + 2^{32} − 1$ derived?
What cryptographic protocol or algorithm I can use to encrypt/decrypt a subset of columns of a database table for each user? For example say I have a database table with 50 columns col1, col2, col3, col4......col50 Now I want to reveal the data such that user1 can see (have access to) col15 and col17 only at time t1...
I am trying to build a cryptographic system that has several components and ran into a problem with a secret sharing scheme. Let $v$ be a value we are interested committing to. I generate a commitment $P = aG + vH$ where $a\in \mathbb{Z}_q$ , $G$ and $H$ are generators of that group (Pedersen commitment scheme, if give...
If an adversary $M$ observes a session of the protocol between $A$ and $B$ and learns the session key $k_{AB}$.How Can the adversary mount a successful impersonation attack and communicate with $B$ on behalf of $A$?And this session are still used. Can adversary $M$ compute the key pair of $A$?
Complexity leveraging is a proof technique in cryptography where the reduction algorithm runs in super-poly time. (see this). Many papers use complexity leveraging when there are exponentially many hybrids. Here is an example. Suppose, we need to prove that two experiments $Expt \;0$ and $Expt \;1$ are computationally...
Take Rijndael (AES) of block size 128 and reformulate it with a tweakable number of rounds and no key schedule. Suppose we obtain: Rijndael128(r, k) where r is number of rounds and k is key of length r*128 bits (it is the concatenation of all round keys). k is then made salsa20(x) where x is a 256 bit secret and nonce...
I am looking for a decentralised leader election protocol where each node knows whether or not they were elected leader, but nothing else. In particular, this "blindness" property means a node that was not elected leader does not know which node was elected leader. Do you know of a decentralised blind leader election p...
I'm a little confused on how permutation and substitution works, I've been reading about S-DES and how it goes through P-Boxes and S-Boxes but what goes on inside P or S in the algorithm? Are these p and B boxes generated from the key? If for example I have some plaintext of 11010011011110100001 and want to permute or ...
Is there a rsa modulus size where security starts to decrease or is a larger rsa keysize always better? (of course I’m considering things like performance penalty)
I'm just curious about why brute force takes so much longer on the Whirlpool hash than it does on the others, as you will see below: Passcovery Suite Version 3.50 build 3653 x64 Benchmark CPU [Intel(R) Core(TM) i3-5020U CPU @ 2.20GHz] Type: Microsoft® Word 2007 Protection: MS Office 2007, SHA1, 256-bit AES Password re...
Alice has $m$ which is the hash preimage of $h_m$, namely $\operatorname{SHA256}(m) = h_m$. Consider the following protocol. Alice does the following: \begin{align*} r &:= \operatorname{Gen} \\ h_r &:= \operatorname{SHA256}(r) \\ \hat m &:= \operatorname{Enc}(m, r), \end{align*} where $\operatorname{Gen}$ is som...
Regarding post-quantum symmetric cryptography, it has been recommended to move to AES-256 or similar ciphers with 256-bit keys. How is authenticated encryption affected? Is AES-256-GCM considered quantum-safe? what are the other alternatives for post-quantum authenticated encryption?
I have a question about bitcoin privkey: If you have TWO pair privkey(compressed and uncompressed) I wrote again TWO pair, yes i know, many person say - it is not possible, but... And this works with many other address, can anyone can make algorithm for compute privkey from pubkey Pubkey is the same for both pair
Crypto schemes normally use discrete logarithm instead of normal logarithm. I think this has to do with the fact that discrete logarithm is hard to solve while normal logarithm isn't. Can someone explain why discrete logarithm is hard to solve and normal one isn't?
It is known that DSA admits universal forgery under assumption that the Attacker can solve the equation $x\equiv R^x\pmod p.$ Are there any other protocols admitting universal forgery based on non-trivial mathematical problem?
Most of the cryptographic schemes I know are all based on group theory, e.g. they use finite groups. Can someone explain why is that the case? And why not base the schemes on elements and operations say from natural numbers or some other infinite sets? E.g. $\mathbb{Q, Z, R}$?
Cryptographic schemes claim to use a security parameter K for deriving signing key and verification key. What does this parameter signify ? how can be chosen?
I am very new to cryptography, and am having a lot of trouble googling my way to an answer to the following problem. We have an external party (telephony provider) recording phonecalls for us. We would like to make very sure these can only be listened to when appropriate. The ideal solution would be for the external p...
This question while asking for something different brings up an intriguing problem: If you can find $x$ such that $x\equiv R^x\pmod p$ then you can break DSA. Now I thought that one might be able to relate this to the discrete logarithm problem somehow, but I failed to find the relation and so I'm asking this (somewhat...
I've just been studying the DES crypto algorithm as presented by Christof Paar in his book entitled, Understanding Cryptography as well as his lecture. There is a diagram on page 68 of the text where the key schedule is shown and I understand the following information about it already: A 64 bit "key" is originally inp...
I am not sure whether such a question is accepted here, or if this is the correct place to ask. I have done some research on this topic, however most of the information was way too complex for me to understand. I know that the most used protocol for key exchange between two parties A and B, in practice is Diffie-Hellm...
I'm doing exam papers for a crypto exam and I've been given a corrupted ECDSA signature. I'm asked to check if the signature is valid (which I know how to do), however, the q value is corrupted and so I can't actually check the signature. Any ideas on how i'd find the value of q? Curve, E = y^2 = x^3 + 2x + 2 Field siz...
I am working on creating an RSA Algorithm and learned that OAEP is a padding scheme that is commonly used before encrypting using RSA. Is this step necessary? Will it harm the integrity/security of the encrypted text?
Consider Shamir's Secret Sharing scheme with $n=5, t=3$ (i.e, there are 5 shares, and when we have 3 of them we can reconstruct our secret $s$). Let $f(x)$ be the dealing function, i.e the secret $s$ is defined as $s = f(0)$. We assume that given 3 participants who gather together in order to reveal the secret, one of ...
I'm looking for a method for 2 peers verifying the authenticity of each other's public key that was transfered over an insecure channel and where the needed secure side channel can only transfer short values (significanlty shorter than the length of a cryptographic hash) but in both directions. Are there standard metho...
Being a software developer, I haven't dealt with crypto so far. So I know very little, sorry for that already. I am aware that you should use bcrypt, scrypt, Argon2 or PBKDF2 for generating a hash from a password. However, I have a question about PBKDF2. DK = PBKDF2(PRF, Password, Salt, c, dkLen) PBKDF2 uses a pseudor...
None of the implementations of ChaCha20-Poly1305 AEAD scheme I've seen so far provide a streaming API. Instead, ChaCha20-Poly1305 is presented as an inseparable combination, closely adhering to the pseudocode from the section 2.8 of "ChaCha20 and Poly1305 for IETF Protocols", which requires the plaintext message to be ...
Suppose I have a set of elements, with known hash (e.g. SHA-2). How can I calculate the hash of the set? With it I mean an unordered set, so the order of elements is undefined and shall not play any role in determining the hash of the set. In theory any commutative operation applied to the hashes should be fine, but I ...
Is there any advantage in using raw public keys (RFC 7250) in comparison with pre-shared keys (RFC 4279) in TLS, when I need client authentication and have an unique key per client deployed to them out of band?
I'm working through an exam paper for a cryptography exam and I've come across a question I'm unsure on. Six users have been given the partial keys below $P(x) = (k + \sum_{i=1}^2 c_ix^i)\bmod{503}$ User X Y 1 10 25 2 20 405 3 30 272 4 40 129 5 50 479 6 60 316 Reconstruct the secret key K to verify it is ...
Is there any reason why CCM was created with encryption/decryption being done with a counter versus using CBC-then-MAC?
Suppose we have a tweakable block cipher ($E(K, T, X)$ and $D(K, T, X)$) that is used in a scheme where the tweak, either in whole or in part, is used as a counter to make each block encrypt to a distinct ciphertext. If we XOR all of the blocks together and then encrypt the result, do we have a secure tag?
In RSA: Suppose I have already chosen p,q and constructed phi(n). Now my question is if it’s important whether I encrypt with e or with d? I don’t think so, e.g. because when encrypting I take plainoneofthe2numbers = cipher and then decrypting I take ciphertheotherofthe2numbers = plain, which is the same as taking plai...
I have a configuration table which stores all device of a system and the corresponding serial numbers : |------------------------|---------------------------|--------------------------| | # | Device type (1 byte) | Serial number (4 bytes) | |------------------------|--------------------------...
I’m very interested how SHA-256 handles messages, but I’ve got 3 questions. (As I have already read in some answers before, SHA-256 is not directly performed on the message but on an array, thanks for that.) In my understanding after padding the message to a multiple of 512 bit length, we put the message into a 64 en...
I'm currently reading Paul Garrett's book "Making, Breaking Codes", where he goes through the standard textbook implementations of different crypto-systems (RSA, Elgamal etc). When he talks about the different attacks that can be performed on these systems, he often uses the extended euclidean algorithm on different n...
I am working on a problem in which I have two large safe primes say p and q randomly selected each of 512 bits. I have generated these safe primes using OpenSSL library.Now, n = pq What will be Zn* called? Is it a group under multiplication modulo n and same as (Z/nZ)*? But I have read that (Zn,⋅), integers modulo n...
I'm reading this paper: Traceable Ring Signature. I see this in section 4: $A_1=(\frac{\sigma_s}{A_0})^{1/s}$ My question is how to compute this, such as: $x^{1/y}$ where $x$ is a generator.
Consider E - encryption function and H - function calculating hash of message. Is there any E, H for which for message M: H(E(M)) = H(M)
On this website, we have a lot of questions and answers devoted to Shamir secret sharing. We make it clear that Shamir secret sharing does not guarantee integrity. When we want integrity, we need to use a verifiable threshold scheme. But it is never explained how a malicious secret is actually forged. Consider an easy ...
Are there any post-quantum blind signature algorithms? Since hash-based blind signature schemes have proven to by impossible (based on a response to this question) is this an active area of research or is it only feasible by using extraordinarily large pre-quantum algorithm keys?
I've been reading up on blind signatures and am trying to wrap my head around the concept - specifically in the context of anonymous blockchain transactions using vouchers. One particular issue I'm having with this is understanding what precisely a blind signature consists of. Do these differ from signatures of hashe...
Recently, the CRYSTALS lattice-based cryptographic suite has been published, which is based on "module lattices". What is Module-LWE? How is it different from Ring-LWE?
I was reading through this paper and came across (pg. 11 of PDF, 5 of paper) the right_encode(x) and left_encode(x) pseudo-code sections. These contained this: Let $x_1,x_2,\ldots, x_n$ be the base-256 encoding of $x$ satisfying: $x = \Sigma \;2^{8(n-i)} x_i$, for $i = 1 $ to $n$. What does this mean the algorithm ...
I am learning about Shamir's secret sharing scheme and I've come across this problem: Let's suppose we have a combination of a (3, 6) and (1, 2) Shamir's schemes, where participants $P_1$ and $P_2$ get shares in both schemes and others in the first scheme only. The shared secret is the sum of the two shared secrets. Is...
From researching post-quantum cryptographic schemes it seems hash-based and lattice-based algorithms are the most promising (MQ-based seem to be covered by patents and have more potential unknowns which could be used to exploit them.) Hash-based schemes seem like the most reliable, but lack certain features found in l...
I recently thought about a secure password storing mechanism. I wanted to ask if the following password storing mechanism is resistant against rainbow tables with a secure password and the attacker knowing the hashing and salting mechanism. tl;dr: Instead of using a randomly generated salt, the salt is derived from th...
I have found the following two block/stream ciphers or Hash Construction that make use of AES or its round functions A New 128-bit Key Stream Cipher LEX 3D: A Three-Dimensional Block Cipher ALE ASC-1 Which other constructions make direct use of AES round function?
Prove that any two rounds of (1,2)-oblivious transfer, that is semi honestly secure, imply public key encryption. My ideas so far: Let's say Alice samples two $n$ random strings $(x_1, x_2)$, and Bob will ask for $x_i$ using the given OT. Now, wlog, we'll deal with 1 bit encryptions. The main idea I had, is that Bob...
I read about HMAC and want to be sure if it protects against replay attacks as well.
In Wikipedia there is a page on hybrid cryptosystems. However, although cryptography contains a lot more than just encryption, only hybrid encryption using key encapsulation and data encapsulation is discussed. So my simple question is: should I consider a signature scheme using a hash a hybrid cryptosystem? Or is the ...
I am encrypting a text file using AES 256 encryption. Does it add much to the security of the file’s contents to also add a salted password to the file? (I don’t believe it would add much) Can a salted password be added as part of the encryption process to make the encryption itself more secure? ( I don’t believe so - ...
I have sensitive logs that needs to be encrypted using AES-256 and RSA. Due to the nature of the logging system, the entries (rows) need to be encrypted one-by-one. My approach was to reuse the same AES-256 key and IV (and also the same RSA pubkey) per run of the application. I would save the unencrypted IV and the RSA...
I'm trying to understand the process of ECDSA signing. I already figured out the process of generating a public key out of a private key by multiplying the private key with G. The equation for ECDSA signing is as follows: $S = k^{-1} (\text{hash} + dA * R) \pmod p$. What I'm trying to understand is the process of multi...
Assume a voting with delegates, where each delegate's vote $v_i \in \{-1,1\}$ has a certain weight $w_i$ depending on the number of people who elected the delegate. Is there a way to calculate the sum of votes $\sum_{i} v_i w_i$ without revealing $w_i$?
I have written an application to brute-force attack Bitcoin addresses for OpenCL. It implements a simple exhaustive search starting from public key G (private key 1) and point increment (addition of G) to get next key. It works, but its performance is one order of magnitude slower than its CPU implementation using GMP ...