instruction
stringlengths
32
27.2k
The definition of differential privacy is as follows: A randomized mechanism $\mathcal{M}$ is $(\epsilon, \delta)$-differentially private, where $\epsilon \leq 0$ and $\delta \leq 0$, if for any database $D \in \mathcal{X}$ and $D' \in \mathcal{X}$, differing on at most one record, and for any possible output $S \subse...
In TLS, we use DHKE for establishing the session key & then encrypt the actual communication with session key using symmetric encryption. While reading about DHKE, I learnt that you could use the key as a AES Key & encrypt the session with AES. Or you could use something like Elgamal encryption. So in practice, what is...
I'm looking for a very clear explanation of how to forge a CBC-MAC. Given M1 = m1 and M2 = m1||m2 and M3 = m1|| m2 || m3$ and their respective MACs are MAC1 MAC2 and MAC3. How would I go about forging a valid MAC on a distinct message? Could I (for example) say (M4||M3 XOR MAC3)?
Short version: Are there some results that are known on the security of the Learning With Error problem when there are some leakages, notably on the noise? (In my case these leakages come from a bit that is leaked after successful decryption.) More precisely, if I have a bit string $d_0$ and if I give an encrypted vers...
Leonid Levin constructed a universal one-way function, i.e. a function $f$ such that if any one-way functions exist, then $f$ is a one-way function. My question is, what universal pseudorandom generators or pseudorandom functions have been constructed? That is, a function $G$ such that if any pseudorandom generators ...
When the encrypted file container contains 100000 files and 500 GB of data, all of them must be decrypted/encrypted when the container is mounted/dismounted. How can Truecrypt/Veracrypt perform this within a few seconds?
What are criteria for generation of an RSA public modulus used in an RSA accumulator, and their rationale? Are there special requirements in some sub-cases, like for «one-way» accumulators? Josh Benaloh and Michael de Mare's One-way accumulators: A decentralized alternative to digital signatures, in proceedings of Eur...
I know that the zero knowledge proof is able to prove to the verifier that the holder does in fact posess the digital signature issued from an issuing 3rd party but... How does the verifier validate that the signature (which is hidden to the verifier) that the holder possesses is valid?
What would be the issue if AES only applied the key addition layer once, before the first round? As in, how would this make the algorithm vulnerable to attack?
Looking through AES process I see it uses a substitution table which need the input in the form of hex. Im wondering if i have a plaintext of 16 bytes such as 'j±…<Ãà!Dȶ;5˜‰*', how can I convert each of these bytes into hex so they can be used with the subsitution table?
Problem Given any piece of data, I could sign it with public key and made available online. This proves I am in possession of given data, but it doesn't tell I am the creator. The only possibility (I'm aware of) to prove this, is to prove, that I was chronologically first to have it. Simple approach. Lets assume, that ...
we generate heralded single pho- tons via spontaneous parametric downconversion using a 5 mm long periodically-poled potassium titanyl phosphate (ppKTP) crystal pumped with a 405 nm diode laser (200 mW). The photon pairs (signal λs = 775 nm and idler λi = 850 nm) are separated via a dichroic mirror, coupled to differen...
I have an API that accepts plain-text and IV as input and I'm trying to identify the encryption mode for that API. I have already tested this API for ECB, CBC, OFB, CFB and CTR and it doesn't seem to be any of these modes. Though on first glance it appears to be padded CBC mode but if you look at my Step 3 (see below) ...
I am a newbie in Finite Field arithmetic and while trying to implement an Elliptic Curve Cryptography based ABE scheme in a programming language, I am unable to understand how to implement function fields. I am given a function definition within a finite field of $p(i.e. Z_p[x])$ where $p$ is some large prime number. H...
Let $G$ be a generator of a cyclic group in which the discrete logarithm problem is hard and $x$ and $u$ be scalars of the group such that $X = xG$ and $U = uG$, respectively. We want to compute $J = x^{-1}U$. Is it possible to calculate it without knowing $x$, even if we know $u$?
Assuming, I had a ciphertext along with its decrypted plain text result but not the IV or the Secret Key. (keep in mind that the text was encrypted with AES/CBC/PKCSPadding7). How would I go about changing specific characters in the ciphertext? For Example: Ciphertext: 08226C1C87A83DDF02C54CF0802624D8 Plaintext: Apple1...
Let's say that an attacker has the plaintext, the ciphertext and the IV of a specific message. If the attacker can control the ciphertext and the IV, could he forge valid plaintext? Let's say that the message is shorter than the block size, just a few bytes. Could the attacker change the value of the plaintext by chang...
While reading on block ciphers and DES I read that two-round Feistel network is not a secure PRP? Is there any easy to understand proof to explain the intuition behind this statement. I did search around and also reviewed this question but wasn't really able to understand why it isn't secure PRP. Any help would be much...
While I was studying protocols for distributed key generation with malicious adversaries, Gennaro et al.$^{[1]}$ pointed out that the protocols that provide both secrecy and robustness should have a threshold lower than $\dfrac{n}{2}$. However, I do not see how the robustness of the scheme can compromise the secrecy of...
Assume we have two secrets $s_1$ and $s_2$. We use Shamir's scheme to produce $\{(x_i,y_i)\}$ as $n$ shares of $s_1$ with a threshold $t$. Then, we use the additive scheme to generate shares for $s_2$, denoted by $z_i$. Is there any way to combine the shares of $s_1$ and $s_2$ to get shares of $s_1+s_2$?
Recently, I am learning the Oblivious Transfer (OT) Protocol. I have some questions about the OT extension. In ALSZ13, we know that $m\times OT_l$ can be reduced to $\kappa\times OT_\kappa$, where $\kappa$ is a security parameter, $l$ is secret's bit length. So my question is: How can I implement $\kappa\times OT_\kap...
I'm currently stuck at a problem, where I'm supposed to proove that the user public key of a returned u2f token corresponds to an elliptic curve equation (secp256r1). The token looks as follows: 05047d550bc2384fd76a47b8b0871165395e4e4d5ab9cb4ee286d1c60d074d7d60ef8cc6dd01e747ccb8bedaae6e7fb875d036ce7e4e6231b75b93993b152...
I've been working through "Cryptanalysis of OCB2: Attacks on Authenticity and Confidentiality" 1 from earlier this year. My knowledge of OCB2 is pretty shallow though, and so I'm keen to study the scheme in depth before I continue. From citations and searching around, it seems like OCB2 was introduced in a 2004 paper b...
assume i have: One-key cipher: E. Hash: H My application is authentication. I have a shared secret key with Bob for the One-key cipher. So, when I send an message to Bob, I also send an authentication code. It is over an insecure channel, so I may have man-in-the-middle attack, etc. I wonder if below schemes for authen...
I stumbled upon an AES implementation that uses boxes with multiples of 2 and 3 for its MixColumns operation. When inspecting the m2 box, I saw that the first line is : 0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,0x10,0x12,0x14,0x16,0x18,0x1A,0x1C,0x1E, So nothing abnormal, but once we reach 0xFE, the next line is : 0x1B,...
Given that F is a secure PRF in the example $$F'(k,x)= F(k,x)\mathbin\|F(k,F(k,x))$$ I'm not sure why this isn't a secure PRF? Under what condition $F(k, F(k,x))$ when concatenated to $F(k,x)$ the adversary will be able to distinguish between $F'$ and true random function?
We can represent elements of a finite field $F$ in various ways polynomial basis and normal basis. There is one other; generator-based representation and this is based on the fact that the multiplicative group of a finite field ($F^*$) is cyclic so there is a generator of this cyclic group, call $g$ and we write $\lang...
If I split a key $k$ into three pieces as $k1, k2$ and $k3$ how should I distribute the keys among three people such that any two of them are able to evaluate PRF, but be secure from any one of them trying to do so. The PRF is defined as $F'((k_1,k_2,k_3),x)=F(k_1,x)⊕F(k_2,x)⊕F(k_3,x)$ It is known that the three people...
The Elgamal encryption scheme is a Multiplicative Mask with the shared key. It doesn't seem to have any confusion or diffusion. So why is it not necessary here as compared to Block Ciphers?
From Christof Paar's book The protocol consists of two phases, the classical DHKE (Steps a–f) which is followed by the message encryption and decryption (Steps g and h, respectively). Bob computes his private key $d$ and public key $β$. This key pair does not change, i.e., it can be used for encrypting many messages. ...
According to the original paper form Bernstein public/private keys and the shared symmetric key are stored in little-endian. However, the WolfSSL of WolfSSL supports both, little-endian and big-endian. What is the reason for this? May there be any security issues?
I am searching info on dependencies between different hash functions. Let's say that we have a set of x hashes H1, H2 ... Hn (using different hashing functions) of the same string S. For every hash we can find collision in some time T1, T2 ... Tn It seems logical that finding collision for every hash in set will take t...
TLS is using 3 way handshake. Isn't that possible to use such 3 way handshake protocol to share a secret without using a public key scheme, for instance as follows: Let A, B be private secrets of Alice and Bob respectively, where A,B are elements in a commutative groups. Alice wants to share the secret X with Bob, and...
In researching about RSA accumulators I came across this question, Inclusion and Exclusion proofs in RSA accumulators - from the first answer I had assumed that proof of non-membership could be computed without knowledge of the set, i.e. using only the accumulator value itself ($A$), and the element ($x$) not contained...
I can't find information about EC curve used by Apple's iOS platform. The algorithm name that I could see in their docs is: eciesEncryptionCofactorVariableIVX963SHA256AESGCM However, there is no any explanation what it refers to. I've tried to find info about cofactor IVX963 with n/a so far. I read somewhere that Appl...
16 byte key where each byte is in range 0-255, generated using cryptograhic PRNG will be believed to have 128 bit strength. What would be a bit strength of a key generated using same quality PRNG, also of 16 byte length, if each byte instead of being one of 256 random values, would be one of 16 hexadecimal characters? ...
Imagine Alice has trained a machine learning model. Bob wants to verify that whether Alice actually trained the model or not, but Alice does not want to reveal her model (because the model is personal and she wants to keep it private). So Alice wants to prove to Bob that she has the model, while not revealing any infor...
Another way to ask this question: when block ciphers were invented, why did they add the restriction that the block cipher would be restricted to blocks of a fixed size? From my laymen's point of view, I don't see why rounds of S-box and P-box operations couldn't be performed with inputs of variable size.
I don't understand how we could bruteforce a symmetric cipher. Let's take AES with a key size of $128$ as an example. It means that there are $2^{128}$ possible keys, and as many ways to decrypt a ciphertext $c$. Given that there are so many different keys, it is theorically possible to decrypt $c$ into multiple plausi...
Trying to understand the well known property of these collisions when used with SHA1, SHA256, etc. where a given key is larger than the block size of the digest function. In these cases the smaller of the collisions will have a size of 20 characters for SHA1 and 32 for SHA256 (1/2 the hexadecimal digest length), so doe...
I have a use case where I need to build a unique identifier for my users with the email address and the "family member number". However, the two personal informations used to build the identifier must be hidden. I thought using a hash function for that but there is a risk of collision (the identifier is not guaranteed ...
I am trying to do some ElGamal encryption but having a different encryption formula. For that I doing the following steps: The key generator: Choosing value $p = 107$ and $a = 2$ Random number $d = 67$, and $b = a^d \bmod p$ where $b = 2^{67} \bmod 107 = 94$ $k_{priv} = 67$ and $k_{pub} = (p,a,b) = (107,2,94)$ Encryp...
I've been trying to decrypt a message encrypted with Rabin as a challenge. I'm very new to cryptography and these challenges so much of this is new. I've factorised n and determined that p=q which I understand to be incredibly weak. After many hours I discovered that the proposed decryption using extended gcd will no...
What are the valid key types which can get signed (or generated and signed) by a CA to constitute an SSL certificate? For the keys used in TLS, the key types I have seen are RSA and EC. Anything else? For non-TLS use cases, are there any other key types that could be used? DH sounds like an option, but I don't think I ...
I'm reading about the attacks of the McEliece cryptosystem. I needed to work out a lot of things because most descriptions I have found so far on the internet seems to be quite hand-wavy about the details. So I wrote down what I understand or I think I understand then I have some questions at the end. In a McEliece cry...
I have a 128 bit randomly generated key. I need to expand this key to 512 bits to use with an existing encryption library that does AES-256 encryption in CBC mode with HMAC-SHA256 authentication. The encryption library I am using also has PBKDF2-SHA512 available. Is it acceptable to use PBKDF2 with just 1 iteration to ...
We recently learned about AES in class and it was heavily emphasized that encryption and decryption in AES are not the same because the functions are not reversible. Why then, when we got to block ciphers, do certain cipher modes use the encryption function for both encryption and decryption? The reasoning given was th...
Factoring in birth day attacks and all that, with 256-bit elliptic curve cryptography, lets take secp256k1 as example that Bitcoin uses, what is the maximum number of accounts that are secure? It isn't $2^{256}$ since then any time you generate a random number you find a used account. Birth day paradox and all that, wh...
I have a 1024-bit number $n$ obtained by multiplying two 512-bit randomly generated prime numbers $p$ and $q$. Then there's $\phi = (p-1)(q-1)$, which is another 1024-bit number. I do not have $\phi$ but I do have the result obtained by multiplying $\phi$ with a random 1024-bit number. I need to retrieve $p$ and $q$. I...
Type a elliptic curve can be generated by reading a file like: const char pbpdp::params[400] = "type a\n q 8780710799663312522437781984754049815806883199414208211028653399266475630880222957078625179422662221423155858769582317459277713367317481324925129998224791\n h 120160122648911460793888213667405342048029544012513118...
This is from Dan Boneh's book Theorem 2.1. Let X = (E, D) be a Shannon cipher defined over (K, M, C). The following are equivalent: (i) X is perfectly secure. (ii) For every $c \in C$, there exists $N_c$ (possibly depending on c) such that for all $m \in M$, we have $|\{k \in K : E(k, m) = c\}| = N_c$ (iii) If the rand...
I know it is a kinda funny and maybe even naive question but its still security related, so I decided to ask. Bob and Alice are widely used names indicating the two end-users/parties for web protocols. But in security there is also a third entity, the malicious user. I read a blog post naming that entity "Maria". I gig...
I've been reading Dan Boneh's DDH paper, in particular section 3.1 which covers DDH randomized reduction. The first two sentences of theorem 3.1 state: Let $\Bbb G = \{G_p\}$ be a family of finite cyclic groups of prime order. Let $s(p)$ be an efficiently computable function such that $|G_p| \leq s(p)$ for all $p$. If ...
The definition of Paillier cryptosystem is the same as the one on wikipedia. Now the random integer $g$ is chosen of the form $$g=(1+n)^{\alpha}\beta^{n}\bmod n$$, where $\alpha$ and $\beta$ are in $\mathbb{Z}_{n}^{*}$. Prove that $$m\;=\;L(c^{\lambda}\bmod n^{2})\mu\bmod n\;=\;\frac{L(c^{\lambda})\bmod n^{2}}{L(g^{\la...
Authentication protocol using a keyed hash function: Alice and Bob share a secret key for a keyed hash function. The protocol is: Alice $\Rightarrow$ $m||h_{k}(m)$ $\Rightarrow$ Bob. There are the following two methods: $h_{k}=E_{k}\circ h$ and $h_{k}=h\circ E_{k}$. What are the advantages and disadvantages of the two ...
I got specific problem with my s-boxes in $128$-bit block cipher. One round of encryption is like that: input - sbox - reverse block - $sbox^{-1}$ - output Every s-box got specific $128$-bit key. $sbox^{-1}$ means that we are looking for such input to s-box that will give us such reversed block. First problem is with n...
Leonid Levin constructed a universal one-way function, i.e. a function which is one-way as long as there exists at least one one-way function. But my question is, does there exist a universal one-way permutation, i.e. a function which is a one-way permutation as long as there exists at least one one-way permutation? W...
Stalling says: OFB encryption can be expressed as Cj = Pj⊕E(K, Oj-1) where Oj-1 = E(K, Oj-2) Some thought should convince you that we can rewrite the encryption expression as: Cj = Pj⊕E(K, [Cj-1 ⊕Pj-1]) Is he implicitly saying that [Cj-1 ⊕Pj-1] = Oj-1 ? If yes, why?
This PDF supposedly gives a construction of a universal one-way function, i.e. a function which is one-way as long as there exists a one-way function: Recall that there are only countably many Turing machines (for any fixed alphabet). Let $M_1,M_2,M_3,\dots$ be a list of all the Turing machines such that the length o...
Question I have a scenario where a public key is exchanged out-of-band with exactly one person $A$ and is later used in a key-exchange scheme with $A$. Is knowledge of the public key (i.e., producing a valid encrypted message to the public key) a good authentication of $A$? Example Let's say Alice wants to set up a sec...
Mathematical hardness assumptions like that of the factoring problem, the RSA problem, and the discrete log problem all straightforwardly lead to one-way functions. But what about the computational Diffie-Hellman (CDH) problem? My question is, what one-way functions have been constructed based on assuming the hardness...
The title mostly explains it; CBC-MAC variable-length weakness with MAC size greater than the encryption block size I've seen that by having the pairs $(M,T_m)$ and $(N,T_n)$, we can generate a third message $M'$ whose CBC-MAC will also be $T_n$ by simply doing $M'=M \mathbin\| ((n_1 \oplus T_m) \mathbin\| n_2 \ldots...
Which cryptographic message standards are recommended to ensure cryptographic agility in the future and have good adoption trough different programming languages such as .NET and Go? The standard should be a hybrid cryptosystem using a Public Key Infrastructure as well as authenticated symmetric encryption. I don't wan...
I got specific problem with my functions in $128$-bit block cipher. One round of encryption is like that: $input$ $\rightarrow$ $F(k_{i},input)$ $\rightarrow$ reverse block $\rightarrow$ $F(k_{i+1},reversed \ block)^{-1}$ $\rightarrow$ $output$ Every function got a specific $128$-bit key, but keys do not change some pr...
The Security Policy Document: Microsoft Windows FIPS 140 Validation (version 1.4 dated May 7, 2020) mentions in section 2.2: 2.2 FIPS 140-2 Approved Algorithms Cryptographic Primitives Library implements the following FIPS-140-2 Approved algorithms: NIST SP 800-38D AES-128, AES- 192, and AES-256 GCM decryption and GM...
Can zero be one of the elements used in an MDS matrix (in the context of AES)? Based on what I have read all entries of an MDS Matrix need to be non-zero. Also, I would appreciate any help in understanding the reason behind this requirement if zero cannot be an element of MDS.
I found this thread from 2011: Is there a secure cryptosystem that can be performed mentally? Are there new secure hand or pen-and-paper ciphers in 2020? (I know, that hand ciphers are not as secured as digital ciphers).
im trying to find a good way to allow searches against encrypted data in the database. Lets say i want to encrypt phone numbers, if its encrypted securely i cant search against phone numbers directly which hurts the application abilities. From what i understood there is a main pratice that is still performant and secur...
I am learning modern cryptography and recently we reached the CPA mechanism. In CPA game setting, A sends two messages to C and then C randomly chooses one message and encrypts it and sent the encrypted text back to A, then A will determine which one of the two messages is chosen by C. However, if A sends two identical...
Suppose $f$ is a probabilistic one-way function. Then my question is, does there exist a construction of a deterministic one-way function $g$ based on $f$? Or is it possible that probabilistic one-way functions exist but deterministic one-way functions do not? EDIT: Probabilistic one-way functions are defined in defin...
I'm trying to diagnose a badly-implemented pseudo-random number generator. The two key features of the bit streams produced by this PRNG are: significant correlation of consecutive bits (approximately 70% of 0's are followed by 0's, and similarly for 1's), and significant anti-correlation of bits that are 17 apart in t...
How can RSA be used for digital signature with message recovery and encryption, providing transmission of a small message with confidentiality and authentication simultaneously, small cryptogram size, and little or no reliance on symmetric/hybrid encryption?
In the paper, "On Error Distributions in Ring-based LWE" by Castryck, Iliashenko and Vercauteren, page 3, It is shown that the distrotion to the spherical gaussian in Ring - LWE is caused by the inverse of the vandermonde matrix and the matrix of multiplication by f'(x). It is explicitly stated that the inverse of Vand...
Since OTP have to be agreed upon in advance, they may be longer than the plaintext. So in this case, how is the encryption done? Is the OTP truncated to the same length of the plaintext before encrypting or is some kind of padding used - how does it work? I am talking about the case where Alice & Bob exchange a book of...
I have some questions about the Hill cipher. There is a rule for key K: Determinant of matrix and number of characters of the alphabet must be coprime. What does this rule say? Why it must be like this? So If I had determinant 5 and characters 30, it would not work? Let's assume I have key K which should be 3x3. I wo...
I'm currently working on some cryptography homework, but I'm stuck on this particular question. Let $F$ be a pseudorandom permutation with identical key length and block length (both equal to the security parameter $n$). Prove that there is no probabilistic polynomial time algorithm $\mathcal{A}$ that, on input $1^n$,...
Upon reading through the source code of Rainbow, a post-quantum signature algorithm, I found a hashing function that, using SHA-512, produced a variable length digest. This was achieved was by initially hashing the message to obtain a 64 byte digest, and then hashing that digest, and again, each time hashing the N - 1 ...
I have two PGP public key files: File1 was created with Kleopatra / Gpg4win. File2 was created by the following procedure: Import File1 as public key for EmailAccount1 into Thunderbird 78.4.0 Send this imported public key via email from Thunderbird 78.4.0 from EmailAccount1 to EmailAccount2 Save the public key file th...
Is there a formal name for such a thing, so I know what to google? Is it possible to make them as secure as randomly generated passwords? An illustrative example would be something like picking a random book and then picking the words inside it using some process that can be recreated to generate a passphrase.
In the work of Bellare–Goldreich that defines knowledge soundness BG92, the discussion of Section 4.5 specifically decouples knowledge soundness from soundness. That is, proving knowledge soundness for some verifier $V$ says nothing about the soundness of some pair $(P^*, V)$, for arbitrary (cheating) prover $P^*$. How...
Imagine Alice has trained a machine learning model. She wants to store her model in a blockchain so that everyone can use it; however, she wants her model to be private so that no one can steal her trained model. Is there any way that a model can be used for prediction only while being private? For example, is there an...
I am trying to understand why it is a hard problem to have formally verified constant time arithmetic for DSA when compared with ECDSA. For instance, in ECDSA implementations of OpenSSL, we have specialized constant time ECC curve-specific implementation for NIST curves which are optimized per architecture. Similarly, ...
Where is an official documentation for ASN1 structure and values of x509 certs? Using OpenSSL command like openssl asn1parse -in server.der -inform DER I can see how the cert is structured, but, for example, value OBJECT :sha256WithRSAEncryption is HEX 2A 86 48 86 F7 0D 01 01 0B, or countryName identifier is 55 04 06 -...
Refer to the chart on 1-2 oblivious transfer : https://en.wikipedia.org/wiki/Oblivious_transfer I'm Bob, I know N,e,x0,x1. Can I send Alice a v value that, by knowing the m'0,m'1 received, I can crack both m0 and m1? Thank you
Is there a straightforward way to employ NIST Statistical Test Suite for testing a biased generator (e.g. with 0.6 probability of 1)? By straightforward way I mean one not requiring nontrivial code modification.
What does it mean to say a function is length regular and Length preserving? Does any one of them implies the other? Example if any could be useful
As you may already know, proofs of retrievability (PoR) can be constructed using MACs, Signatures (as stated here) or Merkle tree (like this). The PoRs that are based on MACs or signatures usually use the notion of extractability. Informally, it states that if a prover can convince the verifier (with a high probability...
The xChaCha cipher detailed here extends the nonce 192bits and works as follows (from the link): Pass the key and the first 16 bytes of the 24-byte nonce to HChaCha20 to obtain the subkey. Use the subkey and remaining 8 byte nonce with ChaCha20 as normal (prefixed by 4 NUL bytes, since [RFC8439] specifies a 12-byte no...
The Blum Blum Schub (BBS) pseudo random number generator (PRNG) is defined inductively by $$ x_{i+1} = x_i^2 \mod N $$ to generate the bit sequence $b_0b_1b_2...$ where the bits are taken to be the parity of the integers $x_i$, and $N$ and $x_0$ must satisfy particular properties (see this post for example). The BBS ge...
I am trying to implement the D-XOR and S-XOR count in python but despite reading multiple articles on how to perform the calculation I have failed to understand the process used. I would appreciate it if someone could demonstrate the process using an example. Below I have included some of the references that detail the...
I want to deterministically encrypt a short message <50 bytes with AES-128 CBC. I also want to be able to detect if the correct key is being used. Ciphertext and IV integrity will be guaranteed by a higher layer of software, so its impossible to tamper with the ciphertext, IV or additional data. The encryption key is w...
What are the properties of random involution? What is the difference between random involution and random permutation?
A non-cryptographic definition of a permutation is "2a: the act or process of changing the lineal order of an ordered set of objects. 2b: an ordered arrangement of a set of objects The Wikipedia article on Random permutation states that "A good example of a random permutation is the shuffling of a deck of cards: this i...
This is from this video https://www.coursera.org/learn/crypto/lecture/XZt5V/constructing-compression-functions At 2:44, Dan Boneh explains why the XOR is required. This is his explanation m - message to be hashed H - output of previous hash (chaining input) h - hash function E - Encryption function D - Decryption funct...
From what I understand, in general, TLS consists of two protocols: 1 - Handshake protocol: uses public-key cryptography (ECDH, DH) to establish a shared secret between the client and server. 2 - Record protocol: uses the shared secret established in the handshake protocol to protect communication or application data be...
In PKCS11 specification v2.40, we see some confusion with CKA_VALUE_LEN attribute and UnwrapKey behavior. From PKCS11 spec 2.40 section 2.8.2, 2 -> MUST not be specified when object is created with C_CreateObject. 3 -> MUST be specified when object is generated with C_GenerateKey or C_GenerateKeyPair. 6 -> MUST not be...
I have a science fair project coming along, and I'd like to focus on a basic cipher (something simple, like a substitution cipher) and how I could make a similar system that would be about equally secure but would be faster to decode. Is there anywhere I could find information beforehand on deciphering speeds or would ...
I have a proprietary signal processing algorithm, $F(s)$, which I would like to demo to my customers. The demo starts with the customer uploading a binary signal $S_0$ to my website. I then generate a response signal $R = F(S_0)$ and return it to the customer. The customer then adds some amount of noise to the response...
I am performing some measurements of P256 ecdsa signature generation and verification latency and I was expecting that the signature verification will be faster than the signature generation, but is was not the case. what makes the signature generation faster ? what is the most computationally expensive operation in si...
I am struggling with a property of combined hash function and more precisely concatenation. I have seen that concatenating two collision resistant hash functions preserves this property (same for 2nd preimage resistance). But not always for the first preimage. Indeed, some explains that if the two concatenated hash fun...