instruction
stringlengths
32
27.2k
I want to encrypt some small text files so I can put them online, in non-restricted access (not the best idea, but it's cheap and simple). I know I should use something like Truecrypt instead of this, but I'm looking for something lighter and simple. import base64 import os from cryptography.fernet import Fernet from c...
I'm looking for the name of an RNG method or algorithm, described below. Combining multiple results of a non-uniform random number generator can produce a more uniform result. It seems like this would be a common method employed by RNG algorithms, and especially HRNGs, to produce more statistically random results. It w...
T-Tables and S-Boxes are prone to side-channel attacks, is an implementation without any lookup tables resistant to side-channel ? In this answer, https://crypto.stackexchange.com/a/63520/80926, the author says that secret-dependent if statements, loops and mathematical operations like multiplications may not be consta...
As someone new to cryptography,I have a question about how logins work on websites. I understand mathematically how asymmetric encryption works and how https web requests work to securely send symmetric encryption keys. What I struggle to understand is how a website can have an encrypted version of my password stored t...
Suppose we have a $512$-bit (or $512\times n$ bit) message that we'd like to hash using SHA-256. I've looked at the implementation, and from what I understand, after padding, there will be a total of $2$ (or $n+1$) message "blocks" that are fed into the function, with the last block being completely padding. The last m...
I've always known that the IV should be 128 bits, because that's the block size of AES, regardless of the key. However, I just saw one vendor advertising AES-256 with a 256 bit IV. Is there any point to that? Does a 'double' IV bring additional guarantees? For example, reducing the probability of having the same IV wit...
Pardon my terminology, but is there a hashing function of some sort which accepts a string as input and generates a non-textual output of some sort, or perhaps a unique output that can be used to draw a visual representation of the output. I refer it to as "hash" because the same output should always lead to the same ...
Given two Schnorr Signatures that were made from the same $x$, where each $x$ is private. Is there a way to prove that they came from the same $x$ without revealing $x$? I heard about Chaum-Pedersen Protocol and how it is supposed to address this, but I am a bit confused how it should work. The book I'm reading has the...
I was thinking about a brute force attack on Curve25519. For this, we need to solve the discrete Logarithm problem $P = [n]Q \bmod 2^{255} - 19$. $P$ and $Q$ are known Points on the elliptic curve, so we 'only' need to find $n$. The $n$ is in $ \{2^{254} + 8 \cdot \{0,1,2,\ldots,2^{251}-1 \} \}$. So there are $2^{251}$...
SHA-3 uses Padding, so the original message has a certain length. In the case of SHA-3-512 each block has the size of 576, so any message must be padded, such that it is a multiple of the blocksize 576. I know the rule that the padding is done via the formula p(m)=P10*1 where P is a predetermined bit-String and the * i...
There is a number of block cipher modes, including ECB, CBC, CFB, OFB, CTR and others. After reading "Serious Cryptography. A Practical Introduction to Modern Encryption" by Jean-Philippe Aumasson, where the author described CFB and OFB as folklore which no one really uses, I am curious which ones are most commonly use...
I am a long time scroller, first time poster in the crypto stack. I've recently been finding myself leaving the realm of mainstream/standard crypto (imo that consists of symmetric/asymmetric encryption, some ciphers and one way hash functions ect). I am currently faced with a problem regarding using the RSA algorithm t...
I've worked on low-level security (side-channel attacks etc.) for years and have a PhD in crypto. Web security is something I've never needed to touch beyond knowing how the TLS handshake works with various cipher suites. I'm starting a role where I'm expecting to also do work on mobile app security. It seems like e.g....
A new paper "New results on Gimli: full-permutation distinguishers and improved collisions" has been published stating a full 24-round permutation distinguisher with a cost of $2^{64}$ and 23-round permutation with a cost of $2^{32}$ and has been practical implementation. The 23-round distinguisher could be extended i...
I found this explanation of Enigma rotor movement on this website, but can't quite understand the methodology: Enigma rotation example A ⤑ B → D ⤑ C (rotor III in position B) C ⤑ C → D ⤑ D (rotor II in position A) D ⤑ D → F ⤑ F (rotor I in position A) F ↔ S (reflector B) S ⤑ S → S ⤑ S (rotor I in position A, reverse) ...
The BIP32 spec says this in the security section: Note however that the following properties does not exist: * Given a parent extended public key (Kpar,cpar) and a child public key (Ki), it is hard to find i. The spec doesn't say that this line is valid only for keys that are not hardened. Is this true even if the ch...
Is an MD-MITM attack possible for AES? As I know, we can break 2 rounds of AES. So we could apply the MD-MITM attack 5 times. This should significantly reduce the security of AES. What stops us from these kinds of attacks? Why GOST was broken with such method and AES not?
I am attempting to understand how to use Montgomery multiplication in an RSA private key operation: $X \equiv a^{e} \pmod{n}$ where $a$ is the message, $e$ is the exponent, $n$ is the modulus. Using the algorithm from Montgomery Reduction (with $r=2^k$, where $k$ is the bit length of modulus $n$): ModExp(a; e; n) { n i...
I am using ECDSA as a digital signature scheme. Using Charm, I got the timing for the multiplication, exponentiation, and pairing operations; they take 0.005, 9, and 4.4 ms respectively. I want to estimate the computation overhead to sign and verify a message. Any suggestions please.
In a previous question, I read ... for $b$-bit security meaning $O(2^b)$ work for an attacker to break the system... While in Katz's Introduction to modern Cryptography, I read: The key-generation algorithm $\text{Gen}$ takes as input $1^n$ (i.e., the security parameter written in unary) and outputs a key $k$". Wha...
How many value can have a private key with this format? p,q,d = (19, 41, d) where 1< d <18x40? I want know how to calculate that.
I want to find a number, such that the result of its SHA-256 hash is all 0. I don't know if this number exists.
In the paper The Security and Performance of the GaloisCounter Mode(GCM) of Operation,it shows the AES GCM SECURITY in Corollary 1. there are no distinguishing attacks against AES-N-GCM that work with distinguishing advantage greater than $A_{A E S-N}+q^{2} 2^{-116}-q 2^{-89.4}$ there are no forgery attacks against ...
I've read that storing password hashes in a database, you can store the salt in plaintext alongside the actual hash with no detriment to security. I was thinking that one could derive a key from the user's password, and use that key to encrypt the random salt, so that every time the user goes to login, the salt is decr...
I want to know if my usage of the web crypto API is sensible. I want to use it for symmetric and public-key encryption and decryption, and signatures, but as a non-expert I am scared by the warning on the MDN page: Warning: The Web Crypto API provides a number of low-level cryptographic primitives. It's very easy to m...
I found that homomorphic signatures allows an agency to carry out arbitrary computation $f$ on the signed data $m$ and accordingly gain a signature for the computation result $f(m)$ with respect to $f$. Another related notion is functional signatures, in which DO hands out a secondary key $sk$ to allow a specified agen...
I’m developing an application that runs over TLS. In addition to password-based authentication we’d like to be able to use SSH keys. Is there any prior art in using SSH keys for authentication over TLS? Does anyone know of any potential problems with implementing such a scheme? Thank you! UPDATE: After a bit more rese...
If I know the private and public exponents ($d$ and $e$) of an RSA key pair, is it possible to (efficiently) calculate the public modulus $n$?
I am looking at a seemingly popular piece of JavaScript code to generate a UUID which is supposed to be a 128-bit number: function uuidv4() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); ...
I am trying to introduce myself to cryptographic hashing and encryption. I am looking for original papers of sorts, to describe the inspiration behind why they choose certain numbers, if they are relevant, and why they choose certain algorithm features. But every paper I have found so far is like this which just descri...
Consider a use case that requires the creation of multiple asymmetric key pairs. There are two options for generating random seeds for a PRF: Use a software based RNG and generate a new seed for each key pair Use a hardware based TRNG, generate a single seed, and increment that value for each new key pair Would eithe...
A signature Sig is given as input to random oracle H, such that y = H(Sig) and Sig should be hidden from the verifier. How to prove in zero-knowledge to the verifier that y is the correct output from a random oracle evaluated on Sig which verifies under some public key in a given set of public key while keeping the Sig...
According to ElGamal encryption, in order to encrypt a message I need to generate a shared secret s and after that I am to calculate c1 and c2 that are the final encrypted data. But what if my message is much longer than the bitness of the encryption system? I could split the message into many chunks and encrypt them s...
The paper regarding curve25519 presents a theorem in chapter 2 (specification). The extension field $F_{p^2}$ is used in this theorem. I don't understand why this extension field is needed for the curve25519. This is how far I got: The theorem implies that for some elliptic curves $E$ exists a unique $s \in F_p$ for ev...
In the paper "Efficient Encryption from Random Quasi-Cyclic Codes" of Gaborit et al. p.14, I read "Encrypt$(pk=(G,Q,s),\mu,\theta)$: uses randomness $\theta$ to generate $\epsilon \xleftarrow{\\\$}V,r=(r_1,r_2) \xleftarrow{\\\$}V^2$...". Does it mean exactly "uses randomness $\theta$"? Where Can I find a descryption of...
Background Hashing files is an expensive thing for CPU. I am tasked to write a secure digital signature scheme. For that, I decided to check the integrity of files using Hash/Digest. To be more secure, my plan is to use two or three hashes instead of one. Rough diagram looks like following. Generating Hash which will b...
I want to SHA256 hash phone numbers in order to hide them. Is this a good idea? Are there any other ways I could make this safe?
I am an undergraduate student looking for resources (books or lectures) explaining mathematics involved in cryptography, such as number theory, elliptic curves etc. I found the book 'A Course in Number Theory and Cryptography by Neal Koblitz' hard to follow.
I started learning about key sharing and Shamir secret sharing, I'm wondering whether you need someone who knows the key initially and then distributes it, is this step necessary or not? In my case I have a group of people that run a permission blockchain (they are the consensus nodes) and I want all incoming transacti...
According to this paper , Multipartite secret sharing scheme is a scheme in which the set of participants is divided into disjoint parts and all participants in the same part play an equivalent role in the scheme. I am not sure about the exact and formal definition for Multilevel secret sharing scheme. What is the fun...
In the paper regarding Curve25519, the set of public keys $q$ is $\{q : q\in \{ 0,1,2,...,2^{256} - 1\}\}$ and the set of private keys $n$ is $\{n : n\in 2^{254} + 8 \cdot \{ 0,1,2,...,2^{251} - 1\}\}$. My main question is: Why is the structure of the public and private keys the way it is? What I don't understand: In T...
When I look at my public key on the key server, the first two characters of the ASCII-Armored data section (as defined in section 6.2 of RFC 4880, which defines the structure of the ASCII-Armored OpenPGP Message Format) differ from the first to characters of the public key as viewed from my terminal after downloading t...
I have an RSA encryption with public key $(3,n)$ with 2048 bits modulus $n$. I want to find the value of the plaintext $m$ so that the ciphertext (in bytes representation) value ends with \x00+MySpesificString. $ciphertext = pow(m,e,n)$ where $m$ can be any string and ciphertext has the following format any string+\x00...
Usual post-quantum crypto, like the isogeny-based algorithm, has its value lying in that no one yet has found a quick way to break it with quantum computer. This makes me wonder why don't we build post-quantum crypto based on undecidable problems? Yes, in some case quantum computers can be much faster than traditional ...
I am fascinated by the idea of blind signatures and their applications introduced by David Chaum for electronic cash and voting and his provided analogy with carbon copy is quite compelling. However looking into some schemes, as one in Wikipedia, I see that in contrast to an ordinary cryptographic signature scheme wher...
I am studying differential privacy and I got stuck again in proof of a lemma. Which is: $D_{\infty}^\delta(Y||Z) \leq \epsilon$ if and only if there exists a random variable $Y'$ such that $\Delta(Y,Y') \leq \delta$ and $D_\infty(Y||Z) \leq \epsilon $. I have a problem understanding the reverse proof. Definitions: Be...
I propose a hash function as following: H is an Merkle-Damgard hash function with a compression function $f: \{0,1\}^{3n} \to \{0, 1\}^{2n}$. Output function $f_N: \{0,1\}^{3n} \to \{0, 1\}^n$. M is input message and M* is padded message as follow rule: message M divided into n-bit message blocks $m_i$, $1 ≤ i ≤ t$ an...
An ideal lattice is a lattice $\mathcal{L}(A)$ generated by a block matrix $A = \left[ A^{(1)} \mid \dots \mid A^{(m/n)} \right]$ whose blocks $A^{(i)}$ are constructed from a vector $a^{(i)}$ and a transformation matrix $F$: $$ A^{(i)} = F^*a^{(i)} = \left[ a^{(i)}, Fa^{(i)}, \dots, F^{n-1}a^{(i)} \right] $$ where $$ ...
Would it be insecure to hash a message $m$ to an elliptic curve point by multiplying it to some generator $G$ for the purpose of a private set intersection ? $$ M = hash(m) * G $$ I keep seeing references that hashing with $M = hash(m) * G$ might be dangerous : How to Hash into Elliptic Curves, Thomas Icart Determini...
The Wikipedia page on MAC calls the algorithm that is used to generate the MAC as a signing algorithm. Is that a fair use of that term? Can we then say that HMAC-SHA-1 uses SHA-1 as the signing algorithm? Since the term signing algorithms is usually used in digital signatures that use asymmetric cryptography, won't thi...
One of the various equivalent definitions of the LWE problem is the following: Let $n,q$ be integers ($q$ usually is a prime number), $\chi$ a discrete probability distribution over $\mathbb{Z}$ (usually a discrete Gaussian distribution) and $s$ a secret vector from $\mathbb{Z}_q^n$. We denote $\mathcal{L}_{s,\chi}$ th...
I am trying to analyze symmetric block ciphers like DES, 3DES and AES, using Cryptool 2. I want to do a frequency analysis on each of these ciphers, in order to comment whether this is an effective way for cryptanalysis or not. However, the ciphertext these ciphers produce comes in hex form: My question is - when perf...
I've read about BIP32 key derivation functions. I'm trying to understand how, given a secp256k1 key pair, that "child" public keys may be generated from just the public key, and the corresponding child private keys can be generated from the private key. It seems to me (and I'm probably mistaken) that the HMAC-SHA512 an...
The classical discrete logarithm problem is to find $x$ such that $g^x\equiv h\bmod p$ where $p$ is a prime and $g$ is generator of multiplicative group modulo $p$. The demerit of this approach seems to be knowledge of $\lambda(p)$ where $\lambda$ is Carmichael Lambda function. Supposing instead if we had $g^x\equiv h\...
For instance, let's say Bob's phone number is X and Alice has somehow identified that Bob's phone number is X. Now she doesn't have a direct way to contact Bob, so she wants to post in a public forum with proof that she knows Bob's phone number. This almost seems impossible since phone numbers are a very limited space ...
I wish to distribute a file from A to an automated system B. The requirements are: Contents are encrypted Contents are tamper proof Contents origin is verified To do this I have devised the following system A key pair is created, where A (origin) has the private key and B (destination) has the public key. Note: I say...
As alluded to here (split-key vanity addresses for bitcoin), ECCDSA-keys can be merged such that the sum of two private keys $S=S_1+S_2$ yields a public key which is the sum of the respective public keys $P=P_1+P_2$. Thus, given a key pair it is trivial to construct all public keys that are integer multiples of that pu...
In the paper regarding Curve25519 DJB defines the base point to be $P_{base} = (9,y)$. The main reason for choosing it this way is, that $P_{base}$ has a big prime order which gives security advantages. But there are a lot of other points with the same properties. $x=9$ was choosen, because it is the smallest point wit...
I know how the Diffie-Hellman Key Exchange (DHKE) works. But where is it used? And ok, now both have the same key. But how are those keys used anyway? I've heard that HTTPS is using the DHKE. Ok, but what are they doing with the key? Are they just multiplying the message with the key? And dividing by the key on the oth...
I apologise if this question is a duplicate. I couldn't find any similar questions. I am writing a web app that consists of a series of drop-down style question menus. These generate more drop-downs as questions are answered. I want to use the end user's answers to the presented questions to generate a JSON file (or ...
Let's say we have a cipher with such property, that every round change 50% of bits in every block in average. Is it obvious or it means that after few rounds we will get exactly 50% changed bits? If I think about it, it looks like it doesn't have to be like that. Next round can delete some changes from previous round a...
It is possible that find the $a, b, c$ randomly in here? $$ abc \equiv 1{\pmod {\varphi (N)}} $$ Instead of $$ de \equiv 1{\pmod {\varphi (N)}} $$ in the RSA Algorithm.
This is question about how many RCON values are used in AES 192 and 256. I read the NIST Publication introducing AES and in Appendix A.2 and A.3 (Key Expansion for 192 and 256-bit keys), only $rcon_1$ to $rcon_8$ were used for 192 bits and upto $rcon_7$ for 256 bits. My question is how can only 7 or 8 values of $rcon$ ...
In ROLLO -Rank-Ouroboros, LAKE & LOCKER p.20, it says that "Notice that for 128 security bits parameters, the practical security is rather higher than 128 at about 170 bits." How Can I calculate this size?
Oblivious RAM has been around in theory for about 30 years at this point. Is anyone using it in practice? Has it made its way into industry? (Including any variants such as MPC ORAM or ORAM that uses trusted hardware for the client.)
I know Håstad's broadcast attack when e = 3, but what if e = getPrime(randint(350))?
I know it will not encrypt anything. But is $1$ valid as a public exponent in an RSA public key?
What is an optimal way to associate a RSA key-pair with a recovery phrase/seed for access recovery purposes? I've seen a lot of cryptocurrency wallets provide this feature, however, I'm not looking to create a blockchain or anything. Just a wallet/key-pair with a recovery seed.
There is a usual example about homomorphic secret sharing, focused on e-voting. Supposing we use Shamir's scheme for the Secret Sharing system, a participant generates a polynomial whose a0 is +1 (yes), 0 (abstention), or -1 (no), and then distributes the calculated n points to the tellers. Each teller will calculate t...
Given $\operatorname{AES-CBC}$ (128-bit), with $IV=0$ and unique encryption keys $$K_{Enc} = \operatorname{CMAC}(MK, \text{known_text})$$ where $MK$ is a shared symmetric 128-bit key and $\text{known_text}$ would be some concatenation of a message counter and a device ID, that are transmitted in plain text. $K_{Enc}$ ...
What ensures that a mined block will be accepted on the network? I mean, if I mine a valid block in the blockchain, and I transmit it to the network, what is the incentive to people accept it? Doesn't may happen a case where I mine a valid block and it get's refused? And the reverse case, what ensures that if I mine a ...
Assume: $x = m^{e-1}\bmod n$ $y = m^{d-1}\bmod n$ Here $m$ is a message, $e$ is the public exponent, $d$ is the private key and $n$ is the modulus of an RSA key pair. Now if I know $e=65537$, $x$, $y$, and $n$, can I retrieve the message $m$?
I'm faced with an issue I can't seem to understand when it comes to RSA. Below are my values for all of the parameters, unfortunately I can't seem to get the expected decrypted values from my encryption message p=113, q=117,phi=12992,n=13221 encryptionKey = e = 8473 decryptionKey = d = e^-1 = 12969 msg = 3; (encryption...
EdDSA can be efficiently performed employing the Montgomery ladder. In order to implement this method, the base point should be converted to Mont. space, then the Mont. ladder should be executed, and the $y$-coordinate is required to recover. Eventually, the achieved point should be converted to twisted Edwards space. ...
Given $x$, a vector of $m$ distinct bit vectors of bit length $N$, I want to use an XOR-hash $h$ such that all $x_i$ collide to the same value. I define an XOR hash $h$ which takes bit vector $q$ as input and performs an AND operation on each bit of $q$ with a bit vector $k_i$ of bit length $S$. $h(q) = (k_1.q_1)\oplus...
I came across different reputable sources quoting different equivalent symmetric key strengths for RSA/DH keys. This NIST paper (page 67) states the following offer corresponding security strenghts (symmetric / public): 80 - 1024 112 - 2048 128 - 3072 This is in line with the following paper by RSA Labs: 80 - 1024 1...
Most of the articles and forums are stating that the Brute Force attack can test the strength of an encryption algorithm. However, I am looking for those attacks that AES can withstand for the testing simulation purpose.
In this blog post, Matthew Green says Forward secrecy (usually misnamed “perfect forward secrecy”)... The Wikipedia article on forward secrecy (which the same sentence links to in the blog) says forward secrecy (FS), also known as perfect forward secrecy (PFS)... which implies that they are the same thing and nulli...
According to blind RSA signature wiki the random value $r$ in $m^\prime=mr^e \bmod N$ needs to be relatively prime to $N$. Why is this a requirement? A follow up a related question: after $s$ (unblinded signature) and $m$ (original message) are revealed, can anyone (and not only the signing authority) check the valid...
I recently worked out a concept for a use-case, but I'm not sure if my approach is good enough. So I would appreciate feedback and things to look out for, as I'm fairly new to this field. A User can create, change, and access data on a server. The user can also share it with other users so they have the same rights. T...
Taking EdDSA as an example, given the length of a signature is 512-bits for a given data payload, what is the probability of a collision where there is another 512-bit value that is also a valid signature? With symmetric crypto we know there is only one single key in the entire space that will validly decrypt data encr...
I am trying to implement a small encryption tool in as little code as possible as a learning exercise, and currently have managed to get everything to depend only on a HMAC construct. However, most hash functions I know (sha256, blake2) tend to be quite large when written out in Python. Are there any small hash functio...
I have a question about the AES-128 and AES-256 encryption method. I need to encrypt 64-bit size data in and out. I want to encrypt them with AES. So I turned to AES-OFB or AES-CFB because these methods do not require padding. I have at my disposal a number of 256 bits which are shared by the source and the receiver (t...
While Provable Data Possession seems to be a very useful and interesting tool for ensuring integrity of data outsourced into Cloud providers, I have never seen a reputed Cloud provider talk about this in their products. Is this tech purely academic or what are restrictions which cause the lack of adoption of PDP ?
I'm trying to sum up all Curve25519 parameter and specification reasons. Can you tell me if I missed some important reasons or parameters in the following list?: Curve: Montgomery Curve. $M_{A,B}: By^2 = x^3 + Ax^2 + x$ Reason: The projective arithmetic for scalar multiplication (Montgomery ladder) is very fast. Para...
Let's say Bitcoin had these rules from the start: An address with balance cannot more receive money An address must use all its money in one transaction This would prevent address re-use. To what extent would this make Bitcoin anonymous?
I've seen in 2 places where NIST acknowledge the possibility of using AEAD algorithm for MAC (e.g. page 7 section 5.2 of GCM spec, summary for LAEM on page 6 of LWC status report). And I see 2 problems with this: An AEAD algorithm requires a nonce - something that doesn't fit well into the interface of $\text{MAC}_K(M...
I want to manually create a GPG public key that can be imported into GPG, i.e. I want to create a file with a Public-Key Packet, a User ID Packet and a Signature Packet (for an example see here). I already managed to correctly create a Public-Key Packet with a User ID Packet and a Signature Packet, except for the hash/...
In classical cryptography, security proofs are often based on the (assumed) computational hardness of some mathematical problem. Using the principles of quantum mechanics might provide means to design cryptographic protocols that can classically not be implemented (information-theoretically) securely. But is there also...
I came across some password-based authenticated key exchange (PAKE) protocols that are based on the smooth projective hash function (SPHF) in the standard model. And I checked some related works, and most of them only considered the dictionary attack and forward security. I am wondering if this kind of PAKE via SPHF co...
In modern Secure Multi-party Computation (SMPC) protocols (informally) the notion of Fairness and Guaranteed Output Delivery (GOD) is defined as follows: Fairness: If the adversary gets the output of the protocol, every honest party should get the output as well. GOD: Honest parties should always get the output indepen...
Suppose we want to build a very basic hash function like this: $$c_i = h(c_{i-1},x_i) = c_{i-1}\oplus x_i \quad\quad mit \;\; i\geq1, c_0 = \operatorname{IV}$$ Now suppose we'd use this hash-function to construct a custom-MAC-function in this fashion: $$\operatorname{MAC}_k(c) \equiv c_n +k_1 + k_2 + \cdots + k_{16} \b...
I'm looking at RFC 8446 section 7.1 and trying to understand the following: HKDF-Expand-Label(Secret, Label, Context, Length) = HKDF-Expand(Secret, HkdfLabel, Length) Where HkdfLabel is specified as: struct { uint16 length = Length; opaque label<7..255> = "tls13 " + Lab...
Assume that $G$ is any cyclic group where the discrete log problem is hard, such as the elliptic curve group. Let $g$ be some generator of $G$. The problem is as follows: Given $(g, g^x)$ for unknown $x$, output any pair of the form $(g^y, xy)$ for $y \neq 0$. This seems awfully close to the discrete log problem but I ...
Let $\Lambda\subset \mathbb{Z}^n$ be an $n-$ dimensional lattice with determinant $d$. We know that the probability that a uniformly random integer vector $x$ is a point in $\Lambda$ is given by $\dfrac{1}{d}$. Denote $\lambda_1$ be the length of the shortest nonzero vector in $\Lambda$ and we know by Minkowski that if...
I found this scenario in CRYPTOOL2 templates but there is no explanation how entropy is used. There is just a short description "This template shows how to use a brute-force search to attack an AES-encrypted text. The Keysearcher component searches a subspace of the AES keyspace and uses the entropy of the decrypted pl...
In ROLLO - Rank-Ouroboros, LAKE & LOCKER, Ideal codes are defined in Definition 2.1.4. Thanks to the Lemma 1, it is proved that every block of ideal matrix is non-singular. Now, why do they say "hence C can be represented under systematic form"? And in the page 11, I read "indeed, the parity-check matrix under systemat...
I'm currently working on a personal project using a special kind of crypto I've imagined (noooo please don't !!!), called the Anamorphic Cryptography. The project: create a complete keyless cryptographic system with public messaging to exchange data/instructions between machines, where users have no data to keep/protec...
I know you shouldn't roll your own crypto and generally its not a good idea to implement (and then deploy) any extensively tested and recommended algorithms by yourself either. I have already seen this question, and as far as I understand, the main problem with implementing things yourself is that you will probably rem...
Let's say we have a message m of small size. I am looking for a system $S$ so that $S(m)$ is arbitrarily large, we can easily compute the inverse $I(S(m)) = m$, and any modification to $S(m)$ makes it impossible to recover any part of the initial message $m$. Let's say my initial message is $m$ = "Hello world!" (12 cha...