instruction
stringlengths
32
27.2k
I am using AES-CBC to provide confidentiality for protocol messages. I want to allow the receiver to know the secret key by using a key ID. For this I hash the secret key to generate a key ID. Every time the sender wants to send a message, the sender appends the key ID to the message to allow the receiver to bind the k...
I tried to make a script to encode a txt with the autokey cipher. From my poor understanding of the cipher I created another cipher which has nothing to do with autokey: first I encoded a txt with a key which give me a result as long as the original txt -Vigenère cipher used then I encoded the original txt with first ...
I don't quite understand the notion of a decider having a probability distribution function associated with it, and what it exactly says about the decider. From here on page 3-4 it says ...Now, in order to carry out a reduction that breaks some cryptographic primitive or assumption if the ensembles are not compu...
Suppose we have a policy $A \wedge ( D \vee (B \wedge C))$ with attributes ${\{A,B,C,D}\}$. The set of subsets of attributes which satisfy this policy is ${\{{\{A,D}\},{\{A,B,C}\},{\{A,B,D}\},{\{A,C,D}\}}\}$ of which ${\{{\{A,D}\},{\{A,B,C}\}}\}$ is the set of minimal subsets. We convert the above boolean formula into ...
Imagine that the malicious adversary in the real world uses $Y = 0$ as its input, therefore he computes the output as ($X$ && $y=0$) = $0$. We can conclude that the real view in the real world is as: Real view: $X, Y = 0$ and $output = 0$ Real World Now, imagine the simulator wants to simulate the real world’s view ...
Could someone explain to me in few lines (even one sentence) what Miller's algorithm computes? Without talking about divisors and all the other concepts, I would like to be able to explain it to someone who doesn't necessarily know elliptic curve cryptography in details but understands the basics because it's a really ...
The method that I used before to decode EC point from public key led me in a dead end. So I just want to know what yet I could try. I've got a public key that I don't know how to decode and I am looking for a list of commonly-used encoding/compression schemes. Here, a part of the test certificate with EC curve paramete...
Noob alert! Can we run quantum safe algorithms on commercial devices (like phones, laptops, etc)? I've seen some messaging apps and vpn providers marketing themselves as quantum-proof. How likely is that all these claims are bogus for marketing (imo, very)?
I am looking to implement Ed25519 for decentralized identity at scale. Has Ed25519 has gone through rigorous cryptanalysis? Could there be a backdoor in the algorithm?
I have some understanding of how PKI works, similar to this: - https://knowledge.digicert.com/solution/SO16297.html - https://security.stackexchange.com/questions/59566/ssl-certificate-chain-verification - https://security.stackexchange.com/questions/56389/ssl-certificate-framework-101-how-does-the-browser-actually-ver...
Considering an AES OFB encryption algorithm, suppose that I'm sending a message over HTTP (not HTTPS) and my message body contains the cyphertext. I'd like to know if transmitting a random initialization vector as a custom HTTP header is considered a bad practice, having into account that it's conventionally appended t...
According to Wikipedia, this homebrew cipher was originally used in PGP, before Phil Zimmermann replaced it with IDEA. Supposedly, insecurities in the algorithm were pointed out to him, leading to this change. While I have read the PGP 1.0 source code and saw the implementation of the cipher, that didn't help me actual...
In the paper More is Less: On the End-to-End Security of Group Chats in Signal, WhatsApp, and Threema, the abstract claims that We additionally show that strong security properties, such as Future Secrecy which is a core part of the one-to-one communication in the Signal protocol, do not hold for its gro...
What are cryptographic techniques that could be used so that if I wanna to enable a server to send message to certain nodes in a network with preserving the privacy location for them ??
Two cryptographic schemes—RSA accumulators, and RSA-based Verifiable Delay Functions (VDFs) such as this one—require an RSA modulus to operate. These RSA constructions are secure if the trapdoor, namely the factorisation of the RSA modulus, is secret. In the context of a blockchain we do not want to trust anyone with t...
In the book "Foundations of cryptography-Oded Goldreich-Page 33", if we use the deterministic polynomial-time algorithm instead of the probabilistic polynomial-time algorithm for case 2 (Hard to invert), what would be the situation?
I am trying to derive the best linear approximation for one round DES. I read the question and answer Regarding matsui's Paper on Linear Cryptanalysis of DES several times but still could not figure out the part " y_3y_2y_1y_0 can be propagated to bits 7, 18, 24 and 29 of the output of the round function, this time...
I heard shared input. For example, original values $x,y \in M$ are divided into pairs of shares $(x_1,x_2)$ and $(y_1, y_2)$ such that $x_1 + x_2 = x \text{ and } y_1 + y_2 = y$. Each share is distributed to two parties $P_1$ (who obtains $x_1$ and $y_1$) and $P_2$ (who obtains $x_2$ and $y_2$). When $M = \mathbb{Z}_2$...
I would like to know if there is any existing research on the following problem: $$\text{For }a, b \in \mathbb Z \text{, given }n = a^2 + b^2, \text{output }a, b$$. Searching for "sum of squares", "quadratic sum", "two squares", etc. on eprint did not return any related results that I could find. The problem itself may...
Let $k_1$ be a 56 bit DES key that performs $E_{k_1}(p_1) = c_1$. What is the probability that there exists another key $k_2$ such that $E_{k_2}(p_1) = c_1$?
As you see, according to the attached definitions from "Efficient Secure Two-Party Protocols", the definition of the security in the semi-honest world has two cases for $f=(f_1,f_2)$.(deterministic and probabilistic) Now, my question is, why the authors have not said anything about the type of the $f$ in the maliciou...
As a noob user of KeePass2 on Windows desktop and Keypass2Android on my phone, supplemented by YubiKey Neo configured for hmac-sha1 challenge response, I noticed that Keepass2Android appears to store an xml file on Onedrive (at least it looks that way to me). So I'd appreciate any shared insight on: 1. the nature/exte...
Which of these deductions make sense? The simulator is actually being run by the adversary. It makes sense that the adversary initializes the simulator (which is just a program) with the input that the corrupted party (also just a program) will use. The adversary is actually being run by the simulator, and the simulat...
According to the attached reference, does it mean that the adversary computes $PPT(initial~input)$, $PPT(z)$ and $PPT(f_i(x',y'))$? For example, suppose the corrupted party, in the malicious model, has inputs $x,z$ and it wants to compute $x \land y$, then the adversary's output will be: $PPT(x)$, $PPT(z)$ and $PPT(x \...
I want to learn cryptography. I just wanted to ask people who are experienced about the field where I should start. Any recommendation would be something for me. Thank you in advance.
Please help me identify a family of polynomials P(x,k) with the following properties: $x\in Z_{2^n} $ $\forall k, \forall p_k\in P,\ \exists\ p_k^{-1} |\ p_k^{-1}(p_k(x)\equiv x\ mod\ 2^n $ Frequency distribution of $y = p_k(x)\ mod\ 2^n$ is an inverted bell curve Thanks for suggestions
There are many articles about quantum computers describing how powerful they are in computing and that they can solve very complicated equations in a short time. One of the biggest security measures that provide safety for computer security is that sometimes it takes years to break a piece of encrypted data. Will this...
Why for achieving the fairness and guaranteed output delivery, less than a half of the parties should be corrupted? ($t < m/2$, where $t$ is the number of corrupted parties and $m$ is the total number of the involved parties) Would you please prove it intuitively?
I am not sure this is the right place to post this... recently I was given the following image by my friend in the context of a game we play together. Please note the characters at the bottom. I would like to figure out what the characters say, but I am not even sure how I would go about it. I suspect it's some sort of...
I'm looking for material that proves the anonymity of parties in a non-interactive setting. I would like to know if there are simulation based proofs (UC) and property based proofs (game based) for anonymity that I can look at. Also when when proving such a protocol to be anonymous, how is one supposed to define anony...
Take for example a curve from a recent question such as #25519:- $$y^2 = x^3 + 486662x^2 + x$$ It's considered "safe". What are are the implications of amending it very slightly to:- $$y^2 = x^3 + 486664x^2 + x$$ I'm trying to get a layman's feel for what this would mean. For example, is it now entirely invalid and c...
I learned modern block cipher and saw this example. How many padding bits must be added to a message of 100 characters if 8-bit ASCII is used for encoding and the block cipher accepts blocks of 64 bits? There was a solution, but I totally didn't understand. Solution Encoding 100 characters using 8-bit ASCII results ...
In the paper that introduced one-way accumulators, the author's justify their use of rigid integers as the modulus with the following: The advantage of using a rigid integer $n = pq$ is that the group of squares (quadratic residues) modulo $n$ that are relatively prime to $n$ has the property that it has size $n' = \f...
The idea of Bit Independence Criterion (BIC ) was introduced by Webster and Tavares . For a given set of avalanche vectors generated by complementing a single plaintext bit, all avalanche variables should be pairwise independent. in https://peerj.com/preprints/26452/ Sankhanil Dey1 and Ranjan Ghosh2,introduce the comp...
Suppose I have $A \in \mathbb{Z}_q^{n \times m},A_1 \in \mathbb{Z}_q^{n \times m},A_2 \in \mathbb{Z}_q^{n \times m}$. I am following the $\textbf{ExtBasis}$ algorithm of this (Page No. 13). I construct $F = A~|| -AR_1 + A_1~|| -AR_2 + A_2$. $F \in \mathbb{Z}_q^{n \times 3m}$ and $R_1,R_2 \in \mathbb{Z}_q^{m \times m}$ ...
As I know X.509 self-certificate is a mechanism that the host generates public and private keys, the public key will insert to a certification and the private key will be used to sign the certification. The receiver will verify the certificate by using the public key with certification. In case if the receiver does no...
suppose there is a group $\mathcal{N}$ of $n$ people with public/private key pairs $(pk_i,sk_i)$ $i=1,\cdots,n$. Is there any scheme that I can send message to a subset of users $i_1, \cdots, i_m$, only the users in $i_1, \cdots, i_m$ can decrypt the message? I know Broadcast Encryption can do this, but the number of k...
Clearly, there are stages when binary bits are needed and this can be done with the help of Linear Feedback Shift Registers. Registers are required to be connected in such a manner that one register controls the clock. can someone explain me more: The role of Shift Register Cascades in Cryptography?
I am using AES encryption in my application. I used 3 types of encryption AES-128,AES-192, AES-256 keysize. When I encrypt with different keysize(128 or 192 or 256) with the same text, the encrypted string length is same for all keysize(128 and 192 and 256) whereas encrypted characters only differs. Is this correct? Is...
Suppose there are $n$ users each with public/private key pair $(pk_i,sk_i)$ $i=1,\cdots,n$. Is there any scheme that I can encrypt $m$ using the set of public keys $(pk_1,\cdots,pk_n)$, and can decrypt it using any $sk_i$? That is $C=Enc_{(pk_1,\cdots,pk_n)}(m)$ and $m=Dec_{any\ sk_i}(C)$. This is meaningful when these...
Is it feasible to generate an efficient MPC function that compute $a^{-1}$ for $a \in \mathbb{F_q}$, with Boolean circuit? The naive way seems impossible since the depth of the computation might needed to be known in advance. (for example in computation of Extended GCD). Edit: my intentions for the question were: Is th...
When it comes to exchanging secure information over an insecure channel, this approach is considered. It all depends on the nature of photons in which the third polarization is focused. It can easily be trusted when it comes to exchanging the Secret keys without facing any issue. What is Quantum Cryptography? What ar...
Assume we have a somehow unorthodox implementation of RSA whereby: $p$ and $q$ are chosen primes of length $n/2$ where $n$ is the number of bits desired in $N=p\,q$ and $$\begin{align} \phi &= (p-1)(q-1)\\ d &= p\\ e &= d^{-1}\bmod \phi \end{align}$$ I can see that there is a weakness here but I'm unsure of how it tran...
THEIR DIFFERENCE WILL REMAIN, LONG AFTER THEY ARE DEAD Dear Friend, IV IV 12 8 14 - 19 14 18 9 13 IV I C C 9 17 IV 17 12 IV 8 14 IV 7 F 14 IV 7 19 D IV 12 15 F 19 E IV 8 17 IV 7 12 15 F 19 13 17 9 E IV 8 17 IV 12 IV 17 15 F 19 IV 7 IV 8 14 IV II 9 17 14 D 9 Only one of them will take you to the finish line and unlock t...
Philip Rogaway has written a formula for CCM mode where the adversary advantage is given as: $$adversary\_advantage \leq \frac{q_{dec}}{2^t} + \frac{\sigma^2}{2^b}$$ Can we use this formula to find GCM data integrity? Is there a similar document for GCM mode?
Would you please tell me how process algebra could help me to design security protocols? More specifically, can I use it for proving the security of protocols? Is process algebra used for any security protocol or specific types of protocol such as network protocols?
I have a problem with my implementation. I want to make a multiplication in finite field. I don't know If my scheme is correct, but I made code on this base. I want to calculate: D= XY D=DX Some Code https://drive.google.com/open?id=186i8K6PMduY2UsBdpPmdm3WmrjBWYQtj
Post-quantum cryptography is cryptography under the assumption that the attacker has a large quantum computer; post-quantum cryptosystems strive to remain secure even in this scenario. Post-quantum cryptography like lattice-based cryptography is designed to be secure even if quantum computers are available. The Questio...
When using ECDHE with Curve25519, OpenSSL shows: Server Temp Key: X25519, 253 bits I thought that, when we use X25519, it uses a 256 bit key. Why does OpenSSL say the server temporary key is 253 bits?
We have a lot of cryptographic primitives now, and many methods of deriving one type of scheme from another. There are even some like the Merkle signature scheme, which uses a hash function to derive a signature scheme, two types which are not closely related. So now I wonder, what is the smallest set of cryptographic ...
If I encrypt a message once using AES CTR, will I need an IV? Additionally, if I do use an IV, will I need to send it with the cipher text?
PRNG (Wikipedia): "The PRNG-generated sequence is not truly random, because it is completely determined by an initial value, called the PRNG's seed (which may include truly random values)." My questions are: Is a PRNG-generated sequence with a truly random seed considered a cryptographically secure PRNG? If not: H...
There is a lot of confusion between hash- and encryption algorithms; I would like to understand: When do we use a hash algorithm and when do we use an encryption algorithm (a cipher)? How difficult it is to reverse hash- and encryption algorithms? From the theoretical/mathematical perspective, what differentiates a ha...
What is the weakness, if there is any, of using the same message space for different public exponents (assuming e changes everytime)? Imagine I have a message space [0,n] where n is a 1024 bit number and several public exponents of 1024 bit each as well, does that somehow have an impact on my RSA system? Edit: assume I...
Is forward secrecy a necessary security property for a AKE protocol to be proven secure in Bellare-Rogway model? Is freshness also a necessary security property for a AKE protocol to be proven secure in Bellare-Rogway model? If not why A(k) MTI protocol with key confirmation can not be proven secure in the Bellare-Rog...
(I realize this is yet another Argon2 "how do I configure" question, but the existing questions I've found don't really help. If I've missed one, happy to have this closed). Deploying Argon2 (with the Argon2id variant) into a server environment to hash passwords and process site logins - the question we're grappling wi...
I am trying to find a vulnerability or proof for the following problem: ElGamal part. Given $g\in\mathbb Z_p$ where $g$ generates $\mathbb Z_p^\star$, select randomly $k\in\mathbb Z_p$ and calculate $h=g^k \mod p$. The public key is $(p, g, h)$ and private key is $k$. To encrypt message $m\in\mathbb Z_p$, randomly sele...
I'm trying to implement elliptic curve point addition in hardware. I've managed to create a working module using Affine coordinates however I've been reading about how points can be added by using Jacobian coordinates more efficently due to needing less modular inversions. I then found this repeated point doubling algo...
Can AES ECB mode be used for both encryption and authentication, assuming the following conditions are always true? Encryption of exactly 128-bit (1 block) size messages Different keys used for both encryption and authentication Authentication AES ECB uses encrypted ciphertext as input and outputs 128-bit MAC
Where can I find the description and or pseudocode for the SHA-0 hash algorithm? I am looking for something on these lines: HMAC RIPEMD. I have been implementing a few of those (HMAC, HOTP, TOTP and MD4, MD5, RIPEMD-128,160)
struct { opaque IV[SecurityParameters.record_iv_length]; block-ciphered struct { opaque content[TLSCompressed.length]; opaque MAC[SecurityParameters.mac_length]; uint8 padding[GenericBlockCipher.padding_length]; uint8 padding_length; }; } GenericBlockCipher; I quoted above f...
Let's take AES as an example. What would be wrong with just having a 256 bit key that you XOR into your input and then XOR into your output? No key expansion at all. I believe it's even known as the Even-Mansour construction and is secure under the assumption that the permutation is sound. So I'm confused by the purpos...
As I understand it, Elliptic-Curve Cryptography is used in the verification step of a transaction (i.e. when creating a digital signature), but not in the creation and security of a 'block' (when assigning a nonce to a hash value with a set number of zeros). Why do we use ECC when validating the initial transaction req...
I am reading a paper on security analysis of a cipher image using the paper at the following URL: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8306512&tag=1 It indicates some test that a cipher image should pass for successful encryption. One of the simple test is to count the number of ones and number of z...
I'm trying to get my head around zero-knowledge proofs and my definition of a zero-knowledge proof is as follows. A zero-knowledge proof is a method by which one party can prove to another party that they know a secret value, without sharing any data about this secret value. To implement a zero-knowledge proof so...
I'm in a project, where the output of a Key Agreement algorithm (uses ECC) is used as input for a KDF, and the output of the KDF (X9.63 KDF) is consecutively used as input for a PRF (CMAC) to calculate AES session keys. Summary: ECC-PAKE->KDF->PRF->AES_keys. My question: Is there any major advantage of using both KDF a...
I came across this problem to 'explain why both substitution and transposition ciphers can be thought of as permutations' and I cannot come up with an explanation to how substitution ciphers can be thought of as permutations. Can somebody provide an explanation to this? It would really help me get a better understandin...
I wanted to programm the enigma (using C#). But it seems like i dont understand how the rotors work. Becouse if we take the first three rotors: ekmflgdqvzntowyhxuspaibrcj ajdksiruxblhwtmcqgznpyfvoe bdfhjlcprtxvznyeiwgakmusqo UKW A: ae bj cm dz fl gy hx iv kw nr oq pu st (The meaning of the possitions are f...
I've a doubt about the Encrypt-then-MAC approach when using HMAC-SHA-256 with AES-128 in CBC mode, as seen in https://en.wikipedia.org/wiki/Authenticated_encryption. I need to encode the resulting ciphertext in base 64 in order to send along with the HMAC. Should I generate the HMAC before or after encoding the ciphert...
Diffie-Hellman groups tend to increment in key sizes as you'd expect up until group 21. Any idea why the key size is 521 rather than 512? I haven't been able to find an answer at all.
Consider Shamir Secret Sharing Scheme (SSSS). This is completely unfounded, but my intuition tells me that the threshold k we set (AKA the number of shares required to construct the original secret) with regards to the total number of shares distributed (n) has a profound relation with the security of the whole system...
I generate an ssh key: ~ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to save the key (/Users/kurtostfeld/.ssh/id_rsa): rsa_key Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in rsa_key. Your public key has been save...
I am trying to figure out this quiz question on a course I am doing but keep getting it wrong. Consider the Vigenere cipher over the lowercase English alphabet, where the key can have length 1 or length 2, each with 50% probability. Say the distribution over plaintexts is Pr[M='aa'] = 0.4 and Pr[M='ab'] = 0.6. W...
I have found from the values of P (11) and Q(7) that n=77, (p-1)(q-1)=60 and that e=43 as it is relatively prime with 60. However, I believe the value I got for d (7) is wrong. Here is my workings out: 60x + 43y = 1 60=1(43)+17 43=2(17)+9 17=1(9)+8 9=1(8)+1 Then: 1=9 - 1(8) 1=9 - 1(17 - 1[9]) 1=1(9) - 1(17) + 1...
As the title says, I would like to know which one is faster. I read in some book it indicates the stream is faster since it encrypts one bit at a time; the others show block is faster since it is using "block". Thanks
In version 2.1, GnuPG featured primitives that use elliptic curves. For encryption, one option was ECDH, which confused me. I thought ECDH was for key agreement, not public key encryption. How does GnuPG utilize a key agreement scheme for enciphering files/messages?
I'm trying to have Python (2.7) and JS solutions for ECDSA signing (with secp256k1 curve) where ideally signatures generated by one side can be verified by the other. For the python side, I'm using the ecdsa library: from ecdsa import SigningKey from ecdsa.curves import SECP256k1 ecdsakey = "59b1ad799522457fa5ed171cb85...
Is there any inbuilt functionality in sage to check if any S-Box satisfies Strict Avalanche Criterion or not?
As I look over the TexSecures specifications for multi-party chat I have noticed this. Also as far as I understood in TextSecure (now known as Signal) the minimal steps required to do a secure multiparty chat using Generate ephemeral symmetric key K Encrypt the message. Hash the message's plaintext and encrypt the ha...
I have an existing system which takes a cryptographically secure BLOB from user and pass it to lower API which calls HKDF-Expand to get 2 keys: one is effectively discarded in this scenario and second is actually used. Previously this second key was used to authenticate-encrypt using AES256-GCM data from user (again ge...
I need to make end-to-end encrypted messaging between 2 and more parties without trusting a server. Each party has it's secret and private keys. The obvious solution is to make ECDH between all of them, but it may require N-1 key exchange rounds. Is there another way to generate shared secret among N participants with ...
I have read some intro material into cryptography. It mainly goes into the current encryption schemes like AES, but not very deeply into the mathematics of why they are secure. I know that encryption is all based on two principles of "confusion" and "diffusion", but these are very general, handwavey principles. I have ...
I have studied the design of block ciphers like DES and AES. I know the actual algorithms, but I don't intuitively "grok" the most important property of them: The most important property, is that if you have the key and the ciphertext, you can calculate easily the plaintext, but if you have the plaintext and ciphertex...
I've recently come across a situation where one system passes an encrypted payload to another system. The payload is encrypted using a pre-shared key. However, instead of just using the key itself, a calculation is made using the current day and month to produce an integer value. This value is then used to retrieve a s...
Is it practical to sign a data using RSA-SHA256 algorithm with EC keys? I used a small NodeJS script and crypto module (uses openSSL internally) to test this and I could successfully sign the data and verify the signature. Pseudo-code: Sign( data, EC-Key-p256, 'RSA-SHA256') Verify( data, signature,public-key, 'RSA-SHA...
I would like to ask about the NIST test suite for randomness evaluation. The test suite consists of 15 subtests which evaluate the particular property of the sequence. In fact, each test has an individual of the minimum number of the bitstream (e.g., $10^6$ bits for Random Excursions test or $100$ for Frequency test). ...
We find different equations to compute the correlation or correlation coefficient: $\begin{align*} corr &= \frac{a+d}{a+b+c+d}\\ &= \frac{(a+d) - (b+d)}{a+b+c+d}\\ &= \frac{(a+d) - (b+d)}{\sqrt{(a+b)*(c+d)*(a+c)*(b+d)}} \end{align*}$ where a(0,0), b(1,0), c(0,1), d(1,1), which formula give the correct result...
I'm wondering if implementing only the AES decryption can reduce the hardware cost? And does anybody have some examples of the cost (speed, size) of hardware AES implementation?
I just started to learn cryptography. I've read a ton of articles but couldn't find a book or a course that is based on this subject (and also is not outdated). Therefore I have a few questions (some of them were asked before but there's no specific answer). Also i must specify that all my questions are related to aes...
I'm taking my first cryptography course and having trouble deciphering some Vigenere encrypted text. I was able to crack the first one: I'm having difficulty with the other two. I think the solution to #2 and #3 lies in the wording of the question. It says that the "message format" is the same as the first one, but ...
Consider the RSA accumulator scheme with random oracle as proposed by Barić and Pfitzmann, with the random oracle replaced by a secure hash function $H$ as follows. For a set $S$, the accumulator value is computed as $acc(S) = x^{\prod_{s \in S} h(s)} \mod N$, where $h(s)$ computes prime representatives by appending $l...
E2EE can be established in Whatsapp by scanning the QR-code on the other person’s phone. But I read on the FAQ page that this code / number can also be sent to the other person via SMS, Email, etc. Isn’t it possible to establish an E2EE without this «increased» effort? Are they trying to make it difficult for the users...
In the Guide to Elliptic Curve Cryptography there's this algorithm: My question is... what is $k$? Is it just some random value we pick? If so are some numbers better than others?
I am wondering if it is possible or if there are any limitations to using the same private key to generate Schnorr and BLS signatures. Specifically, assuming I have a private key $x$, I want to use it to sing some messages using Schnorr signature scheme and other messages using BLS signature scheme. The verifier should...
I sometimes run sha256sum on large files after transferring them from one place to another, and will just skim the hash output to verify it's correct. But, I usually just look at the first/last 5 or 6 hex digits and call it good enough. I know that the chances of collision are something like 1 / 2^64, but what are the...
If we know the prime factorisation of the fundamental negative discriminant $\Delta_K$, say $\Delta_K=p_1\cdot p_2 \cdots p_n$, then we are guaranteed that at least $2^{n-1}\mid h_K$, the class number of $C(\mathcal{O}_K)$. Now, I would like to know the legendre conditions on the factors of $\Delta_K$ such that the siz...
If the output of an algorithm when interacting with the [encryption] protocol matches that of a simulator given some inputs, it ‘need not know’ anything more than those inputs. Can a machine learn to find a method to break encryption protocols? How is that possible, to decrypt ciphers using deep learning methods?
I have the plain text, key and the ciphertext stored in DB. Can I deduce the IV based on this information?
Straight to the point: I'm trying to implement double encryption using two cipher suites. One (#1) of them is a stream cipher without any checksum/authentication guarantee, the other (#2) is an AEAD algorithm (AES-OCB). On blog.cryptographyengineering.com, it says: The ugly [of multiple encryption] ... 3) Plaintext di...
The question is about site-to-site transmission where the recipient needs to decrypt the incoming data. What method is more secure and make it harder to decrypt, Hash-Then-Encrypt or Encrypt-Then-Hash?