instruction
stringlengths
32
27.2k
Hi,I am new to cryptography. I do not understand 5th step could anyone explain me please. 1) Read a plaintext from a file block-by-block with block size of 10 characters. Please note that plaintext file must contain more than 10 lines of text. 2) A permutation of length 10 is chosen to be IP = 10 8 6 4 2 9 7 5 3 1. The...
I understand the "sudden death" implications of reusing a nonce with ChaCha20-poly1305, but I believe this rule doesn't apply if you are transmitting exactly the same packet. I'm putting together a small radio protocol where packets can be lost and if an ack isn't received the packet is re-transmitted. In this instance...
Lets assume for example, that a server is configured to use TLS 1.0 and there are no ciphers enabled for it. What will be the default behaviour if a client connects to it? Will the server use any null ciphers by default to complete the TLS handshake?
I found some questions and answers about the performance of Fully and Partially homomorphic encryption. I am interested in a comparison in terms of security guarantees (of any kind, formal or informal). I understand that there are various schemes for both and so a comparison between specific schemes is equally useful t...
I am not sure whether this is common sense, but I really don't know what this $c$ means in an equivalent sign, from Lindell's How to Simulate It: $$\big\{(S_1(1^n, x, f_1(x,y)), f(x,y))\big\}\stackrel{c}{\equiv} \big\{(\mathsf{view}^\pi_1(x,y,n),\mathsf{output}^\pi(x,y,n))\big\}_{x,y,n}$$ $$\big\{(S_2(1^n, x, f_2(x,y))...
I have read that the only difference between enc and dec of a Feistel Cipher is the order of the subkeys. But on the following figure, the harves block are also inverted, no? I don't understand why it doesn't count as a difference... To me, take the R block or the L block into the XOR has not the same effect.
It is mention in the paper " Fides: Lightweight Authenticated Cipher with Side-Channel Resistance for Constrained Hardware" , the number of active S-boxes of Fides cipher is 22 over 5 rounds but my result shows it is 25((9-3-1-3-9))using the same concept used in midori (same almost MDS matrix) to construct MILP model. ...
Let's say I have a secure AEAD-scheme like ChaCha20/HMAC and my encrypted blobs need to match a fixed size: Is it OK to apply some padding to my plaintext to match the block-size? Can I use any reversible padding or should it provide some special properties? The required ciphertext properties are: privacy integrity i...
I understand how work the multiplication but I'm confused if the matrix to use is fixed or variable. The site where I read how mixcolums work is this https://math.stackexchange.com/questions/248456/matrix-multiplication-in-aes-mixcolumns-step Thanks in advance for the replies.
void encrypt (unsigned long* v, unsigned long* k) { unsigned long v0=v[0], v1=v[1], sum=0, i; /* set up */ unsigned long delta=0x9e3779b9; /* a key schedule constant */ unsigned long k0=k[0], k1=k[1], k2=k[2], k3=k[3]; /* cache key */ for (i=0; i < 32; i++) { /* ba...
I have recently learned of dual ciphers, in particular dual ciphers of AES. It seems there are many. Most of my information comes from:(1) Representations and Rijndael Descriptions. In this paper the authors (which includes one of the designers of AES) discuss $256!$ equivalent ciphers of which $2^{62}$ are useful (4.1...
I was wondering whether in DES, if we used more than 16 rounds, the security of the message was increased or actually decreased? (disregarding the decreased speed of execution / computation.) Thanks in advance!
I had searched a lot but I don't undestand how work the operation on binary (How to solve MixColumns). What I don't undestand is from where he catch 0001 1011 to do the XOR operation. Can someone explain me? Thanks in advance for the replies.
I am working in the secp256k1 elliptical curve, though I suspect this would apply to any elliptical curve. I have a Pedersen Commitment of the $x$ and $y$ coordinates in some discrete log scheme with generators $g$ and $h$. The point described by $x$ and $y$ is equal to $G^n$, where $G$ a public generator and $n$ is a...
I have three different 1024-bit public keys with common exponent $e$ but different moduli. A message $m$ is encrypted (without padding) using the three keys, which results in three different encrypted messages. Given the three pairs of public keys $(N_i,e)$ and the encrypted messages $c_i=m^e\bmod N_i$ , how do I decip...
Is the perfect secrecy of the one time pad dependent upon the xor "randomness preserving" property (xoring a uniformly random string with any string yields a uniformly random string)? I have seen different arguments in different sources. For example, in this discussion, the first answer derives perfect secrecy without ...
I recently started looking into security mechanisms used for Car2Car communication according to DSRC/WAVE and ETSI. What I found so far is that each packet is signed using ECDSA mechanism. Also each packet either contains the certificate that is used for signing or some hash value identifying that certificate. This cer...
In ElGamal scheme we have message $M$; $p$, $g$ and $y=g^x \bmod p$ as public key where $x$ is unknown private key. Encrypted message $(c,d)$, where $c=g^k \bmod p$ and $d=M \cdot y^k \bmod p$. Signature $(r,s)$, where $r=g^k \bmod p$ and $s=(M - xr)\cdot k^{-1} \bmod p-1$ If $c=r$ then message encrypted and signed w...
Assuming we have a Feistel cipher, with let's say 2 rounds i.e: Plaintext $P=(L_{0},R_{0})$ $L_{1}=R_{0}$ $R_{1}=L_{0}\oplus f_{{K}_{1}}(R_{0})$ $L_{2}=R_{1}$ $R_{2}=L_{1}\oplus f_{{K}_{2}}(R_{1})$ With the keys $K_{1}, K_{2}$ With a known plaintext attack, assume we have some $x$ amount of pairs of $(P_{i}, C_{i})$ fo...
Let $L = [b_1, \dots, b_k]$ be a list of blocks of a file. I want to compute the function $f = h(g(b_1), \dots, g(b_k))$ on $N$ untrusted nodes such that: Anyone can be reasonable convinced (with high probability) of the correctness of the result. The algorithm is practical (no homomorphic encryption nonsense or simil...
I started reading "Bitcoin and Cryptocurrency Technologies - Princeton University" (coursera) and in the first chapter it talks about Merkle–Damgård transformations for SHA-256. I was trying to understand it by working out an example, but I keep getting problems. Here is my work: Take a compression function that takes...
I have an RSA Private key file my_private_key.pem with the header -----BEGIN RSA PRIVATE KEY-----. I can parse that with the openssl utility: openssl asn1parse < my_private_key.pem That shows me a bunch of integers: a 4096 bit integer, a 17 bit integer, another 4096 bit integer, and then five 2048 bit integers. I under...
I'm doing some research into the RSA cryptosystem but I just need some clarity on how it worked when it was published in the 70s. Now I know that it works with public keys but did it also work with private keys back then or did it use a shared public key first and then private keys were introduced later?
According to my understanding, Digital Signature is a technology to use private key/public key to sign/verify data in order to ensure data authentication, integrity and non-repudiation. Sender signs the data with private key and send the signature with the original data to receiver, and receiver verify the signature to...
Under the assumption that "secure" encryption exists, secure evaluation of functions represented by Boolean circuits is possible by Yao's garbling scheme [Y1]. My question is whether secure evaluation of functions represented by Boolean formulae is an easier problem (i.e., possible in the information theoretic setting...
The Fiat-Shamir heuristic may be applied to transform a Sigma-Protocol on R(x,w) into a ZKPoK. Let's call the prover's first message a and the verifier challenge e. It is said that given a secure hash function H, one could have e = H(x,a) for Random-Oracle security. But what happens if only a is hashed? What known atta...
I have a string secret that I would like to encrypt for storage in a Yubikey's second slot. These slots can be configured to store up to 38 characters that are later "typed" by the USB device acting as a keyboard. This means it can't store raw bytes, but fortunately it's sufficient for my use case for my secret to cons...
I've been struggling since days to install libsodium on my Debian9/php7.0(with fpm) server ... When I follow the steps outlined on https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsodium everything seems to work, however I get this error at PHP startup: Invalid library (maybe not a PHP library) ...
For SHA-256, FIPS 180-4 states the following on the constants: These words represent the first thirty-two bits of the fractional parts of the cube roots of the first sixty-four prime numbers. If one were to change some small number of those constants, say $n \leq 8$, to suitably "random" values, would this significan...
I'm trying to understand how GRC password generator can get 512 bit of secret data while encrypting 128-bit of data. The generator address is located here: https://www.grc.com/passwords.htm See the "The Techie Details" section at the end of the webpage. They wrote: The result of the combination of the 256-bit Rijndael...
Let's say I have a document. I want to give you a copy, and then I want to prove that I gave you a copy. Ie, I want some kind of digitally signed receipt from you. If you're dishonest, you may receive the document and then refuse to give me a receipt. I would like some sort of cryptographic protocol that provides some ...
I've been reading details about the Double Ratchet algorithm, and I wanted some clarification regarding the aspect of the DH public keys going out in the plain in the header of every message. Quoting from the specifications of the Double Ratchet: Every message from either party begins with a header which contains th...
I want to set up a very secure-from-MITM-attacks server. I have these algorithms enabled in my nginx and I'm getting an A+ on ssllabs.com but it's complaining that my cipher strength isn't 100% and that my key exchange isn't either. Even if reordering these won't improve it, I still would like to sort them by security ...
Let's say I have 4 strings - A, B, C & D. I concatenate and hash them in any order: A + B + C + D or A + C + B + D and send it to another party. Let's call this X. I can also send a hash of A separately to the same party (but cannot send it in plain text). Is there any algorithm that I can use to figure out whether the...
I don't quite understand why AES CBC was removed in TLS1.3. From what I know CBC is the most secure Mode of operation for the AES block cipher (if you can say it like that). It only needs a TRND IV and has not been broken. If you pair it with a decent HMAC I guess It's at least as secure and AES-GCM. So why is AES-GCM ...
I have clients sending data to a server. The data is not encrypted, but that's OK. I want to make sure the server only accepts data from authorized clients. The server knows all of the clients' passwords. The clients generate a fairly random string (the first 6 characters of a UUID, gotten through the Python uuid.uu...
Let's define "breaking" a hash function $H$ as being threefold (corresponding to the main properties of a cryptographic hash function): preimage attacks to get $m$ knowing $H(m)$ second-preimage attacks to find some $m'\neq m$ knowing $m$ so that $H(m)=H(m')$ collision attacks to find $m_1,m_2\neq m_1$ for $H(m_1)=H(m...
The popularity of SHA-256 as a hashing algorithm, along with the fact that it has 2256 buckets to choose from leads me to believe that collisions do exist but are quite rare. Are there any well-documented SHA-256 collisions? Or any well-known collisions at all? I am curious to know. I find that showing collisions to pe...
We have $$e(x) \equiv ax + b \pmod{26}$$ where $a,b \in \{0,1,\dots,25\}$ and $\gcd(a,26) = 1.$ The question is how to find all possible values of $a$ and $b$ for which $$e(e(e(x))) \equiv x \pmod{26}$$ holds for all $x \in \{0,1,\dots,25\}.$
Are there any publicly available stats regarding how often are specific public exponents used for RSA keys? Presumably, 65537 is the most commonly used of them, but I'd like to get some notion of which other values one should care about when testing for compatibility.
I want to implement threshold homomorphic encryption for my project. (encrypt a message using one public key, and decrypt a ciphertext using distributed secret keys) I read a paper "Multiparty computation from threshold homomorphic encryption", which describes the way to build threshold homomorphic encryption. However,...
In WWII the primary way of encrypting radio broadcasts was to have the broadcaster transmit a signal with noise added from record, while the receiver would have an identical copy of the record subtracting the noise. Assuming that the noise is totally random, and the record is never replayed. How would one attack it? Wh...
Let's say a 1MB file has many many consecutive null-bytes 128-bit blocks. Then, as AES works with blocks, the encrypted file will also have recurrent 128-bit-long patterns of aes_encrypt(000...0) (where 000...0 is a 128-bit long null block). How isn't this a weakness? As null-bytes blocks is very frequent in files, we ...
In Security of Blind Discrete Log Signatures Against Interactive Attacks C.P. Schnorr defines the ROS Problem and claims that a $(l+1)$ attack against his blind signature scheme is equivalent to solving this ROS problem. (As an aside, some years later Wagner found a way to solve the ROS problem for typical groups, so u...
I'm trying to understand why is this, in my opinion, counter intuitive construction secure. ECDSA is a tuple of two numbers (r, s) whose validity can be verified by public key. However I don't see the reason why the only way to forge the signature is breaking the DLog problem on the EC. I spent many hours thinking abou...
While studying ring signatures, I obviously stumbled on the Wikipedia article about ring signatures. It includes a piece of Python code to demonstrate "How to leak a secret" ring signatures. Remarkably, they do not use a symmetric encryption function ($E_k$, as in "How to leak a secret"), but a hash function ($\mathcal...
I'm looking for articles about finding bugs in security protocols using formal methods so I can test them using tools like ProVerif. I've searched a lot of references, but most of them seem to be about formal methods themselves and why we should use them, not testing a particular security protocol. Are there any securi...
Looking at a reference implementation it shows that the key pair generation simply does: read X bytes from RNG and then derive another value from these X bytes thus producing private key with derived public key. However nowhere in documentation I see mention of what qualifies as a “good” private key (or in this case R...
could someone tell me how long the cycle length must be in stream ciphers, so a security exists. how to compare the cycle length to the state space? I investigate the algorithm spritz and I have the attainability of the states under investigation with key lengths of 1 - 10 and n = 6. now I have the values ​​but I still...
need to create secure PRNG. can i use ANSI X9.31 generator and modify its entropy rather using DT use something else >?
Along CHES 2017 was a Capture the Flag Challenge, aka The WhibOx Contest. Participants submit C source code with interface void AES_128_encrypt(unsigned char ciphertext[16], unsigned char plaintext[16]); that performs AES-128 encryption with some key. Other participants attempt to find that key from the submission. A...
I'm studying the basics of cryptography and I didn't understand why elliptic curves use fewer bits. For example, finite-field Diffie-Hellman needs at least 1024 bit and it's a DLP, but elliptic curves need at least 256 bit and it's also a DLP. What is the actual difference? Can you show mathematically why (with some ...
Can someone explain why after extended Euclidean algorithm if a negative value is given for d it must be taken from (p-1)*(q-1) whereas if the value is positive it can be taken as is My calculations are as follows: p = 17, q = 19, pq (or n) = 323, e = 7 ed = 1(mod lcm(p-1, q-1)) thus ed = 1 % 144 I now try and find d ...
I want to make a computer program to sign and verify some message using ECDSA. There are some computer libraries but I'm having trouble using them, as I don't understand ECDSA. What do I need theoretically? Is ECDSA the same as other digital signing that I calculate hash of message, encrypt the hash and append it to t...
I'm implementing a pairing-based signature scheme using Charm Crypto and PBC, and I'm struggling to understand the relationship between the curves proposed for use with pairings and the pairings themselves. As I understand it, I can choose between various curves (e.g. I would like to use TypeD curves). I know that ther...
I heard that the fastest method to crack an AES-128 encryption, or and AES-256 encryption is by brute force, which can take billions of years. But I can't help thinking there's got to be a faster way. Because the AES encryption scrambles the data contained in a zip file, the password could be found by unscrambling tha...
I'm looking for a hardware that can generate sha256 hash of the input.
In the answer here: Verification of identity by certification authority, it states that for European eIdentity you must provide your passport or ID card, but that this practice is quite different for SSL certificates (which makes up the biggest part) or software signing certificates. I'm interested in that case. Th...
While obtaining digital certificate the applicant trusts the certificate authority (or registering authority) as CA is digitally certified (and applicant has CA's public key). To certify a domain the protocol would go like this: I generate my public-private keys and send the authority my public key encrypted by its p...
I'm having difficulties figuring out, what the 'full stop' means in the paper John Almeida - SHADOW NUMBERS PUBLIC KEY ENCRYPTION. Appreciated if someone can elaborate on it or have a list of similar notations explained. $$B = (Sa . Sb) − 1$$ The 'full stop' inbetween Sa and Sb is what I'm trying to understand here spe...
Consider the ECDSA protocol, which is applied in different environments e.g. the Bitcoin system (for user addresses, and transaction signing). What are the greatest threats in terms of algorithms that could solve the underlying discrete log problem for groups over elliptic curves? I found: General Number Field Sieve ...
Is there a crytpographic way to assert ownership of an asset (let's say a piece of stone)? As an example, a number (public key) could be engraved in the stone, and the owner could keep a private key (never shared). Anyone who wants to claim for ownership would have to decrypt a message, and only the one who has the pri...
Definition: A matrix A of size $2^n$ is a Hadamard matrix, if has the following form $$ A= \left( \begin{array}{cc} U & V \\ V & U \end{array} \right)_{2^n\times 2^n}\, , $$ where $U$ and $V$ are also Hadamard matrices. Example: A Hadamard matrix A of size $2^2$ is as follows $$ A= \left( \begin {array}{cccc} a_{{...
Is hashing the last block in the Merkle-Damgård necessary in preventing collisions? i.e. What if I just outputted $z_B || L$, where $z_i$ is the hash of the last block of the message, L is the length of the message and B is the number of blocks, instead of $H(z_B || L)$?
The RSA factoring challenge lists this RSA 2048 value: 25195908475657893494027183240048398571429282126204032027777137836043662020707595556 26401852588078440691829064124951508218929855914917618450280848912007284499268739280728777 67359714183472702618963750149718246911650776133798590957000973304597488084284017974291006 4...
Nigel Smart's attack solves the discrete logarithm problem in linear time. It requires the curve, however, to be anomalous, i.e. to have a trace of Frobenius equal to one or, equivalently, to be of the same order as the underlying field, $\#E=p$. Smart's paper is here: http://www.hpl.hp.com/techreports/97/HPL-97-128.ht...
I have not a very large background in cryptography so I hope these questions are not very dumb. I don't want to reinvent the wheel, I'm just looking for advise on the best practices about how to build the following. I've seeking and reading for several hours now and didn't find any answer that fulfills my concerns. Th...
How can one crack a message c_2 encoded by e_2 if one knows e_1, e_2, d_1, and both codes share common modulo n, without using factorization? Considering textbook RSA
My friend forgot the password to his electrum wallet but knows that it's a 6 digit pin. I looked into it and from what I can find electrum uses the sha256(sha256(pin)) to generate the key used to encrypt the private key with AES in CBC mode. What I'm not sure about is whether or not it is feasible to crack this and I w...
I have a symmetric-key encryption scheme. I think the output from this scheme (MAC + IV + CBC ciphertext) should already be practically indistinguishable from random, but I would like to pad the output to an arbitrary number of bits and have it still look like noise (I will be using the output for steganography). It wo...
I would like to implement a hash function $H \colon \{0,1\}^* \to \mathbb{Z}_p^*$ such that $p$ is a prime number and $\log_2(p) > 256$. I am wondering if it is a good idea to use the hash function SHA-256. Since $\log_2(p) > 256$, can I just use the output of SHA-256 and apply the modulo $p$ on it? I would also like t...
Is the security of AES algorithm increased by using many s boxes at the same time instead of using only one s box , and the same question for using many MDS instead of only one.
For learning purposes, how to get the RSA's parameters (I use standard notation): $n = p q $, where $p$ and $q$ are prime and $e$, $d$, such that $ed = 1 \ (mod\ \varphi (n)) $ when doing ssh-keygen -t rsa -b 2048 i.e. how to get those parameters from the output: ----BEGIN PRIVATE KEY---- F2847XAPM... ... ----END PRI...
I have a system made of 2 or more parties, already sharing a master key MK, who want to agree on a session key SK (both 128-bit AES keys). One of the parties (the master) starts the protocol by sending a random nonce authenticated by a MAC computed from a shared secret (derived from MK). The request is also protected a...
Recently, the DUHK attack on bad RNG implementations of hardware devices has been published. The attack is based on a (known or reverse engineerable) hardcoded key, which is used for a ANSI X9.31 based PRNG to create key material. According to the blog post by Matthew Green, the attack is explicitely based on the X.931...
One time pad required a truly random key. Why canwt it be a psudo-random key? For example, if the key distribution is that for each bit the probability to get 1 is 0.6 and the probability to get 0 is 0.4, and the eavesdropper knows it, how can he decrypt the message (assuming that the key length is at least as big as t...
I have been searching for a detailed explanation but can’t seem to find a low level one. 1) When CA sign the data with its private key, the encrypted data is APPENED to the csr or the whole cert itself is the encrypted version? Does the encrypted data include contain public key or the whole CSR is encrypted? 2) if it i...
Paillier cryptosystem has self-blinding property. (change one ciphertext into another without changing the content of its decryption) Is there any threshold encryption scheme (or just encryption scheme) which provides one time blinding? (One time blinding means that the number of changing is limited to one.)
I am reading a paper and notice that the term St is used without being defined. I suspect it is a common notation that I am not aware of. It is used in the following paper: https://eprint.iacr.org/2015/482.pdf The first instance of it appears in Section 2.1, in the formula used in Definition 2. What does the St deno...
How can we attack by using chosen plaintext attack (and which plaintext should we choose) if AES didnt have the ShiftRow and Mixcolumn layers. I know each byte would be independent in the 16 byte scheme but couldnt figure out a way to attack.
I'm trying to use the Pohlig-Hellman algorithm to solve for $x$ where $15^x=131 \bmod 337$. This is what I have so far: Prime factors of $p-1$: $336=2^4\cdot3\cdot7$ $q=2$: $x=2^0\cdot x_0+2^1\cdot x_1+2^2\cdot x_2+2^3\cdot x_3$ $x_0$: $131^{168}=15^{168*x_0}$, $-1(\bmod 337) = (-1)^{x_0}(\bmod 337)$, $x_0=1$ $x_1: 13...
The S-Box in AES encryption is a byte substitution step. Is it possible to perform the substitution 2 bytes at a time, rather than 1 byte? What are the challenges/trade-offs involved?
Factoring a 2048 bit number is a difficult topic with a well known complexity. But it seems that p, q, the prime numbers used in RSA (order of magnitude: 10^308) are generated thanks to the probabilistic primality Miller Rabin test. Indeed even a table of primes between 10^307 and 10^308 would be out of reach. Is RSA ...
Consider the following scenario: an adversary $A$ with access to an encryption oracle $\mathcal{O}$ is able to choose $n \in \mathbb{N}$ and pick $p_1,\dots,p_n$ such that $\forall i \in \{1,\dots,n\}:$ $A$ queries $\mathcal{O}$ with $p_i$ in order to obtain ciphertext $c_i := \texttt{AES_CTR_ENC}(p_i,k,IV)$ for some u...
I recently posted a question about AES dual ciphers based on a certain understanding of them. Now I am not so sure if my understanding is correct. AES: a question about dual ciphers and security Originally I thought $AES$ dual ciphers were essentially the same as the original, but with slight (but equally secure) cha...
I'm creating a bloom filter. The purpose of bloom filters is to tell the enquirer whether a value is either definitely not in the set, or is possibly in the set. The only attack vector I can think of is: An attacker has two versions of the bloom filter, the first version containing a set of values and the second versi...
According to this and this paper from Alexander May is possible to factor given the knowledge of the RSA private key. This is possible via Coppersmith and LLL reduction. Now I am trying to implement the code using the reduction in 2 (I prefer this to 1 given the fact []1] uses bivariate integer polynomials). Now I stru...
I have seen a lot of different files with the same MD5s. For CRC32 is quite easy to find collision. But is is it possible to make size, and two different hashes the same? I have seen many linux packages has only one SHA test-sum, why not to increase security with another hashing function? (I am not asking about SHA fam...
I ran across some CSRF code that does: Tokens.prototype._tokenize = function tokenize (secret, salt) { return salt + '-' + hash(salt + '-' + secret) } where hash seems to be a SHA1 digest modified to fit in a multipart/form-data body without extra encoding: function hash (str) { return crypto .createHash('sha1...
I'm reading about Signal Protocol and this protocol uses the X3DH Protocol to establish a shared secret key between the two parties but I couldn't understand why we use one-time prekeys in the flow. This keys are optional and if there is any in the server, in the first message between Bob and Alice, an extra Diffie-Hel...
In my studies, I have seen two common ways that an Honest Verifier Zero Knowledge Proof can be converted to a Zero Knowledge Proof. Either make the proof non-interactive with Fiat-Shamir's Heuristic (thus removing the Verifier) or make the Verifier commit the challenge beforehand. Wouldn't it also be secure for the Pr...
Suppose that we use a public key encryption scheme by keeping the public key secret. Can we consider a public key encryption scheme at least as secure in this private-key setting, when compared to the normal use?
I am using codahale’s Shamir's Secret Sharing implementation of Shamir's secret sharing from Github. I am using this to generate a 32 byte random key encryption key (KEK) to encrypt a 32 byte data encryption key (DEK) which is used to encrypt the data on the Kafka producers. The DEK would be part of the payload, but th...
Let's say I want to use ECs to do asymmetric encryption. Suppose both sides have generated EC keypairs and have exchanged their public keys. I run ECDHE, and get a derived secret. I would then either use that as a key for AES, or create a derived key with an incrementing nonce for subsequent "sessions". My gut tells me...
In RFC5054, the SRP6a algorithm states that the client and the server should generate random ephemeral private values $a$ and $b$ respectively which are used for further derivation in the handshake and in the generation of the shared-key. For a persistent TLS connection, it obviously makes sense to generate a new rando...
In this article about decryption of Enigma(p.259), author says that the second set of rotors was stepped three positions beyond the groundsetting in the Cyclometer Rejewski devised. I would like to know why did he advanced 3 positions for the right rotor in the second set of rotors instead of 1 or 2 positions for th...
Recently, I have been browsing a lot through libraries that implementing Shamir secret sharing. I see a lot of code that implements this cryptographic algorithm without any side channel (timing/branch/cache) resistance or with casual mistakes. Where I come from, side channels in cryptographic code are a big no-no, and ...
We work on C++ code which compiles on Windows and Linux. I have been told that AES encryption/decryption is platform dependent. Is it true? If so, why is it OS dependent?
How can $g$ be derived from $c = g^r \bmod p$ ? $g$ and $r$ are not known, but $c$ and $p$ is. And oracle can provide many $c$ but the $r$ and $p$ is always random. I think this is somewhat related to Decisional Diffie Hellman but I am not sure where to go from there, as the $p$ is always random.
I have a task at hand on designing security on Bluetooth Low Energy application layer. The system is created so that only smartphones with symmetric key (long term) could communicate and control my BLE device. The symmetric key will be stored securely on cloud server and programmed on BLE device with JTAG read protecti...