instruction
stringlengths
32
27.2k
This questions comes from a section outlined in RFC 5297 on SIV-AES. The paragraph in particular outlines the idea of a never repeating nonce vs an "almost always" non-repeating nonce. If the nonce is random, a requirement that it never repeat will limit the amount of data that can be safely protected with a single ke...
What is the high level idea why trapdoor is used for digital signature? Are there any digital signature schemes without trapdoor?
I have a continuous stream of real-time data. It must be consumed immediately or discarded, so I'm using UDP for transmission without ACK or retransmission (the connection is unreliable). The packets I'm sending are of the same length, and one packet is sent per transmission (each next packet invalidates the previous o...
import binascii import re import base64 ptext = input("Enter Plaintext\n\n\n") print(ptext) key = input("Enter Key\n\n\n") print(key) ptext01 = "" key01 = "" for c in range(0, len(ptext)): ptext01 = ptext01 + ("%x" % ord(ptext[c])) for c in range(0, len(key)): key01 = key01 + ("%x" % ord(key[c])) i = 0 j ...
I have a question. For example I have text: "The quick brown fox jumps over the dog!" It has 32 letters. If I encrypt the first 16 letters with key: "11111111111111111111111111111111" and nonce: "1111111111111111" and next 16 letters with the same key and nonce will it be secure?
As suggested in this answer i can use nacl for public key encryption with: ephemeral_pk ‖ box( m, recipient_pk, ephemeral_sk, nonce=blake2b(ephemeral_pk ‖ recipient_pk)) But if i want also the sender to verify that it is him. Would the practice to use HMAC with preshared key or using a box as nonce be safe?...
Meet-in-the-middle attacks are used to justify that attacks on ECC and double encryption will have complexity of $O(\sqrt{n})$ for ECC and $O(2^{n+1})$ for double encryption complexity instead of $O(n)$ and $O(2^{2n})$, respectively. From my understanding (and please correct me if I'm wrong), meet-in-the-middle attacks...
I am looking for help with some issues that I have about the guessing entropy (GE) in side-channel attacks context. I have read some papers where GE is used as a metric to measure the attack's performance. In this paper, they define it like: The q parameter in the expression represents the number of queries My interpr...
Is it right that repeated AES encryption under the same key will eventually lead back to the original plaintext? The reasoning is that AES acts like a reversible permutation of the blocks, the composition of several permutations is yet another permutation (closure), and because the number of permutations is finite, it ...
This question is quite related to this one, but I am looking for more details. I am writing a very basic implementation to demonstrate how RSA works. My current implementation generates key pairs using 64-bit integers. I am looking for the proper method to encrypt a string. I guess the bytes are packed together (32-bi...
For example would a key with 15 random letters be enough to protect a 52 letters plain text?
was frustrated by which one to pick and my brain could not guess which one is better Authenticate the whole file as one with a hash vs authenticating each ciphered text. So very quickly: i have super large files of many GB, these cannot be encrypted at once with AES-Rijndael-CBC, so i split these large files into small...
I'm new to ECC. From this website (GlobalSign Elliptic Curve Cryptography) a 256 elliptic curve key pair provides as much security as a 3072 bit RSA key pair. My question is: how do experts come to this conclusion? Is there an algorithm that can check or compare the key strengths of both algorithms? Which parameter of ...
The Bitcoin Bip-39 dictionary has 2048 words. And a random 24 of them are pretty secure together. What if the source is bigger (all words in the language) but there are only about 7-8 words? These words will be totally randomly selected by their index.
I understand the concept that when you xor the cipher texts you get the XOR messages cause the keys get XOR-ed and cancel out... This is at least the case when both the messages are of equal lengths. What about when both the messages are of different lengths? Does the shorter message get padded? Which of the key would ...
Assume $tag[i]=\operatorname{MAC}(key[i],msg)$ Now we know: $tag[0],tag[1],\ldots,tag[n]$ $key[0],key[1],\ldots,key[n]$ Can we get the $msg$ from this? Or can we get the $tag$ of this $msg$ using a known key?
Imagine conducting a padding oracle attack against CBC mode with 16-byte length blocks, and PKCS#5 used for padding. You start, as always, revealing the last byte of plaintext. Then you iteratively move backward and reach the first byte of last plaintext block. At this stage, you already spoofed the padding with 15 byt...
For example I have the password X and I want to encrypt 2 different things. Even if one of them was stolen due to a keylogger, other will be completely safe. I wonder how safe something like this would be if the master key is completely random, secure and unknown. Also with what algorithm, program would i be able to do...
Why does it matter what kind of random number generation is used during key generation? E.g. this answer states 7-8 words selected truly at random make a strong password. My problem's with the "truly" here. My thinking is - whatever key I chose with whatever random number generator, the information isn't available afte...
I am trying to shuffle a standard 52-card deck in a perfect way (every outcome should be possible at an equal chance). I am not, at this point, concerned with cryptanalysis attacks against it. I have run into some problems/questions that are probably answered in cryptographic theory: Most PRNGs run off some sort of in...
For my personal research, I have to create a messaging app, but security is only important part of application, security from MITM (man in the middle attack), at device end, and at server level. (note: this will not end to end encryption, as I want to backup messages on server for cross-device access like telegram). I ...
What I want to know is how to perform symbolic finite field computations in SAGE math? Such computations are required in building algebraic models for cryptanalysis. To explain this mathematically consider the finite field GF($2^n$). If I am given the irreducible polynomial of degree $n$ and $a$ its root which generate...
Is it secure to use authentication strategy like this: store key in database - crypto.randomBytes(32) store IV and encrypted data in user cookies - crypto.randomBytes(16) On request decrypt encrypted data using cookies.iv, cookies.data, database.key. If decrypt was successful proceed with request. Encrypted data is r...
I have a project where I need to use a linear partially blind signature scheme. I looked at Abe-Okamoto, but I can't easily make it linear. So I looked at Okamoto-Schnorr blind signatures (here and here), which is linear, and came up with a general construction that would suit it. The idea for the partially-blind cons...
I'm coding a bot on Telegram to sustain a quiz game. A group of people (authors) can upload photos of streets or particular landscapes that they have found on internet, without any description, and have autonomously work out the exact location they were taken. So along with one photo the author has to enter the cordina...
I am doing a project using ECDH with Curve25519. I use mbedtls library, in the implement, I realize that the private key of Curve25519 is clear 3 last bit, or it is divide by 8 and the cofactor of Curve25519 is 8 too. I looked to another curve (Curve448) it cofactor is 4 and the private key is divide by 4 too. I tried...
Has AES-128 been broken over the full 10 rounds? If so, by what means? By a commercial entity? By a supercomputer? If not, why is AES-256 used to replace AES-128 so frequently?
The protocol works like this But I can't understand what's the utility of message 4 and 5, what do they protect from? They do not protect from replay attack if Ks gets compromised because B won't be aware anyway of its freshness. Wikipedia says that Bob sends Alice a nonce to show that he has the key, and Alice sends...
Questions Is the only way to know which padding was used is to know the context of how sha256WithRSAEncryption was used (that PS is 0xFF when signing, and random non-zero when encrypting)? Is there an explicit documentation stating that, or is a broad understanding of RFC 8017 the only way? Background While analyzing...
In the SHA-2 family, specifically SHA-256, there are functions called Sigma0 and Sigma1, which look like this: Sigma0(b, c, d) { Return (b & c) ^ (~b & d); } I don't really understand the logic or idea behind this. I looked on the internet a lot, but I couldn't find an answer to my question. So does anybody know w...
I have the following data where all the inputs are Big Integers, group size $p$, group generator $g$ public key of the receiver $y$ $c_1$ and $c_2$ Random Number as well I am trying to execute an EL Gamal Attack (On a Weak Number Generator) without knowing the secret key $x$. $$y = g^x \bmod p\quad \text{where } ...
When someone collects lots of RSA public modulus, the first thing that comes to mind is; $$\text{GCD them all}$$ If you calculate the GCD of two different RSA modulus and if the result is not 1 then you find one of the factors. This has been actively studied in 2012 - Heninger et. al Mining your Ps and Qs: Detection o...
Let $P$ be a prime and $g$ a value between $2$ and $P$. Let $M$ be the set of numbers which can be generated with $g$: $$M = \{g^n\bmod P, \text{ with } 0 < n <P \}$$ If $g$ is a prime root of $P$ all values $1$ to $P-1$ can be generated. The sum of those would be: $$S=\sum M = \sum_{n=1}^{P-1} (g^n \bmod P) = \sum_{n=...
Is there a lattice based PKE which is IND-CCA1 secure? Actually I am only familiar with LWE and SIS. So I want to know that what the IND-CCA1-secure LWE based PKE scheme looks like?
There are charts about most used letters in English. What about the letter order? For example letter X has a bigger chance to appear than letter Y as the first character and something else for the 2nd character.
How secure would this be? To be clear, I mean replacing the block cipher encryption step in the Wikipedia diagram explaining CBC with plain old XOR? EDIT: Replace block cipher encryption part of diagram with XOR ($\oplus$) CBC diagram Or: ($C_0 = IV$) $$C_i \equiv \left(\bigoplus_{C_{i-1}}^{P_i}\right) \oplus {K}$$
I'm creating a program with key access for a determined term. I've made a code that will generate a key (password) with 16 characters length. The following information is encoded: initial date 6 characters, ex. 010120; term up to 3 characters length, ex. 1 or 10 or 365 days; term length identificatior, ex. 1 or 2 or 3...
Lately I have seen that many websites warn us of changing RSA for ECDH, and that the latter is much better if we use its "ephemeral" form or better known as ECDHE. So is ECDHE recommended to use more over other algorithms today?
If there are two people Alice and Bob, and each has one set. They want to know whether their sets have intersect or not. Is there any Private Set Intersection scheme that only leak whether intersect or not without the real intersection value? Thank you!
I have an RSA system between multiple parties. Alice takes the targets (Bob and Oliver) public keys and encrypts a message using them and sends it to them. All parties know each other's public keys and the ciphertexts received. I wanted to verify that all the targets are receiving the same message, so I thought Bob cou...
I'm creating an academic poster for my EPQ on the mathematics of cryptography. I would like to do a section on AES, however, I am struggling to find good resources to understand the maths. I have watched the computerphile video on AES but it doesn't explain that much of the maths. Is there any good resources out the...
I am trying to understand how neural networks are used to do DPA, but I am having trouble understand DPA. My current understanding is that with DPA, we are just guessing one piece of a key at a time, and DPA tells us if our guess is correct or not. Now I am not sure what role do the neural networks play here. Are they ...
In Rogaway's OCB mode, the offset (derived from the key) ist XOR-added twice: Once to the plaintext block, and a second time after the Encryption. I am wondering, why the second XOR operation is necessary. The design is I believe inspired by the XEX construction introduced by DESX. In that case, the second XOR is nee...
For $N=pq$, if the first $x$ least significant bits of both $p$ and $q$ are leaked. what is the advantage in factoring $N$? Does this give an advantage beyond simply lowering the number of bits we have to guess for the smaller factor?
I want to do a completely serverless p2p chat application on web browsers, so it won't even have a database to store accounts, but I still want to have some kind of identity system on it (an user can have a username on this chat that only they can use). To achieve this, I began to work on an authentication system a bit...
I'm interested in developing software capable of encrypting personal files (which will ultimately be backed up to the cloud) and have been doing my best to follow best practices. There are many forms of authenticated encryption. (AES-GCM, AES-SIV, AES-GCM-SIV, CBC + HMAC, CTR + HMAC, etc.) However, I'm having a hard ti...
I am currently working on public key encryption schemes and I want some help to figure out how decryption algorithms work. Suppose we have a public key $pk = (G,p,g,e)$ with $e \in Z^*_p$ . (where $G$ is the message space, $g$ is a generator of $G$, $p$ is the prime order of the cyclic group $G$). The secret key $sk = ...
I've been researching some of the types of encryption that the python SSL library uses. Among them the best I've seen are: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx = ECDH Au = RSA Enc = AESGCM (256) Mac = AEAD ECDHE-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx = ECDH Au = ECDSA Enc = AESGCM (256) Mac = AEAD TLS_AES_256_GCM_SH...
We want to design a symmetric encryption scheme. Note that the following things are true for our system: The plaintext P will change every time for a given user. A user will choose a password which may remain same for their lifetime A 256-bit key K is derived by hashing the user's password(using SHA256). We will need ...
Recently, I studied about Cramer-Shoup encryption scheme. Then, I read a book which mentioned a simpler version of this scheme, the Cramer-Shoup Lite encryption scheme. I was wondering if there is somewhere a formal proof of IND-CCA security of Cramer-Shoup Lite encryption scheme. Any help would be appreciated.
I am trying to make the login page faster by using low ram $hash = sodium_crypto_pwhash_str($password.$MAC, 1, 10240); My question is that I dont like login page taking too long to process like one second and if I make it faster by using minimum parameters does it make it insecure? I am using a very long MAC to make i...
I know this isn't the best practice, but what if I took a cheap/fast 128-bit stream cipher (assuming both the key and the stream blocks are 128 bits) and mixed in the plainkey with the plaintext (let's say the 128-bit key appears about once within every ten 128-bit blocks, but at otherwise random positions to prevent a...
Does the following scheme exist? Let f be a one-way function (say, an encryption scheme). Let $Enc_{sk}(x)$ be an encryption of x. We then have $Eval_{pk}(f, Enc_{sk}(x)) = f(x)$. Note that this is not homomorphic encryption since in that case, $Eval_{pk}(f, Enc_{sk}(x)) = Enc_{sk}(f(x))$.
I have a question in (textbook) RSA. Suppose we have two public keys $pk_1=(e_1,N)$ and $pk_2=(e_2,N)$ (with $\gcd(e_1,e_2) = 1$). Assume that there are $\sigma$,$\sigma'$ such that $\sigma$ and $\sigma'$ are a valid signature on $m_1$ and $m_2$ under $pk_1$ and $pk_2$ respectively ($m_1$ and $m_2$ are messages in $\m...
Group law operations on pair-friendly elliptic curves are slower than in non friendly elliptic curves, but how much slower? Can't seem to find a performance comparison between the two for a given security parameter. And what is the most efficient curve of each group?
I'm using microsoft visual studio 2019 c++. I have aes-ctr-128 implementation. Encryption process: Generate key pair for aes-ctr-128 using CryptGenKey() function Encrypt whole 16000 bytes array using key\nonce that was generated previously Encrypt key and nonce with RSA master key Write encrypted key\nonce in "key.tx...
I tried to create a 4 partied Diffie-Hellman implementation for 4 people using its cyclic group property. However, I am not sure regarding those 2 issues, and would appreciate if you could elaborate on them: Is it safe against a passive adversary, who just listens to messages, or is it also safe against an adversary ...
i am trying to understand the differences of using k in the following scenarios to better understand the protocol and most importantly the consequences of using such k. so i wonder, some user, call him A sends two messages to B using El gamal. some user C, is not happy he's not invited, so he listens and gets those two...
I was experimenting around with DES and decided to implement an IV (Initialization Vector) for it. I noticed that in DES, which is 56 bits and 8 parity bits, the IV would be 8 bytes in length. Does that mean that if I were to program DES but using a 128-bit key, the IV would be 16 bytes in length instead of 8 bytes in ...
Since I am not able to comment under the topic, I would like to ask here why in question 2 old post, we cannot distinguish the two distributions, even with unlimited computational power? Also, what can be said about the distribution of exponents a+b modp when b is taken at random from Zp, but a is fixed? Any help would...
I have a school project in which I'm comparing asymmetric and symmetric encryption. I need two different types of easily crackable encryption, one symmetric and one asymmetric. I am planning on encrypting a string of text and then cracking that encryption. I would like the encryption (and cracking if possible) to be d...
I've been trying to reconstruct an encryption algorithm that produces a known ciphertext from a know plaintext. I have done some analysis: the algorithm operates on single bytes a plain text can be of any length and len(ptext) == len(ctext) for a same letter plaintext the ciphertext repeats after 20B Example (bytes a...
The SwHE schemes due to Brakerski and Vaikuntanathan (BV) and Brakerski-Gentry-Vaikuntanathan (BGV) have common concept in which the message bit is put in the least significant bit of the ciphertext. Let $t, q\in \mathbb{Z}$ be moduli that determine the plaintext and ciphertext space, respectively. The BV and BGV schem...
I am wondering: If we take this scheme/procedure and each of it seems very secure (to me at least), is it truly secure or is there a vulnerability hidden in the process? This is the scheme: Bob has an RSA key with modulo $N$ with a size that is considered safe, 2048 and a public power of $e=3$ (should assure efficient ...
I have many clients and a single server, and on each of these clients I want to be able to verify a message did indeed come from my server. My idea was to send some sort of key with cryptographic significance. For example, say I wanted to send a boolean from the server to the client, I could send a message like this: {...
For elliptic curve $ y^2 = x^3 +3x+7$ I found the finite group $ E(\mathbb{F}_{11})= \left\{ \mathcal{O}, (1,0),(5,2),(5,9),(8,2),(8,9),(9,2),(9,9),(10,5),(10,6) \right\}$. I have to find a generator of a subgroup of $ E(\mathbb{F}_{11})$, but for every point $P$ in $ E(\mathbb{F}_{11})$ when I try to calculate $[2]P$...
Rotor I with ring A would look like this: ABCDEFGHIJKLMNOPQRSTUVWXYZ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ EKMFLGDQVZNTOWYHXUSPAIBRCJ Inverse rotor I with ring A would look like this: ABCDEFGHIJKLMNOPQRSTUVWXYZ ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ UWYGADFPVZBECKMTHXSLRINQOJ Rotor I with ring B would look like this: ABCDEFGHIJKLMNOPQRSTUV...
I am writing an application that involves checking to see if data has been created by me. I do this by encrypting the data with the private key on my server, and then decrypting it using the public key on the client. If the result matches the hashed version of the message then I know it came from me. However, I'm using...
After reading a lot of articles and the microship maunal for keeloq IC, I think I understand how the encryption and decrytion works. If I understand correctly, however, the decryption require the exact same 64-bit key as the encryption does. My question is how the receiver get that key for decryption in the first place...
The following table specifies a cryptosystem based around a very simple encryption algorithm with four different plaintexts A, B, C and D (one corresponding to each row) and four different ciphertexts A, B, C and D. The encryption algorithm has five different keys K1, K2, K3, K4, K5 (one corresponding to each column). ...
As I am reading the Paper: MDx-MAC and building fast MACs from hash functions I am having trouble understanding the Attack on the Envelope Method (4.3). In particular, I am not sure what chaining variables are referring to and what Prerequisites have to be met in order to execute the attack. Maybe a more detailed/ reph...
I have a question about a cryptographic nonce. I understand the use of a nonce, however there is one particular part that I don't understand. Please consider the picture below. I don't really understand why a replay attack is impossible, if the nonce is not encrypted. Because, if it isn't encrypted and I (as an attack...
In a recent study SHA-1 is a Shambles - First Chosen-Prefix Collision on SHA-1 and Application to the PGP Web of Trust by Gaëtan Leurent and Thomas Peyrin. 2020, they showed the first practical chosen-prefix collision attack that required two months of computations using 900 Nvidia GTX 1060 GPUs. Chosen-prefix collisi...
I am studying elliptic curves in particular point counting. If I have coordinates P and 2P, is there a way to calculate the total points in between P and 2P using either curve parameters or algorithm? The reason for the question is to determine if there is difference in the total number for each nP, without having to ...
I'm more of a visual person, so a chart or table layout usually works best to help me "see". I'm just trying to locate a resource that shows me where the various ciphers fall in relation to each other based on the various configurations they can be used. Same for file hashing (using SHA-1 vs HMAC SHA-1, etc). NOTE: As ...
Does anybody know applications of higher reciprocity laws (i.e. the reciprocity laws "higher" than the quadratic one, like the cubic or quartic reciprocity law) in cryptography? So far I have found this paper that uses the quartic reciprocity law to identify the messages in the Rabin cryptosystem.
In the following paper (page 5) they have a proof that a triple $\left(g,b_{i-1},b_{i}\right)$ is of the form: $\left(g,g^{x},g^{x^{2}}\right)$ for some x. The relevant text from the paper is as follows: They say the protocol is based on a classic proof that a tuple is a DH tuple, however I don't agree because I thin...
To give some context: I am looking for a suite of techniques and tools that can theoretically enable me to conduct analysis such as classification on image datasets in a manner in which a naive observer cannot derive "much" information from an image e.g. if the image is of a person/object then the naive observer cannot...
I'm trying to solve an exercise where you have to compute two plaintexts $p_1$ and $p_2$, knowing the corresponding ciphertexts $c_1$ and $c_2$ and the public key, of which $e=3$, and $n$ is a large number. Also given is a relation between $p_1$ and $p_2$. $p_2 = c_1 \cdot p_1 + c_2$. Where $c_1$ and $c_2$ are constan...
Let's say I have a message 0123456789abcdefghijklmnopqrstuvwxyz which gives me the SHA-256 hash 74e7e5bb9d22d6db26bf76946d40fff3ea9f0346b884fd0694920fccfad15e33. I want to prove to someone that I know a part of the message that hash to the hash, for example xxx34567xxxxxxxxxxxxxxx is it possible to do this? Obviously t...
In many applications, the MD5 algorithm is used which produces a 128-bit output which is represented as a sequence of 32 hexadecimal digits. This output is further encoded using a base62 or base64 scheme. I wanted to understand what is the need for further encoding the hash value. Why could we not use the same hash val...
It is known that a cipher has a keyspace of cryptographic algorithm whose key length is $n$ is given by $2^n$, but the keyspace of the substitution cipher is $2^{88}$ which is an approximation of $26!$. (I am considering an alphabet of 26 letters) Assuming the key length is 26 (which it should be for the alphabet) Why ...
if we assume that the s-boxes in DES were optimal. that is for each s-box, every cell in the DDT equals to 4. is there a differential characteristic in a good probability?
I am interested in algorithms that consume as less space available on a memory, for low consuming power devices such as wireless nodes. From a search I have found this article here: https://dl.acm.org/doi/pdf/10.1145/2103380.2103433?download=true I have read it but I cannot understand where it is based in order to prov...
I read about Niederreiter Cryptosystem. I understood the Key Generator, encryption and decryption of the cryptosystem, but if I want to prove that is a correct cryptosystem, what should I do?
Kind of a noob question. Suppose; We generate 1,000 cryptographic-ally secure random numbers & store each of them in an array1. For each number in this array1, we take the hash sha256(CSRN) then store the digests in array2 For simplicity, lest say array2 has 3 digests, array2 = [a22110a41f165b6b0f3cc053b50214b284add...
The destination is software (within a remote trust boundary) that expects SHA-1 results. Would it be safer for the source (that's within my own trust boundary) to replace my SHA-1 computation at my source with a SHA-512/160 instead?
My question is very simple. Can I use Post-Quantum encryption/decryption algorithms in IoT devices such as RaspberryPi, Arduino etc, or should the hardware infrastructure obey in quantum logic?
If 3DES/TDES (officially TDEA or Triple DEA - Triple Data Encryption Algorithm) encryption is used twice, using 6 different keys K1-K6 : ciphertext = EK6(DK5(EK4(EK3(DK2(EK1(plaintext)))))) plaintext = DK1(EK2(DK3(DK4(EK5(DK6(ciphertext)))))) would be such encryption more strong and less vulnerable to attacks than a ...
Consider the problem of proving knowledge of a message $m$ which has a certain public SHA-256 hash $h$, without disclosing $m$ or usable information about it, while minimizing the information exchange (across a bidirectional channel assumed to provide integrity). First restrict to single-block SHA-256 ($m$ less than 44...
Total amateur to crypto here but I've searched and searched and am at the extent of my knowledge. I've gone down several avenues to satisfy what I'm looking for but I'm just going to describe what I'd like to achieve and see what comes back. I am creating a transactional peer to peer pub/sub network and I need the foll...
I understand that the role of a Certificate Authority is to SIGN (not encrypt) a certificate. The signed certificate will theoretically contain: Plain text of data, including the server's public key Signature of hashed version of plain text of data in (1) so that a user can verify (using CA public key) that the certif...
If the attacker - some guy who really, really wants to steal bitcoins - somehow finds the ephemeral key used in an 256-bit ECDSA signature, can he recover the private key? If so, would knowing the partial bits of the ephemeral key be sufficient to recover the private key entirely?
I would like to know whether a specific PRNG satisfy the next-bit test or not. will satisfying all of NIST statistical tests on PRNG guarantees passing the next-bit test? Or is there a specific algorithm to test for this?
Recently a paper has been released about SHA-1 chosen prefix collision. They present what a chosen prefix collision is, but I don't understand how is it more interesting than a standard collision ? They briefly mention x509 rogue certificate, but I still can't get the point. Can anyone explain to me how interesting it ...
Let $P=(x_p,y_p)$ be a point on elliptic curve $E (a, b) := y^2=x^3+ax+b$, for an integer $n$, there exists a point $Q=(x_q,y_q)=nP$ on $E (a, b)$. If $(x_q,y_q)$ and $n$ are given, what is the algorithm to find $(x_p,y_p)$? If possible provide code for python.
I came to a problem when calculating some values for RSA encryption task. So the data I have is this: $e*d=81$ $C=5$ Now I have to calculate the original message($m$) and I have an issue because I can see what the solution for $m$ should be, but I get a different answer. So far, I was able to figure out that $e=27$ and...
Reading online I've found out that for example the RSA implementation that you usually find on textook is not secure. Where I can find some secure implementation of algorithm such as RSA, ECDH, ECDSA? (written in C or C++ or python)
Is using scrypt or argon2 a better key stretching technique with AES compared to PBKDF2 or bcrypt with regards to a quantum computer brute force attack. The brute force attack I'm referring to is trying to generate keys from lets say a million passwords and trying them on an encrypted text to get the password. In other...
The authors of this paper: Fast Parallel Molecular Algorithms for DNA-Based Computation: Solving the Elliptic Curve Discrete Logarithm Problem over $GF(2^n)$ proposed a novel algorithm based on DNA computing which they claim (in theory, at least) can solve elliptic curve algorithms in polynomial time. An excerpt from ...