instruction
stringlengths
32
27.2k
There is a lot of confusing information out there regarding the role of digital certificates and the use of Ephimeral Diffie Hellman in how TLS 1.3 operates. Would it be correct to state that the the digital certificate signed by the CA is only used by the client to verify that it is connected to the correct server ? T...
i'm new to information theory. I know the standard perfect secrecy definition: $$ P(M=m|C=c) = P(M=m) , $$ for all $m$ and $c$, respectively the message and the cypher. Now, i can use the entropic definitions to conclude that if the above equation holds, also the following is true: $$ H(M|C)=H(M) , $$ right? But is it ...
Im reviewing my crypto and I would like to prove the following: RSA experiment where the adversary is given N, e, and y. The adversary knows p, q. I know the RSA scheme is built on the idea that it is hard to find 2 large primes that are factors of N, and we already have this so it's easy to solve for d now. In order t...
First time question poster so I hope the below is clear enough :). Problem summary: Can a Holder and Verifier safely use ECDH for a Challenge-Response protocol where: the Holder proves possession and control over a private key $d$ using material that a trusted Issuer signs, and the Verifier learns no correlation handl...
I have a wireless capture of data and it's 12 bit hash. I am trying to identify the actual function that would have generated the hash data. I tried all the generic 12 bit CRC polynomials but none of them seem to generate the appropriate output. Any ideas on how I could reverse engineer the hash function? Here's the in...
This has probably been asked before but for a given ciphertext and plaintext pair, is it possible to have two different keys producing said pair? Or there are no collisions in AES, unlike hashing algorithms such as SHA1, SHA256, etc?
I have code where someone made the key 64 bytes (32*2) and passes to the derive_key() function. It then uses the key created for aes_encrypt_key256() which would only use 32 bytes. Is there any good reason why the code is doing that vs just using a 32 byte key that is passed to derive_key() ? TIA!!
I know next to nothing about cryptography. From what I have understood, anything that is provable can be done so using a zero knowledge proof (the result seems to be known from the 1980's or so, by S. Micali & al.) Starting from a given chess position, I want to use zero knowledge proof for a Prover to convince a Verif...
What does it mean when we say something like „we need more than polynomial time many cipher texts“? I understand it as „an adversarial can run for polynomial time and try as many messages as possible in an exhaustive search on our encoded message in this time. We need more messages than the maximum the adversarial can ...
I am exploring the implementation of a cryptographic signature that users can manually input, and I am willing to compromise security to a level where a hacker investing several thousand dollars in hardware can potentially crack it! From my research, BLS seems suitable, but the standard signature size is too large for ...
The question I'm wondering is whether the AES cipher is a closed cipher (which is equivalent to AES being a group). And this question interests me due to the lack of understanding of whether it is possible to encrypt using the AES algorithm with two different keys and hope for increased strength, as for example in 3DES...
Let us recall the Schnorr Protocol, following Chris Peikert's excellent Notes on the Theory of Cryptography. Protocol. Let $G=\langle g \rangle$ be a cyclic group of order $q$. We consider an arbitrary element $x\in G$, having Discrete Logarithm $w=:\log_g(x)$. The input to the Prover $P$ is $x,w$ and to the Verifier $...
Let's assume that the password to be cracked is 15 characters long and consists of numbers (to keep the math simple). Let's assume the attacker has the following information about the password: It is at least 8 characters long It consists of numbers. It is random What is the maximum number of combinations the attacke...
I have this uni project that I have to implement in code: "App for Secure delivery of the gray images, encryption-decryption with AES in OFB mode + secret key delivery using Merkle–Hellman knapsack + DSA signature" I am struggling with structure of the program and how to combine these algorithms together. What I did s...
I tried to understand how dense the Mod-LWR samples are in some space. I tried to see from a view similar to LWE, i.e. using GV-bound(maybe LPN is better example because GV-bound is for codes). But I have some difficulties with the parameters. Take the Mod-LWR samples used in Saber as example: If the maximum number of ...
Given a private key using algorithm RSA-PSS with SHA256 is it possible to use this key to sign a JWT using algorith RS256 (RSA with SHA256) instead of PS256 (RSA-PSS with SHA256)? The German government seems to be of the opinion it is possible and wants us to do this for one of their new tax reporting related APIs. So ...
Assume the discrete log problem: $g^x mod (p) = h$ For sure, $p$ is a prime number and $g$ is its primitive root or generator and assume that Alice sent $h$ to Bob and middle man caught it. So attacker knows $g, p, h$ and wants to find $x$. One solution is for the attacker to try all possible values. The modular expone...
Basically the same question as this one, except in my case the value to be hashed doesn’t have to be a valid Bitcoin block, but is a bytearray of arbitrary length and content (and that my use case is completely unrelated to Bitcoin). In details, I have to deal with a computation that does x^ ((Integer)sha256(y)&0x7ffff...
In the eliptic curve cryptography, we use modulus $y^2 = (x^3 + ax + b) \ \ \text{mod} \ \ p$ So using modulus definitely changes the graph points completely - i.e gives a completely different graph than $y^2 = x^3 + ax + b$ would give. What's the easy explanation of why we use modulus ? In Diffie-Hellman, I understand...
I’ve a signature system using modular exponentiation where having the exponent being a composite with a known factor allows to forge signatures… In order to check if the exponent is a prime number, the Integer has to pass 27 rounds of miller‑rabin (though with always using the same base) : if it is found to be composit...
I'm helping a company to redesign their cryptographic protocol for communication within a network of embedded devices. So far I have discovered several insecure practices, such as using very short (6 characters) passwords to derive AES symmetric keys and so on. When redesigning the protocol, I wanted to use stream ciph...
I'm trying to better understand RSA. One attack I've read about is when the encrypted message $y$ and $N = p\cdot q$ share a common factor. If this happens, we can easily factor $N$ to obtain $p$ and $q$. What are some strategies that can mitigate this potential issue?
I am trying to obtain the reciprocal of a floating point value $x$ using the Chebyshev approximation, where $x$ is mostly in the order of $10^3$ to $10^5$. Subsequently, I am trying to implement that algorithm using CKKS for secure computation. My initial attempt with Taylor's series didn't help me that much due to acc...
I've recently read part of a book exploring secure data deletion techniques for many storage mediums. In particular, I read about assured data deletion techniques developed for data outsourced to the cloud. Many of the alternatives are based on cryptographic techniques using symmetric encryption to encrypt data and som...
Yao introduced a famous notion of securely computing any function between 2 users using a concept of Garbling circuit. How can this idea be extended for n-party case? That is there are n-1 garblers and 1 evaluator. How is the security of n-party garbled circuit defined? When is it useful?
I am looking at ways to blind an ECDSA signing key (and verification key respectively). Looking at proposed solutions like the IETF KBSS draft, and the IETF ARKG draft it seems that the ECDSA key blinding requires a multiplicative blinding with a blinding value $b$ that cannot be controlled by an attacker (and I assume...
RSA can't be used securely as is as it is deterministic. So an encrypted "yes" always looks the same. A simple workaround, which is apparently not secure, is to add 100 bits, say, of random salt to your plaintext before encryption. Why is this not considered secure?
I have read [1]Decentralized Multi-authority ABE for NC1 from BDH, [2]Decentralizing Attribute-Based Encryption, [3]Fully Adaptive Decentralized Multi-Authority ABE, When I compare security proof in [3](full adaptive), I find out that when construct hybrid games, authors do not rely on public and private keys generated...
The output of command fortune | gpg -vaer <receipent-id> has a line that begins with: gpg: RSA/AES256.CFB encrypted for ... What is AES256.CFB doing here when the key is a RSA key? Isn't the data supposed to be encrypted with RSA given this is public key cryptography?
I am asking it again because no one answered my previous question with more clarity. I have deleted that question One more co-CDH in Type three pairing groups $G_1 \times G_2 \to G_T$: means given a generator $g_2$ in $G_2$, $A = g_2^a$ with random $a$ and an oracle $\mathcal{O}$ which which accepts query $Q \in G_1$ a...
Forgive my ignorance, but I've run into some confusion in an AES implementation I'm testing. To the best of my understanding, ECB provides no diffusion, the same plaintext with the same key will yield the same ciphertext every time. That's what makes it so bad for real-world cryptography. But as a programmer, my curren...
Let's say we have a billion short individual json files with same regular structure: {"name": "<name>", "id": <id>}. Each file is individually encrypted with some crypto algorithm (symmetric or asymmetric). The cryptanalyst has all the billion files, and additionally knows public key that generated the billion individu...
I have read lots of books about CPA,CCA1,CCA2. I understand how to get an example satisfies CPA but not CCA2. However, I can't find such a scheme which is CPA but not CCA1. What is the extra advantage by lunch attack?
the gnfs is the most efficient algorithm for factoring numbers formed of equal composites. But it’s sequential/Linea Algebra parts mean (If I’m not wrong), that it requires at least 10 minutes on current hardware to factor semi‑primes formed of composites of equal length (in the case of 382 bits semi‑primes). Are there...
I am trying to implement the NTT as done in this paper, but I keep getting the wrong result even when doing the math by hand. Is formula 9 of the paper wrong ? (I suspect that I am the wrong one but just want to confirm)
Two popular example dynamical systems for PRNG are LFSRs, basically the orbit $(x^ks)_{k>0}$ for some non-zero seed $s$ and (primitive) $x$ in $GF(2^n)^{\times}$ CTR_DRBG, say with AES128 and 256-bit seed covering the key and initial counter block (i.e. $N+2$ AES encryptions, $N$ for output and one each for updating ...
When I'm reading this paper "On lattices, learning with errors, random linear codes, and cryptography" by O. Regev. I have trouble understanding the proof of claim 5.2. "Hence, it is enough to show that $\left|\sum_{i=1}^k p x_i \bmod p\right|<p / 16$ with high probability. This condition is equivalent to the condition...
Root (Hash01234) / \ Hash0123 Hash4 / \ Hash01 Hash23 / \ / \ Hash0 Hash1 Hash2 Hash3 Can I construct a Merkle Tree like above instead of creating it like the below? Root ...
Let's say a user creates their primary gpg key pair for User Name <user@email.com> and selects an encryption and signing algorithm that isn't widely available (think goldilocks). For instance, let's say one would create a signing key with ed448, and encryption key with cv448. If the user goes ahead and submits such a k...
In question (1.b) in Homework 10 for Brown University's Cryptography course, they present the problem of providing a zero-knowledge proof for $L = \{ ((G_0, G_1), (G'_0, G'_1)) \mid G_0 \cong G_1 \vee G'_0 \cong G'_1 \}$ It’s trivial to show that since it is an NP language then there is a zero-knowledge proof, but I th...
Consider a model of computation where we have a public oracle that provides access to a random sequence $R$. Given an index $i$ the oracle returns either 0 or 1, with the responses being deterministic, but the response for $i$ independent of $i+1$. Intuitively you can think of the oracle as providing access to "shared ...
The idea of n-1 parties being garblers and 1 party being evaluator is not clear to me. Can I get an explanation of how the BMR protocol runs stage by stage with an example. I guess the keys to each wire is concatenation of the keys from every garbler, however what's the need for permutation bit? How is the security of...
I'm doing a project for my Data security course, and it's to implement the HillCipher Algorithm in C#.I've successfully Implemented the Encryption and Decryption. however there is one function missing and it's the Analyse function which takes the Plaintext and the Ciphertext and it should return the Key I know that the...
Is it possible to construct an efficient-to-compute function $F: X \rightarrow Y$ such that Given samples $(x_1, F(x_1))...(x_n, F(x_n))$, any efficient adversary ($F$ itself is kept secret) can't figure out $F(x)$ for a new $x \neq x_i$. The function $F$ preserves locality in a sense that, for some constant $L$ and n...
Adaptive adversaries are a class of adversaries who can decide to corrupt parties in the protocol execution process. However, I want more information about this model and the proof skills. There are some questions: (1) Where can I find the corresponding security definition? When was it first proposed and by whom? (2) A...
Let $p$ be the prime number 115792089237316195423570985008687907853269984665640564039457584007908834671663 and let $E$ and $E'$ be the curve equations $$E(\mathbb F_{p^6}) : x^3 + 7$$ $$E'(\mathbb F_{p^6}) : x^3 + 4$$ then, by sextic twist property, $E/\mathbb F_{p^6}$ and $E'/\mathbb F_{p^6}$ are isomorphic. How shoul...
Let us consider the scenario where there are n-1 garblers and a single evaluator. The garblers together need to generate a garbled circuit. We use a distributed garbling protocol such as [BLO16] and hand over the inputs to evaluator. Why during the computation are the masking bits needed? It is stated that each party ...
Is there any example for data that has the same sha256sum value? Or is it impossible to find out with current computational power?
I have difficulties understanding the PRP in the absorb phase of a sponge construction: a block is XORed to the r part of the state memory,and then the entire state sent through a blockcipher-like pseudorrandom permutation in CBC-Mode or is it simply seen as an output of a pseudorrandom function f or can you do both? I...
When assuming the following idea for ciphers: For a block cipher, a 4-round balanced Feistel network where the PRF is BLAKE3 and the key schedule is: input key, input key with every odd bit flipped, input key with every even bit flipped, input key with every bit flipped. For a stream cipher: a 64-bit unsigned int that ...
There are MPC comparison protocols which can securely compute $(a<^?0):=\begin{cases}1,\text{ if }a<0\\ 0,\text{ otherwise}\end{cases}$, where $a$ is an element of a prime-order field (of course one needs a notion of what $"<"$ even means in this case). But to my knowledge, all of them use some kind of bit decompositio...
Simple question : given a randomly generated number $N$ from a hash that is hard to factor, how to check if $N$ is probably a semi‑prime in a faster way than factoring it ? My problem is while it’s easy to check if $N$ has more than 2 composites most of the time, I’d like to avoid scenarios where I spend 9 months to di...
Assuming the generator of one group $\mathbb G$ is $G$. Given an element $C\in \mathbb G$ and a cryptographic hash function $H(\cdot)$, is it hard for one adversary to find a pair of message $m$ and another element $R\in \mathbb G$ to make $RG^{H(m||R)}=C$? Besides, is it necessary to make $H(\cdot)$ become the random ...
Are the rogue key attack and the key cancellation attack identical within digital multi signature? In both cases the attacker generates a valid signature instead of other cosigners, to my understanding.
From this answer I am able to understand that if CM field discriminant for a particular curve is small then it provide us a fast endomorphism which in turn allow rho method to speed up by $\sqrt{\frac{1}{3}}$. What I cannot understand is: How one calculate this CM discriminant? Is this same as $\Delta = 4a^3 + 27b^2$ ...
Over a few days, I have been trying to understand the FRI protocol discussed in the link https://aszepieniec.github.io/stark-anatomy/fri . It explains Fast Reed-Solomon Interactive Oracle Proof (FRI) protocol using merkle tree polynomial commitment. This protocol is run between a prover and verifier. To enhance my unde...
Hypothetically, if I am using tink-java and I generate a keyset/keypair. If I lost my public key, can I get the public key from the private key?
The security of the multi-party computation protocol can be given by real/ideal world paradigm. The simulator based proof considers the joint distribution of adversary's output and honest parties output. Why is there a need to take the joint distribution in this case? Why can't we just take adversary's output to prove ...
I read a statement that states OT (Oblivious transfers) cannot be constructed from public key encryption in a black box manner. What does it mean here by black box manner? Is Oblivious transfer a complete primitive?
I'm building a micro-controller based encryption device that uses one time pads. System details The reason I'm going this route is that I want a system which secure, but also very simple and easy to understand. One time pad encryption has a known vulnerability against bit flip attacks. I would like to mitigate this ris...
I'm looking for a more efficient way to avoid adding duplicate members to a cryptographic accumulator. Currently, I require users to provide a non-membership proof, and only if the proof is valid, adding to the accumulator is allowed. Is there a way to merge the check-and-add steps into one step? Additionally, I've not...
I have case when I need take payload to client with key for decrypting. But client mustn't encrypt another payload by this key. After some research, as I understand it's case of asymmetric encryption. Me: Encrypt data by "public" key. Client: Decrypts data by "private" key and can't encrypt another payload because he d...
NIST recently unveiled the criteria for crafting a new block cipher mode of operation for AES called Accordion Cipher Mode. Simultaneously, they've announced Ascon as the Winner in the Lightweight Cryptography competition (LWC). This raises the question: What shortcomings does Ascon possess, prompting NIST to convene ...
According to answer and status of PGP on RFC search, OpenPGP RFCs can be used as "technical reference for the applicable internet standard". The quote mentioned in previous sentence is a little vague. In Crypto community, is OpenPGP widely accepted as a standard? Would anyone know what is holding OpenPGP's status to be...
I checked a related question, but I still did not find the answer I was looking for. Specifically, do we have any statistics on the usage of DES/2DES/3DES? It seems from here that credit card systems are relying on 3DES. Is this still the case? Also, I guess that many old satellites are still relying on some DES for th...
I wrote a simple implementation of ChaCha20 encryptor for files in C using MbedTLS implementation. The process of encryption is standard - I set key, then for each block of fixed size I generate new nonce (to prevent nonce reuse) and encrypt this block. Then I write nonce to a new file and then append block of encrypte...
EdDSA generates the private nonce deterministically by hashing the private key and the message, and this means that the public nonce $r$ and the signature s will be same if the same message signed more than once. Does this mean that EdDSA is vulnerable to replay attacks? I know it is not, but I don't know what the mech...
I am looking for a square matrix whose determinant is 0, however, all sub-minors of this matrix are non singular. This matrix needs to have applications in Cryptography. The matrix may be over any Galois field of type 2^r. Please provide an example and references. Thank you.
I have been reading Flaws in Applying Proof Methodologies to Signature Schemes and ran into a bit I do not understand. In section 4.2 the authors describe a scheme where a malicious signer crafts a public key and signature that verifies two different messages. They postulate that upon revealing the second message the p...
We utilize a differential privacy mechanism (Laplace noise, with scale $b$) to provide the privacy of records stored within a dataset. Each individual is associated with two, and at most $k$, records. These records are represented as $(\textsf{Username}, O_i)$, where $O_i$ denotes the $i$th noisy value (generated by th...
If I have $n$ secure assymetric encryption schemes, is their concatenation $Enc_{k_1,...,k_n}(m)=Enc_{k_1}(m)||...||Enc_{k_n}(m)$ secure? My intuition is that the concatenation is secure, but I can't solve it by reduction, which gives me the feeling that maybe an attacker can somehow take advantage of the combination o...
I'm wondering if anyone is aware of the best input difference to input into the system Heys outlines in his paper (http://www.cs.bc.edu/~straubin/crypto2017/heys.pdf) to achieve a high probability differential characteristic w/ S-Box 4_1 and S_Box 4_3 active at the point of attack (4_2 and 4_4 inactive). I've built a f...
This question may seem related to this one, but it is not the same. Let's suppose I take 1GiB of data, encrypt the data with a (secure) block cipher and apply the Vigenère key, being the key much smaller than the ciphertext data (let's say, 512KiB), repeating the key hundreds/thousands of times over the plaintext. In t...
I know that in groups from large prime order the discrete log problem is considered hard. For example, it is hard to compute $x$ from $g^x$ and $g$. Does the same holds for the root problem? For example, is it hard in such groups to compute $g$ from $g^x$ and $x$?
I'm currently studying the different adversarial settings for digital signatures. In Goldwasser, Micali and Rivests paper they propose three different chosen message attack settings, which are vastly different. More specifically they specify: Generic chosen message attacks Directed chosen message attacks Adaptive chos...
I'm tired of going online looking for a simple explanation of how the Diffie-Hellman Key Exchange works. Many guides I've found attempt to explain it using anything from "paint" to massive holes in the explanation such as "g is usually 2" which infuriates me. If you can't explain it simply, you don't understand it well...
Is there any way to derive the RSA private key from another RSA private key? Let's say I have a base RSA key $(P, Q)$ (both prime), and then use some salt and an algorithm that creates a new primes, e.g. $(P', Q') = f(P, Q, \mathsf{salt})$. Is there any security issue with my approach? Does anyone have a better solutio...
I have AES-GCM output with GMAC tag. The plaintext consists of some bitfields I know the structure of. When I generate input which should only affect timestamps and counters in very specific bytes, I see corresponding ciphertext changes only in those bytes for 2 subsequent calls to the encryption function. Ignoring the...
my question is as in the title. For example, there are 2^256 different values ​​that a SHA256 code can take. But is it possible to shorten this number somehow?
One uses a Schnorr group both for Schnorr signature (or DSA), and for Diffie-Hellman Key Exchange. They target 128-bit security, and choose prime $q$ that's 256-bit, prime $p=q\,r+1$ that's 3072-bit, and $g$ of order $q$ (e.g. $g=2^r\bmod p$). In DHKE, a participant chooses an ephemeral secret $x\in[1,q)$ uniformly at ...
The company Qrypt states that "Key distribution based on asymmetric algorithms is a weak link for cryptography" and claims to "enable encryption without distributing encryption keys" using its BLAST architecture. It gives non-technical explanations here and here and a technical explanation of the underlying math here. ...
[Computer scientist here who is not totally familiar with the factoring literature -- please forgive my ignorance.] It's well known that hard-to-factor integers, $n$, are typically semi-primes, such that their factors are roughly $O(\sqrt{n})$ in size. However, it's not clear to me that all such semi-primes are necessa...
I have a question about the implementation of the functions $$Compress_q(x,d) = \left\lfloor (2^d/q)\cdot x\right\rceil mod^{+}2^d$$ and $$Decompress_q(x,d) = \left\lfloor (q/2^d)\cdot x\right\rceil$$ from Kyber. I have copied two lines from the GitRepo, which contain the compression: t[k] = ((((uint32_t)t[k] << 11) +...
There seems to be a common trend among forums involving the topic of cryptography to shutdown any conversation very quickly, least in my experience. From the stand point of a newcomer to the field making bold claims and selling snake oil I can understand the trepidation and warnings. But as someone who has been reading...
Simple question, Given c=$b$$e$ mod $m$, we all know finding $e$‎ is equivalent to solving the discrete logarithm. But what about finding $b$ from c ; $e$ and the semi‑prime $m$ ? Is it something harder than factoring $m$ too ? If yes as this is different from the ʀꜱᴀ problem, how to compute $b$ when $e$ is more than 1...
I am a new dev dabbling in ECC. I am currently building an Android app in Java/Kotlin and can't get a piece of content that was signed with a private key to be verified using the corresponding public key. I have been stuck for a few days so I thought I'd come here! Here's my code for keypair generation: fun generateKey...
Is there a direct non-iterative formula for point multiplication by 3 in the secp256k1 elliptic curve just like point multiplication by 2 (point doubling)? If such a formula exists, could you explain how to achieve this? If not, could you clarify why it's not possible?
In a certificateless aggregate signature scheme, can a signature aggregator be a type 1 adversary (external attacker who can have access to secret value of a user)? I thought signature aggregator is always assumed to be trustworthy in a certificateless aggregate signature scheme.
I'd like to know if there's any cryptographic scheme that implements something similar to what I'm summarizing here below. Thanks a lot for reading and for any hint or question. Intro-Scenery: There's a public encrypted ledger of accounts such that each contains a balance of funds. Whoever owns the private keys to one ...
I understand that AES-CBC uses the following scheme for encrypting data (diagram from Wikipedia): And, I understand that we don't want initialization vectors to be predictable or constant, and also that you don't want it to just be a plain counter. But, what if the Initialization vector is computed with some number of...
Given the ring $R_2=\mathbb{Z}_{2}[x]/(x^8+1)$, initiate a public key encryption based on RLWE $(A,b=As+e)$ where all the parameters are selected as polynomials over the given ring. Under the assumption of brute force attack only and if the vector $s$ is 248-byte long, I have the following questions: is this secure i...
In systems where computations are performed in remote or potentially untrusted environments(e.g. Ethereum NaaS providers such as Infura), how can we gain confidence in the accuracy of the results? Zero-knowledge proofs (ZKPs) provide an intriguing solution for verifying specific aspects of computation. My focus: Proo...
I was reading LAC (https://eprint.iacr.org/2018/1009.pdf). They mention about high-hamming weight attacks on the Centered Binomial Distribution (CBD). To counter this, they propose CBD with fixed hamming weight. To prevent high hamming weigh attacks, we switch to n-ary centered binomial distribution with fixed Hamming...
I am working on generating pseudo random numbers from a chaotic oscillator's signal. In literature I have read about the Nist 800-22 test used for checking randomness. I friend gave me a software "random number analyzer to use for this test. Has any one ever used this software before? Is it reliable? If not, what recom...
I know that the normal construction for Ajtai hash functions is as follows: Pick $n, m, q \in \mathbb{Z}^+$ such that $n \log q < m < \frac{q}{2n^4}$ and $q = O(n^c)$ for some $c>0$, and some random matrix $A \in {\mathbb{Z}_q}^{n \times m}$. Then the Ajtai hash function $f_A: \{ 0,1 \}^m \to \mathbb{Z}_q^n$ is defined...
I'm trying to decrypt a message that has been encrypted using a one-time pad with a repeated key. The encryption technique involves using the same key twice. We know the message was encrypted with $k = k_0 \ ||\ k_0$ and that the length of the subkey $k_0$ is half the length of the complete key. We also know that the e...
in the Montgomery Curve using Affine coordinates, we have points that lie on either the (0,0) coordinate or have a y-coordinate of 0. The question here is: Can we use these points as the Generator Point (Base Point)? Because if we did, then the denominator of the slope in the point doubling process would be zero, and w...
Although the conjecture regarding the existence of one-way functions remained open, there are numerous NP-based methods for constructing diverse one-way functions, including DL, lattice, and subset sum problems. Recently, I have been endeavoring to employ multivariable polynomials in the construction of a one-way funct...
I'm trying to hash (as secure as resonably possible) a password inside my db. Per user I have their email, username and password and a uuid4 to identify them. And for the password I though of using python's hashlib library with the pbkdf2_hmac function. It takes: a hash function I went with sha512 the password itself ...
I just saw this article and many like them before where they use a video of some random movement and a hashing function to make a cryptographic random number generator but I'm always curious why this is as "unpredictable" as they claim. These random generators, they're supposed to help with random number generation wit...