instruction
stringlengths
32
27.2k
In some non-interactive, pairing-friendly signature scheme, such as BLS12-381, is it possible to merge partially-overlapping aggregate signatures? For example, say you have two aggregate signatures, $X = a + b + c$ and $Y = b + c + d$, and the (unique) public keys and messages for individual signatures $a$ through $d$,...
If the mapping table looks like: 1: 000 2: 001 3: 010 4: 011 5: 100 6: 101 Then you are guaranteed that your key will never have a chain of 4 or more 1s, much fewer chains of 3 ones than would be expected from truly random number generation, and no chains of 8 or more 0s. Unless you're using an unintuitive mapping from...
I happened to watch Mr. Bill Buchanan lecture that explains Winternitz one time signature scheme (https://www.youtube.com/watch?v=eqMMlcN4zSc). The scheme shown in the lecture is susceptible to universal forgery, as if an Opponent query for OTS on a message composed of 32 0xFF octets, he gets back Hash(prive[i]) for i=...
I'm having difficulty finding documentation for the over-the-air protocols used by encrypted public safety radios. It seems that most systems are based on Project 25, previously known as APCO Project 25, now simply called P25, and that this encryption standard is based on AES-256. FPIC published a report in Septembe...
I am looking for some reference documentation suggesting a minimum reasonable length for a truncated hash (specifically, a truncated SHA-256 hash) to ensure preimage resistance. Obviously, truncating a SHA-256 hash to, let's say, a 32-bit value is unsafe since a preimage can be quickly found by bruteforcing. But what a...
I wrote the normal code to decrypt a Vigenere cipher encrypted text without knowing the key. But that won't work for this are two of the alphabets are missing and that would mess up the frequency analysis. Any idea on how to go about decrypting it?
In ElGamal signature scheme like: Keygen: $\beta:=\alpha^a\bmod p$ where $\alpha$ and $p$ are large prime numbers. Public key is $(p,\alpha,\beta)$ and secret key is $a$. Sign: Choosing random $k$ such that $\gcd(k,p-1)=1$, calculating $r:=a^k\bmod p$ and $s:=k^{-1}\cdot(m-a\,r)\bmod(p-1)$; then we send $(m,r,s)$ Verif...
I'm familiarized with the structure of branching found in Multivariate Cryptography, as it allows us to partition a $n$-tuple over $F_{q}$ into a $k$-tuple where the $i$-th element is in $F_{q^{\lambda_i}}$ for $\lambda \vdash n$ and $k$ is the partition length. Thus, instead of having just a single private polynomial ...
On EKE where the user sends a password encrypted public key and receives a password encrypted and public key encrypted secret key. What would happen if these asymmetrical keys would become symmetrical?
I'm looking to build an authorization system with a completely "public" server which involves two assumptions: The server's data is public The server is incorruptible and uncrackable i.e. nobody can pose as or hijack the server. I've found SRP which is a pretty nifty concept, but even that one relies on the privacy o...
I have a project where I'd like to use public-key cryptography in both typical sign/verify situations and encrypt/decrypt situations. For example, I'd like to create a self-signed X.509 certificate for Bob (certificate request containing PubK.bob, signed by PrivK.bob to form Certificate.bob), and I'd also like to cond...
I am trying to understand the security implications of using a well known block (or stream but in this example block) cipher like AES-128 to produce pseudo-random data. My specific question is would the output of the following be considered cryptographically strong pseudo-random data: Generate an AES-128 key using a C...
Let $S$ denote a keyless permutation that operates on $4$-bit inputs and returns $4$-bit outputs (that is, $S$ is a $4$-bit S-Box). In this question, $x_0$ denotes an arbitrary bitstring that ends with 0000 (four zero bits) such that the length $L$ of $x_0$ is a multiple of $4$ and there is no upper bound for $L$. Th...
I'm trying to follow Schneier's self-study course in cryptanalysis and am ashamed to say I am stuck on the very first problem of breaking 8-round RC5 without any rotations (i.e. just XOR and modular addition)... I've obviously found the algorithm which can decrypt any ciphertext using only a handful of chosen plaintext...
I can't find the exact type and settings for the BLS12-381 curve. Is this type-3 in Symmetric XDH settings ?
There are some papers (1, 2) describing fault attacks in EdDSA. One suggested countermeasure is to add randomness to the input of the first hash call, which outputs a scalar. This paper describes a DPA attack against EdDSA, and suggests a similar countermeasure. However, the randomness must be placed in a specific plac...
I'd like a word to be turned into a number in a way that distinguishes between lowercase/uppercase letters (eg R != r) Thanks.
After watching this talk https://www.youtube.com/watch?v=Eg_pyyeT_Qc&feature=plcp, I tried to formalize the presented search-to-decision reduction for Ring LWE, but got stuck at one point. I understand how we can construct an algorithm that finds the k-th coefficient of the secret (in "Chinese remainder representation"...
Background: I am attempting to implement the paper Publicly Verifiable Secret Sharing. I managed to get it working using modular groups, but when I want to make it more efficient by transferring to elliptic curve groups, Section 3.1 in the paper gives me problems: Let $p$ be a large prime. $G$ is a group of order $p$ $...
Assuming I am using some derivation function to generate encryption key from the string to encrypt a file. How that string is later verified during decryption? If user enters wrong password/string, why system / app doesn't decrypt entire file resulting in incorrect clear text? What mechanism is behind the scene?
Why it will be unsafe, and can be break?
I'm trying to write a XOR code for implementing CBC mode of operation from scratch but i seem to have some problem.The function takes two byte variables of 16bytes and the expected output should be 16bytes which we get it from the first line in main but when that string is converted to bytes the size increases. Feels l...
Assume: size of m = 1kB HMAC hashing function = SHA256 H hashing function = SHA256 It seems reasonable to think that there would be no difference in authenticating a message if either HMAC(k, m) or HMAC(k, H(m)) are used as this other post indicates. Am I missing something or are there other potential security risks...
As far as I can tell from reading about SCRAM and OPAQUE is that Wikipedia puts both of them in the category of challenge-response authentication. It's clear to me that SCRAM has an IETF RFC, whereas OPAQUE only has a draft. However, what are some practical differences between them? For example, are both suitable for u...
I'm doing some comparison on hash-based signature schemes. I am reading about one of the most recent schemes, XMSS^MT, and trying to figure out its actual public and private key sizes for concrete parameters. I found this paper which has some numbers for a variety of parameters, however it does not say what's the size ...
I am confused by the different definitions attributed to partially synchronous model: for e.g., in a paper by Hevia and Micciancio (PODC 2005), they state that messages sent in one round are guaranteed to be delivered in the next round, but this is completely different from the (original) definition put forth by Dwork,...
Suppose I have an arbitrary 256 bit number $m$ another secret number $k$ of the same bit length, and then I multiply them both modulo a 256 bit prime number $p$ to get $c$ as follows: $$ c = (m\cdot k) \mod p $$ Is there any way to get $m$ back without knowing $k$? Can anyone please clarify a bit more on that, and als...
I've learned that a stream cipher like ChaCha20 generates a key stream that gets XORed with the plaintext to get the ciphertext... If an attacker knows the plaintext, he could just simply XOR that with the ciphertext to get the corresponding keystream. Is there any security issue with this? I realize that it is becaus...
Suppose there are $n$ members in a $(t,n)$ threshold signature scheme. The global secret key $sk$ is not known to any single party, as the keys are generated distributed. The parties are able to construct their global public key $pk$. So each member $i$ can sign a message $m$ with their secret share $sk_{i}$ which will...
I have a frequency distribution of letters for the plaintext and the ciphertext. I'm trying to determine the conditional probabilities to identify the plaintext/ciphertext pairings. If I encrypt with Caesar cipher with the key of $3$, then $e$ will become $h$. As I understand it, the conditional probability of $\Pr(M=e...
Cryptanalysis of Linear Feedback Shift Registers. From this site I found that lfsr could be break by Berlekamp-Massey algorithm. What is the specific progress of this algorithm? And if there is any other way to do it
Right now chacha20 and blake use constants in order to eliminate fixpoints. As far as I know however inserting a bitwise not every $n$ rounds should eliminate this issue without using constants (and as a bonus chacha20 would be a $\{0, 1\}^{512} \to \{0, 1\}^{512}$ function rather than a $\{0, 1\}^{384} \to \{0, 1\}^{5...
I'm looking for some suggestions on what to read (papers, notes, book chapters?) on homomorphic encryption in order to understand the most recent (more optimal) schemes, as well as optimized use cases (e.g. Gazelle for CNNs). My end goal is a list or DAG, that has at least these components: Math background, e.g. rings...
At https://safecurves.cr.yp.to/ some elliptic curves are listed which passed certain security tests. The smallest bit-length of a safe curve listed there is 221 bits. At wiki page discrete logarithm records the current record is 114bits. Is this big gap between 114 and 221 needed? Is there an EC which passes all those ...
Assume there is a closed source application which uses Triple-DES with a fixed/hardcoded key to decrypt large amounts of data. Someone managed to extract the round keys from a process memory dump and was able to verify (using a patched version of 3DES that takes round keys as input) that these keys are actually able to...
Let's take Bitcoin as an example. Bitcoin uses SHA256, which can be vulnerable to collision and preimage attacks - although this is extremely unlikely to happen in the near-future. However, let's say an evil genius figures out how to compromise Bitcoin by developing a way to perform a first preimage attack against SHA...
While reading about Triple Diffie-Hellman, I was wondering how it can prevent MITM if the server decides to spoof key sets. For example, Alice and Bob are connected using a server. Alice ----- Server ----- Bob What if the server, with malicious intention or under government request, tries to spoof the key sets? Is it ...
First, affine transformations $S,T$ are defined by $S=A_1+v_s, T=A_2+v_t$. Let the private polynomial function $\mathcal{F}$ be known. The short description of the public key map is $P(X) = T \circ \mathcal{F} \circ S(X)$. Recall that common multivariate schemes are based on the security assumption of IP2, this is, the...
I'm new in Differential Privacy (DP) and I have two questions: Why do we have the term differential in differential privacy? Are The local and global differential privacy and global and local sensitivity referring to different concepts?
We all know that RSA can be compromised using Shor's quantum algorithm. The horsepower underlying this algorithm is the Fourier transform. However, we can use alternatives to perform this function, such as an optical Fourier transform coprocessor with direct phase determination. According to the paper, you may need a h...
By design, EdDSA requires a $b$-bit string as the secret key $k$, and when signing, it is expanded to a $2b$-bit string $H(k)$, some bit-twiddling is done, and the first half is used as the private key in the signature. [1] The curve will have a $b$-bit security level, and solving discrete log can be done in $b \over 2...
I have function with input 128 bit and output 64 bit that hash the header and hash the payload then concatenating them after that hash the result so my question is does this pass the collision security requirement? or it fail because the attacker can find the hash 2^32?
Cryptographic primitives should have nothing-up-my-sleeve property to prove their designers don't have an advantage in using them versus the general public. For example, Blowfish is using binary reprensentation of digits of π to initialize its key schedule. The Salsa20 family of ciphers use the ASCII string "expand 32-...
My questions is general, but in my case regards the Kerberos protocol and the communication between the client first message and the KDC. Is there some problem in encrypting using a: (secret key XOR public nonce), instead of the reply that only use the secret client key? That is - the key is known only to the user, but...
Although the computation for scalar multiplications for Koblitz curve can be efficiently executed by TNAF method, but it still need to compute the multiplicative inverse for each point addition.
Considering a design where the MixColumns operation of AES is replaced by a lighter MDS matrix where by the term lighter we mean the number of required XOR to implement an MDS matrix. As you know the most relevant property of an MDS matrix in an AES-like design beyond its branch number is the so-called related differe...
Here is a typical cryptographic situation: A secret key exists that is only known to a sender and a receiver of messages. As it is hard to replace that key, since you either need a secure channel for transmission or a way how the receiver can send something to the sender to perform a key exchange and both may not exist...
Suppose a message $M$ was encrypted with a one-time pad. If we learned the first half of the original text is some substring $s$, would we have a better chance of cracking the rest of the message? Is this true or false? I know that OTP is unbreakable in theory but with the knowledge of the first portion of the string, ...
I am following the book "Network security private communication in a public world - 2nd edition. Section 6.3.4.1 Exponentiating big numbers. base = 123, exponent = 54, mod = 678 What I understand is that, first I need to convert 54 into binary, i.e. 110110. Then I should do (base^exponent)%mod only at those exponent wh...
I want to create a process whereby registered users receive a QR code on their phone and then they present this code to a camera. The camera should scan the QR code and then decide if the QR code is legitimate, in which case access is granted. According to my very basic understanding, the camera would be equipped with ...
This secret sharing scheme takes place in the polynomial ring over a finite field $F_p[x]$, $p$ being a large prime, in the following simplified way: The dealer chooses a private polynomial $f(x)$. Every participant $P_i, i \in N$, has a public polynomial $m_i(x)$, with $deg(m_i(x)) \leq deg(f(x))$. The dealer compute...
SHA-1 is considered broken. That's why I'm assuming that using SHA-1 for RFC2289 OTPs is broken as well. Is this assumption correct? Going further with this assumption using SHA-1 for RFC4226 HOTPs should be broken too, is it? Although this blog states the following: "it doesn't affect applications such as HMAC where c...
Alice and Bob share a secret key K. Suppose that someone suggests the following methods to allow Alice to securely authenticate to Bob. Bob generates a random message r, enciphers it using K under a secure block cipher scheme and sends the encrypted message to Alice. Alice decrypts it, adds 1 to it and sends the result...
I have been tasked with putting a simple sign in experience in place where the user types in their ID and a 5 to 8 numeric value as the password or PIN as it is called here. I am using ASP .NET Core and using Identity Server 4 as the core implementation for issuing tokens. I have to implement the login page and know th...
I was wondering whether there exists randomizable zero-knowledge proofs. What I mean by randomizable is that assume I have a zero-knowledge proof of knowledge $\pi$, stating that I know $x \in \mathbb{Z}_q$ for a prime $q$, such that $Q = g^x$, and I randomize $Q$ as $Q' = Q^r$ for a random $r \in \mathbb{Z}_q$. Then, ...
This is a follow-up to a recent question of mine. I am looking to find the public key and signature sizes for the XMSS signature scheme, in terms of the XMSS parameters (length $\ell$, height $h$ and security parameter $n$). I found the following 2 papers that have contradictory answers and I'm confused. The original X...
Given a prime $P$ with $$P= r \cdot q+1$$ with $q$ prime as well. I'm looking for a generator $g$ of the Schnorr subgroup with order $q$ which is small by value and has a inverse (to $\bmod P$) which is small as well: $$|\{g^i, \forall i \in [0,P-1]\}| = q$$ $$g^q = 1 \bmod P$$ $$g < m \text{ } \land \text{ } g^{-1}<m$...
I need some guidance here: assuming I have the following: (PreSharedKey of 32 bytes) XOR (one time Random Buffer of 32 bytes) The only way to crack this should be brute forcing, correct? One of the issue in sending out the XORed value is to disclose the PSK length. At this point I could add some random bytes at the end...
I was reading the paper of A Public Key Cryptosystem and a Signature Scheme Based on Discrete Logarithms by TAHER ELGAMAL to better understand ElGamal public-key scheme, and he stated that for any cryptosystem based on discrete logarithm problem, the prime $p$ should be chosen such that $p-1$ has at least one large pri...
Bilinear-map accumulator [1] is more efficient than the RSA accumulator [2] but do you know any disadvantage for the bilinear-map accumulator when compared to RSA accumulator?
I suspect that this is already something trivial, but I can't find the answer, probably because I don't know how to search the cryptographic primitive that refers to my problem. Imagine the typical card trick from your favorite magician. He/She offers you one random card, and you take one card where the magician doesn'...
I know this is a insecure design to 64 bits output size hash function. Is there any report or literature illustrate this condition. I want to do some relevant reading about it.
Let's assume that a digital signature scheme $S$, which is secure against existential forgery under adaptive chosen message attack, can only be used with fairly short signature inputs, i.e. $S(sk, m)$ has a constraint of $len(m) < n$. Is there a way to use this scheme in a way that gives stronger protection against for...
I'm studying applied cryptography and stumbled upon the following question to practice the knowledge about Congruence, Groups etc. "List all Elements $x$, where $x^2 = 2$ in $\mathbb{Z}_{31}$ Okay, so the naive approach would be to iterate the group, multiply the element with itself and check if its residue modulo $31$...
I test this law with a 7-bits primitive polynomial LFSR. and the run property could be found according to output. Is there any theoretical to prove m-sequence property, I could just find some conclusion on some literature.
I'm interested in lattice type cryptosystem such as Mod-LWR. But I found that integer multiplication¹ is not safe for side-channel attacks. I tried to make masking method by own method but it failed in t-test². Are there any masking methods for integer multiplication? ¹ This is modular multiplication, but modulo is po...
In FIPS PUB 186-4, the computation of scalar multiplication on Koblitz curves is given in p.106~109. In p.109, step 11.3, $(r_0,r_1)$ is updated with $(r_1+\mu\,r_0/2,-r_0/2)$. But under certain case, when $r_0$ is even, $\mu=-1$, then the while loop 11 will never stop. How can this be overcome?
Is it true that AES initialization constants, which are supposed to be random numbers, were in fact chosen by the NSA? I mean, it's said it was done before algorithm standardization when it was still called Rijndael.
I am reading the cryptography book by Stamp and there is a cut-and-paste attack on $ECB$ and this is easy to follow because $ECB$ is relatively simple, the problem is that I would like to see an example of this in $CBC$ mode. Is there an easy example to show this?
The user Forest in here claims that the internal chacha20 permutation is "vulnerable to attacks if it were used in a sponge construction". My question is as follows: What are these attacks? Would these attacks still be an issue if we assume that we are using a modified version of the chacha20 that does not have a triv...
I have read about hmac and PBKDF2. PBKDF2 - is mainly used for password hashing. It uses hmac and iterates. I want to hash some sensitive data and send in the response of a request. Later that hashed sensitive data will be send back with some form data. So in my case is it safe to use PBKDF2 as hashing tool - to hash a...
Do cipher suites that use static Diffie Hellman (not Ephemeral) allow for the same 3rd party decryption ability as RSA cipher suites? With RSA key exchange, 3rd parties can gain possession of the plaintext random numbers that flowed in the Client and Server Hello records. If also in possession of the server's private R...
MySQL's old mysql_native_password hashing scheme was the equivalent of this in PHP: sha1(sha1('password', true)); That's a hex-encoded SHA-1 hash of a binary SHA-1 hash of the password, without any salting. MySQL 8.0 introduced a two variants of a new hashing scheme based on SHA256 called caching_sha2_password and sha...
Suppose we have a threshold ElGamal cryptosystem $(t, n)$ over an Elliptic Curve $E_p$, $p$ being a large prime, with the following parameters: $G$ is a generator point of $E_p$ with order $q$ A dealer chooses a polynomial $f(x) = s + a_1x+...+a_{t-1}x \in Z_q[x]$ and $s \in Z_q$ is the secret key of the cryptosystem...
We can use Fiat-Shamir heuristic to replace 3-move Schnorr's protocol with 1-move non-interactive protocol. When I implement this non-interactive protocol( ref. https://en.wikipedia.org/wiki/Fiat%E2%80%93Shamir_heuristic): That is Let $G$ be a cyclic group with order $q$. Peggy needs to prove that she knows $x$ which i...
I have to pass a 6 digit number which has to be kept very secret through a unsecured netwok. I am thinking to hash it using hmac and a secret key which only me and the reciever knows So the code for hashing is key = b'SOME_SECRET_KEY' message = b'6_DIGIT_NUMBER' # eg: b'123456' hash = hmac.new(key, message, sha1) I h...
One rationale for Lai-Massey design is to achieve full diffusion in a single round compared to SPN and Feistel (hence less rounds number) due to use of multiplication-addition (MA) function. However , it is not as common as SPN and Feistel structures. Are there other advantages/disadvantages of Lai-Massey over SPN and...
I just went through https://www.rfc-editor.org/rfc/rfc7539#section-2.6 (sections 2.5 and 2.6). There it is described how to generate one-time Poly1305 keys using the ChaCha20 block function (for this a 96-bit nonce is required). I am asking myself how this is "better" or "more secure" in comparison to just use the key ...
We assume that we have $n = pq$, where $p = 2p'+1$, $q = 2q'+1$, and all $p, q, p', q'$ are large primes. Pick $g' \gets_R Z_n^*$, and compute $g = (g')^2 \bmod n$. Then we have a generator $g$ for $QR_n$. The order of $g$ is $p'q'$. Both prover and verifier are given $n$, $g$, and $h = g^x \bmod n$. The prover is give...
In Foundations of Cryptography II, Goldreich, the basic mechanism of encryption schemes is written as follows: Definition 5.1.1 (encryption scheme): An encryption scheme is a triple, $(G,E,D)$, of probabilistic polynomial-time algorithms satisfying the following two conditions: On input $1^n$, algorithm $G$ (called t...
I am having problems understanding this implementation of Shamir's secret sharing with confidentially levels (in this case 3). I will give the context and then my problem to make it more clear. Context: in some security system, to share a secret S, they use Shamir's secret sharing. the users in the system are divided ...
In the article https://crypto.stanford.edu/~dabo/pubs/papers/strongsigs.pdf there are two definitions for the security of a digital signature scheme: existential unforgeability and strong unforgeability. The difference is that while in the "existential" condition is fulfiled only if the attacker cannot forge a signatur...
Suppose you have a string AAA that was hashed with SHA1 to produce 606ec6e9bd8a8ff2ad14e5fade3f264471e82251. If I rehash 606ec6e9bd8a8ff2ad14e5fade3f264471e82251 10x times with the same SHA1 algorithm, would the entropy keep on decreasing? If so, would it ever reach a dangerous level to a point where AAA could be recov...
I'm not sure how to compute the second challenge when applying FS to a 5-round protocol. I've seen TWO different formulas (with and without including the first challenge) and don't know which one is correct. Suppose we have 5-round interactive protocol for some statement $st$: $P$ → $V$: $x$ means prover sent $x$ to ve...
We used to use CRCs to check the integrity of files. For safety analysis we could associate a probability for detecting a corrupted bit in a large file. Now we are using an RSA Signed SHA-3 hash for authentication. Are there any methods to calculate the probability two files of the same size to have the same SHA-3 has...
In Homomorphic Encryption from Learning with Errors: Conceptually-Simpler, Asymptotically-Faster, Attribute-Based, Gentry et. al defined Flattening as follows; Let $\vec{a},\vec{b}$ be vectors of some dimention $k$ over $\mathbb{Z}_q$. Let $\ell = \lfloor \log_2q \rfloor +1$ and $N = k \cdot \ell$ Define $\operatorna...
Given a message $m$ of size $n$, a key $k$, and a message authentication code $mac = poly1305(m, k)$ what is the minimum amount of bitflips on the message that can be corrected (or at least detected) by someone who knows the corrupt message, the mac code, and the key?
There are notions that a Zero-knowledge proof with auxiliary input is necessary for sequential composition. However, the authors here give a very convoluted example of a system which is not sequentially composable under the original ZK definition. Could you please give me an example where the original definition by Gol...
At the moment I am trying to find a practical way to implement a linearly homomorphic signature. Background: "In a homomorphic signature scheme, a user Alice signs some large dataset x using her secret signing key and uploads the signed data to an untrusted remote server. The server can then run some computation y=f(x...
I am new to cryptography concepts. I am trying to protect some firmware download. Reading some Wikipedia pages, I understand that asymmetric cryptography is time consuming, so, if I want to protect my download not only for authentication (I think I understood what to do for that), but also for sniffing, I need to crypt...
We have a Thales HSMS and upon going into the Cipher Suite, we have the DLf3072s256mRijndael cipher. What is this cipher and how does it work? Is this an AES encryption? What does DLf mean? what about s256m? The only information I can find is on here
Does anyone know an example of an Elliptic Curve of caracteristic $p$ ($E_p$) that has a point generator $G$ that generates a subgroup of order $q$, with $p$, $q$ being prime numbers and $p = 2q + 1$?
I am wrapping the RSACng class from the .Net API. Whilst unit testing, I run checks against an array of possibilities: Key Size = 1024, 2048, or 3072 bits Padding Mode = PKCS v1, or PSS (=PKCS v2?) Hash Algorithm = SHA-1, SHA256, SHA512 I test for all 3*2*3=18 possible configurations. All tests pass except one combin...
I'm asking this question to have a professional opinion about this, and to check if my assumptions are correct. The question derives from few comments I exchanged on SO: Problem with login I can login with any username and password Take these three different methods to 'secure' a password in your DB (pseudocode): One:...
Suppose DES is applied 4 times with 4 different 56-bit keys ($k_1$ to $k_4$). By using meet-in-the-middle attack, what is the number of cryptographic operations required for known-plaintext attack? The given answer: For each pair of $k_1$ and $k_2$, we need 2 encryptions and 2 decryptions. There is a total of $2^{112}$...
As I understand it, a plaintext encrypted using a One Time Pad is uncrackable because all possible plaintexts of the same length are possible. As a concrete example, if you decrypt the first 3 bytes of a 4-byte plaintext that you know is in English and get "HEL" (and you knew that was correct somehow), that does not he...
Despite the frequent claims that Ed25519 is more secure against side-channel attacks than (for instance) signatures performed over NIST P-256, I noticed that most implementations (including the original submissions) rely on table look-ups performed with secret index to achieve high performance. That is notoriously a bi...
I have one doubt from CP-ABE KeyGen algorithm (paper). In Setup, master key is $MK=(\beta, g^\alpha)$. In KeyGen(MK, S), they say generate random number $r$ and compute $D=g^{(\alpha+r)/\beta}$. How one calculates $D$ from $g^\alpha$ ? ($\alpha$ is not part of $MK$). Does he calculate $1/\beta$ and computes $D$ as bel...
I saw this exercise for evaluating the security(confidentiality, integrity, authenticity, and non-repudiation) of some schemes: ENC(M) || SignA(ENC(M)) ENC(M || SignA(M)) SignA(ENC(M)) ENC(M) || SignA(M) Where || is concatenation and ENC (is encryption on secure shared key) and SIgnA is RSA Signature of Alice. My ans...
In the double ratchet algorithm, let's say if bob's device is compromised including his long term key. Does the ephemeral keys generated by Alice during the half Diffie–Hellman key exchange produces a new sending chain for Alice which is not yet known to Bob. Also does the messages from Alice still have the non-repudia...