instruction
stringlengths
32
27.2k
I am building kinda simple IoT project, but I would like to implement good security (just for educational purposes and fun). My plan is to build simple solution where one arduino board reads some data (lets say temperature), it sends data to mqtt broker on rapsberry pi and second arduino board subscribed to this broker...
Ok, I am in a little bit of cryptographical fix :D I need to figure out a way to encrypt and decrypt data handled by a website. The website is intended only for a certain group of people who will use it to upload and search sensitive information. Data is entered by them using a browser, which should be encrypted befor...
We would like to ask you to give a construction for requested scheme which provides those properties or give a proof that is not achievable. [Note that unsuccessful attempts to build such a scheme can be found on the links Is this "linear combination" of PRFs and Hashes a secure MAC? and Is this construction a secure M...
This string, "Au+u1hvsvJeEXxky" has a Shannon entropy of 3.75 and a length of 16. The binary form of the string ( derived from Ascii-table ) is: 01000001 01110101 00101011 01110101 00110001 01101000 01110110 01110011 01110110 01001010 01100101 01000101 01011000 01111000 01101011 01111001 This string has a Shannon entr...
Let's assume I have datapiece A which, after being put through a model or neural network, has a known output X in the unencrypted space. When I move datapiece A into an encrypted space, and put it through an encrypted model, it becomes datapiece e-A. Now, it has output e-X. In this way, I am using a known (unencrypted)...
This might be a very short very obvious answer, because I've yet to come across a question similar to mine in my searches. Given a lattice L, with a good base B1 and a bad base B2, what stops an attacker from simply re-creating the lattice structure from the public base B2? It might just be a terminology mix-up on my p...
Assume a simple case, that an attacker knows the password creation scheme, and that we're not dealing with state actors, nor with sites which keep passwords in plain text. We're trying to defend against offline brute force attacks on a compromised database of password hashes. And we want the vast majority of our passwo...
I am aware of Goldwasser-Micali cryptosystem, which is additively homomorphic over $\Bbb Z_2$. Are there other schemes that satisfy this property? Note: If one is willing to involve advanced tools like lattices one could get something stronger like FHE. I am looking for a simple cryptosystem not involving lattices or ...
I'm new to DDH. Reading this survey, I noticed that DDH is (believed to be) hard in many groups, but most of them are prime-order groups (the only one that is not is the cyclic subgroup of order $(p-1)(q-1)$ of the group of integers modulo $N = pq$). My question is about the hardness of DDH in this specific composite-...
As per How does recovering the public key from an ECDSA signature work?, it's possible to recover public keys from ECDSA signatures. Is this possible for EC-Schnorr signatures as well? I'm looking specifically at https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki as a reference on EC-Schnorr, but it seems t...
I am not trying to create my own encryption (I am just interested in the math and possibility of this form of "encryption"). I apoligize if this post does not fit in, it is my first time posting. A Caesar cipher is probably the most basic form of encryption, but what if we were to step it up? We take a password key We...
I am studying modular approach to the design and analysis of authentication and of the key exchange protocols. One of them are proposed by bellare et al. On page number 11, I do not understand the proof of theorem 3 which states that Theorem 3: Let $\lambda$ be an MT-authenticator (i.e. $\lambda$ emulates MT in...
What kinds of applications is uni-directional proxy re-encryption applicable to? I learned some applications that proxy re-encryption can be used, which are email and file sharing scenarios. All of the scenarios that I am aware do make sense when we use bidirectional proxy re encryption. When would uni-directional prox...
Let's imagine that we have some symmetrical encryption algorithm, that has only two functions: Encrypt(Data, Key) and Decrypt(Data, Key). Let's say that the algorithm is strong and quick, but we don't know how it works. Is it possible only using those two functions to create a usable asymmetrical encryption algorithm? ...
Background I need to implement this algorithm in Node.js, but after searching everywhere I can't find an implementation. Code My first approach was reviewed by a member of StackOverflow and was considered correct: https://stackoverflow.com/questions/50060262/crc-16-ibm-implementation-js-not-working However, it didn't...
I'm developping a device based on STM32L4x6. It is connected through BLE to a smartphone and it exchanges encrypted data with it. Data consists of health data of patients. Encryption is AES-GCM 256 bits and I'm using the reference implementation provided by STMicro. I have implemented a classical shared secret exchange...
(Moved from StackOverflow) In the Usage documentation for libsodium, before calling the initialization function sodium_init, they suggest you check the entropy count of the system's CSPRNG (i.e. use ioctl to query RNDGETENTCNT). That makes sense. In the example code, they check that the entropy is at least 160. What's...
In NIST FIPS 186-4 (page 90), it is said that $c$ is the output of SHA-1 on a seed that was chosen randomly. Then the parameter $b$ of the EC is chosen, according to the formula: $$b^2 \times c \equiv -27 \pmod p$$ Why choose $b$ this way? Why, as an example, couldn't $b = c$?
I'm implementing AES-256 in JavaScript with block size 128 bits and I understand every thing about AES except MixColumn transformation. So I copied this code from the internet and both MixColumn and InvMixColumn transformation works perfectly against each other but the problem is the MixColumn code is generating bytes...
Let's say I encrypt my passwords with PBKDF2 and store it somewhere. Now let's say it was stolen and the hacker, who stole it knows it was hashed with PBKDF2. Does a knowledge of number of iterations make it easier to brute force the password? Reasons?
There are some classic ZKP examples out there (the alibaba cave, the colored balls, etc. See the Wikipedia page for details) To me it looks like these protocols were invented "ad-hoc". That is, someone came up with a clever solution for that particular problem, and it's not immediately clear how it applies to other pro...
I am using RSA 2048 with SHA 256 primitive in certificate: How to verify the user certificate n + 1 with Root certificate n? why it is required to perform Certificate chain verification? How to generate a sample certificate in openssl? I have tried to generate the certificate in pem format,but i need the certificate ...
In other words, is it a bad idea to simply do this? signingkey = crypto_random_bytes(); verifykey = Ed25519.verifykey_from_signingkey(signingkey); Are there weak keys that standard libraries protect you from?
I have seen in the PKCS#11 spec that "parallel sessions" are not supported "in Cryptoki Version 2.01 and up, no token supports parallel sessions" but I can also see that a token may have multiple sessions open with the same token because ulMaxSessionCount is defined as (the) "maximum number of sessions that can be op...
In the original Keccak you would pad by adding a 1 bit proceeded by a predetermined amount of 0 bits and then another 1 bit. When Keccak was standardized to sha3 the padding was changed. It was then (unless you needed to pad by just one character) 0x06, followed by a predetermined number of 0 bytes and then 0x80. My qu...
When DES was originally developed, the NSA changed the s-boxes. For decades, people thought that their changes introduced a backdoor, but then it was discovered that their changes actually strengthened DES against differential cryptoanalysis. The NSA is well known for it's placement of backdoors into algorithms. In a w...
I feel like this question is specific enough to stand on its own. Say I have a set of clients each with a unique ID and already established pair of session keys for each client. When a client receives ciphertext from any of the clients would it be better if the messages were marked with the senders' ID so the receiver ...
Libsodium has "crypto_box_seal" which according to the documentation is used to "anonymously send messages to a recipient given its public key.", which hides the sender. But Is it possible for Eve to know/confirm the exact public key of the recipient from a message made from crypto_box/crypto_box_seal, assuming that Ev...
I have a situation where an offline app needs to be able to verify whether some data was created by a set of privileged users of the app. These privileged users will each have one private key of some sort that can be used to sign this data. Any user (privileged or not) must be able to verify that the data came from a p...
Is it possible to construct a $t$-out-of-$n$ secret sharing scheme over $\Bbb Z_2$? Shamir Secret Sharing allows for an arbitrary threshold $t$ and an arbitrary number of participants $n$, but requires the field to have at least $n$ elements. Is there a similar construction that works over $\Bbb Z_2$? Addendum One a...
I have a openpgp key with 3 subkeys: > gpg --list-keys <keyring-location> ------------------------------- pub rsa4096 2017-05-19 [SC] [expires: 2019-05-19] <key-id> uid [ultimate] <my-name> <my-email> sub rsa4096 2017-05-19 [E] [expires: 2019-05-19] sub rsa4096 2017-05-19 [S] [expires: 2019-05-19]...
In during of my study between Geometry and Cryptography I found a new model to convert any two data to each other in other word let we have two data $A$ and $B$ such that each other consist of $n$ bits. There exit a invertible transformation $T_{(A,B)}$ such that $T_{(A,B)}(A)=B$. I modeling this transformation in geom...
I am now solving the ECDL problem. I want to use [discrete_log_rho] in SageMath, but I can not use it because ORDER is not a prime number. Can I change it to a decimal number close to ORDER at my disposal? I tried to use another method, but the size of F was 100bit, so I could not use BSGS because of memory problem. If...
Reading the ECIES algorithms (and elgamal in general), the general wisdom is to use a KDF and MAC on the shared secret before using it for encryption of ciphertext. I suspect, however, this was because the encryption used was XOR (for data sizes that were smaller than the original). If you're using AES GCM with a rando...
I have an authentication service, a client and an application service. The client needs to use the application, but they have to be authenticated first. I'm trying to create a simple scheme to do this and what I've come up with is: The client contacts the authentication service, sends its metadata (e.g. license numbe...
I would like to know how I can implement several hash functions : $H_1:\{0,1\}^* \rightarrow P $ with $P \in E(\mathbb{F}_q)$ and $H_2:P \rightarrow \mathbb{Z_q}^*$ And others where the input data changes (for example $h:(P,\{0,1\}^* )\rightarrow \mathbb{Z_q}^*$) With an elliptic curve of the form $y² = x³+ax+b$ ...
SipHash 4-8 is documented by the authors as being about half the speed of SipHash 2-4 and is obviously the more conservative option. I was wondering from a security perspective how this would compare with performing SipHash 2-4 with two different keys and XOR-ing the outputs? Albeit one would need 2 128-bit keys (as op...
I am a complete novice to the field, however I made the mistake of locking my Macbook bootcamp partition with a bitlocker password which I cannot remember entirely. There isn't much irreplaceable data on the partition, but I would like to know whether there's any way to recover the password. the format was : Dictionary...
In the Socialist Millionaires protocol, Alice selcts some $x$ and Bob selects some $y$, and both parties learn whether or not $x=y$ without learning the other party's selected value. However, on a successful match, both parties do learn the other person's value -- it's the same as their own value. Does there exist a va...
So say, I want to use a prime number p for anyone that wants to communicate with me using Shamir's Three Pass Protocol. I will be maintaining my secret keypair (encryption exponent, decryption exponent) and will be expecting other parties to create their own secret keypairs according to the public prime p. Assuming we...
I think this problem is similar to private set intersection, yet distinct in a way where: Alice has an extensive Mapping of say id to name id1 -> John Doe id2 -> Jane Doe id3 -> Edgar Poe Bob has a short-list of id's say id1 (Alice knows the name of this person) id3 (Alice knows the name of this person) id4 (Alice d...
Recently I read Certificateless Public Auditing for Data Integrity in the Cloud , I have a question about the security of proposed HOMOMORPHIC AUTHENTICABLE CLS. (Sec. IV). For the Type-I Adversary, in the forgery phase, the authors said , however if $${H_1}(I{D_s}) = {({P^b})^r}$$ , which means the coin shows 0. If t...
How do we know that the number theoretic and algebraic results used in cryptography provide a perfect model for the behavior of integers as implemented in computers? Does there exist a bijection between the purely mathematical integers and the two’s complement integers, and are subsets of the two’s complement integers ...
I'm curious about the implications of cryptography and the generation of natural text (i.e using Markov chains), and I am wondering if there has been any cryptographic protocols that involved generating a document key with legible English-language words from a user-supplied password (maybe hashed, or went through some ...
In RFC, I only find such description: This addition prevents passive observers from correlating connections unless tickets are reused ticket_age_addis generated randomly and obfuscated_ticket_ageis computed by adding obfuscated_ticket_age to aging time of ticket. In my opinion, cause the PSK is sent in plaintext a...
in the context of another setting I was asked the following question. Suppose the IND-CPA game is played with a symmetric encryption function $E$ that keeps a state of how many encryptions have already been requested by the adversary $A$ during the execution of the game. $E$ always outputs $E(m)=E'(m)$, where $E'$ is a...
I read about ways to create a t-of-n threshold signature, corresponding to a collective public key of n players. (https://datatracker.ietf.org/doc/html/draft-ford-cfrg-cosi-00 and Does Ed25519 support cryptographic threshold signatures?). Is it possible to verify a t-of-n signature, by knowing only the collective publi...
How to count Gate Equivalent (GE) of Sbox used in block Cipher. For example how much area does the Sbox of Block Cipher Prince take? And How is it calculated?
I want to generate a truly random one-time pad as fast as possible, but without the use of any electrical or any other complicated device. What is the fastest way to do that?
Suppose there is a cyclic group $\mathbb{G}$ of prime order $q$ of elements in $Z^{∗}_p$ with a generator $g$ and values $a,b,c,d \in Z_q$. There is also an equation $g^{ab} = g^{cd}$, where $a,b,c$ are known, so we can compute $d$. Also we know, that $a$ and $c$ are $x$-bits and $b$ is $y$-bits (or alternatively less...
Have tried to create simplest example. A,B,C,D are 32-bit unsigned, as is k[4]. P is an expansion type p-box of 256 "random" 32-bit values. Assume key-whitening and multiple rounds/keys #define b0(u) ((u)&0xff) #define b1(u) (((u)>>8)&0xff) #define b2(u) (((u)>>16)&0xff) #define b3(u) (((u)>>24)) // rounds... A += P[b...
I'm trying to design a protocol where hashing can involve some public and private components. The idea is that Alice hashes a value with minimal computation and sends the hash to Bob. For Bob it should be exponentially harder to re-create / verify the hash against a given value with the hash he received from Alice. The...
I'm new in terms of encryption and I have to encrypt the data between two Java Spring applications, one have serves as MVC framework and other as Web Service, I'm implementing an asymmetric encryption by generating the private and public key with RSA at the beginning of the deployment cycle and saving the keys in binar...
I find myself implementing Speck in an industrial controller that only does signed math. What cryptographic ramifications would there be if the Speck algorithm was implemented using signed math?
Assuming you are dealing with a competent developer/team, and you are advising on adding security to their protocol. Also for the time being lets not worry about the key establishment and validating the other end aspects of the protocol. Would you recommend AEAD, specifically AES-GCM over AES 256 + HMAC with SHA2? I ...
I'm looking for the history of the method (ECDSA public key recovery from signature). Where did this implementation first appear in (is it bitcoin?) and who discovered this method?
I like to know from which charset a symmetric key is generated. Example: dm-crypt/LUKS The 128/256 bit (16/32 byte) key comes from /dev/urandom, and would be encoded as base64 string. So then I have an base64 encoded string (32/64 byte), which come together with an XTS key of same length, what results in an 64 byte str...
This question is a consequence of an older one about multiplying a twisted Etwards point in Montgomery space. Turns out that this is unsafe in some circumstances. The following Montgomery ladder as implemented in the ref10 implementation is unsafe: when the scalar is zero, the result of the multiplication is not the ze...
NIST specified SHA-2 hash functions with truncated output. Those hashes use different initialization values than SHA-256 or SHA-512. SHA-224 is based on SHA-256. SHA-384, SHA-512/224 and SHA-512/256 are all based on SHA-512. Although I have seen loose comments on why truncated SHA-2 functions use different initial valu...
I need to authenticate a message sent to an embedded device (which limits my options in terms of just using an existing convention). I can run ECDH/ECDSA on the device and can use SHA-256 as a hash function but pretty much anything else is beyond the resources of the device. Also I can pre-share a public key on the d...
I'm talking about the ability to safely run a virtual machine on a physical device that is not trusted. It is necessary that the owner can not access the data that the virtual machine operates on. I am interested in what theoretical or practical implementations exist without special hardware. I know about homomorphic c...
Let's suppose we are hashing a string input from the user via keyboard. A string can be interpreted in many different text encodings (ANSI, UTF-8, UTF-16 and many others). Based on what encoding is used, the underlying binary data and therefore the hashes can be completely different, even though it seems like the same ...
I consider $n$-bit RSA moduli $N$ having high-order bits starting by with $k$ bits at 1, then $k$ bits at 0, then $m-2k$ bits at $1$ for as large an $m$ as possible, with $n\in\{2048,3072,4096\}$ and $k\in\{8,16,32,64\}$. For example, with $k=32$, the hex for $N$ would be FFFFFFFF00000000FFFFFFFFFFFFFFFF... Otherwise ...
I was given the ciphertext as base64 just like that: ADknbLUTEh1NBT80tH57H7B44DZOWao67c8I8+AQwuSwnUUxiJUidAedSaOGceVjC4tVF3sfnj0b 1akQiMMXO7YPj+0MFFN09WqE0Jz36ZtY695Esp3DoErjnK8= How can I convert it to decimal?
I learned that possible $m$ long sequences produced by linear congruential random number generators(of the form $r_{i+1}\equiv ar_i+b \mod n$) fall on hyperplanes. Using this fact I have come to think it might be possible to significantly narrow down the number of possible output sequences. Sadly I found the informatio...
I've heard several people and websites talk about ciphers that have forward secrecy. I know about forward secrecy in key agreement protocols, e.g. RLWE, (EC/SI)DH, QKD, etc. This could be what they're talking about and it's a simple case of misused terminology (I've mostly heard it in articles about cipher suites), but...
Given a Merkle-Damgård hash function H, let's say SHA256, that computes a MAC as follows: H(secret_key||timestamp), so that the attacker knows the result and the timestamp. Is it possible to produce a valid MAC of H(secret_key||timestamp+1) with length-extension or other attack?
If the bit size is 128 bits, I know that BSGS is not possible due to memory issues. I know that the complexity of Pollard-rho for 128 bits is 2^64. and I know that it is not possible to do 2 ^ 64 operations on a typical computer. Is there any other way? do solve 128bit ECDLP when ord(G)=prime number
I'm a software engineer, so I generally think in building blocks. And I'm not so familiar with the Math notation in Crytography, so I'll stick with function calls and function blueprints (which I assume would be as intuitive). Lately I've been asking and reading several questions here and also some related papers on th...
So let Alice has a set of integers, says, $A = \{a_1,\dots, a_n\}$, similarly, Bob has a set of integers $B=\{b_1,\dots, b_n\}$. is there any protocol that allows Alice and Bob to randomly learn exactly one element from the intersection, $A\cap B$? I am aware of few private set intersection algorithms, but all of them ...
I read that (key, nonce) pair should be used only once for encryption of a message. My question is how confidentiality can be lost if two peers using a shared key use same (key, nonce) pair to encrypt their own messages (messages of peers would be different).
On article at => Microsoft Docs CNG Algorithm Identifiers I notice that BCRYPT_RNG_DUAL_EC_ALGORITHM is now removed since Windows 10. Beginning with Windows 10, the dual elliptic curve random number generator algorithm has been removed. Existing uses of this algorithm will continue to work; however, the random numbe...
PSK handhanke works like session ticket resumption in TLS 1.2, but I found a set of PSK binder for each identity(ticket) in TLS 1.3, why PSK binder are needed in TLS 1.3 ? To protect some attacks?
I have an assignment question regarding the TEA cipher in CFB mode. After much difficulty and research, I managed to produce an 8-bit TEA / CFB encryption algorithm. My input is supposed to be a number in string format; for example; "12345678". This is the result of the encryption However, i do not have any way to che...
The paper on the Bulletproofs Zero-Knowledge proof protocol states in paragraph 3: In Protocol 1 the element $u$ is raised to a verifier chosen power $x$ to ensure that the extracted vectors $a, b$ from Protocol 2 satisfy $\langle a, b\rangle =c$. I can't make sense of this. I guess it is because the scalar $u$ is no...
I've been playing with some homomorphic encryption libraries. It's given me a greater appreciation for probabilistic encryption. These two answers were instrumental in leading to this question, but don't contain an answer for this question by themselves: If a probabilistic encryption algorithm is used, how does decry...
I'm trying to come up with a small-sized (non-interactive) proof for a Diffie-Hellman-like statement. I'll start by giving an example. The prover has $g^a, g^b, g^c, g^{ac}, g^{ab}, g^{bc}, g^{abc}$. The verifier only has $g^a, g^b$ and $g^c$. Nobody (not even the prover) knows the exponents $a,b,c, ab, ac, bc, abc$. T...
The Commutative Cipher Setup Alice and Bob agree on a 2048-bit safe-prime $p$, where $(p-1)/2$ is also a prime. Both parties have an encryption exponent $e$ in the range $(1, p-1)$ with $gcd(e, p-1) = 1$. And a decryption exponent $d$ chosen such that $d * e ≡ 1\bmod (p-1)$. Alice has $(e_A, d_A)$ and Bob has $(e_B, d...
TL;DR: Does anyone have a reference to a study, implementation of different algorithms or otherwise "truth" about which solution - a set of coordinate systems and algorithms that enables the fastest known Point multiplication for e.g. X25519 (Curve25519) (Montgomery curve) and secp256k1 (Not Montgomery)? I am writing a...
I'm curious if it's safe to use sha1 for an HMAC in 2018 in a platform product. A popular vendor (Twilio) uses an HMAC with sha1 with a shared secret to validate that messages they send are indeed sent by them (see the Twilio docs on validating messages).. In a recent audit, the use of sha1 was flagged as a potential p...
By program integrity, I mean the (encrypted) result I receive is indeed the expected result and not, say, an intermediate result or a result affected by an adversary. Can homomorphic encryption defend against active attacks? By program obfuscation, I mean the adversary not being able to infer what operations are perfor...
I am using AES ECB mode to encrypt and decrypt 128 random data. I have read on drawbacks on using ECB but it seems that it is feasible to use it for random data. However my concern is that my implementation provides an oracle. What i am concerned is key extraction. Would it be possible in reasonable time or possible at...
I have parameters of an elliptic curve s.t $p=2n+1$ , when $n$ = order of elliptic curve over finite field of order prime p. If I want to forge any message for such ECDSA, What can I do? Maybe the condition $p=2n+1$ will be helpful, but I have no idea for this.
I know that an interactive proof system $(P,V)$ is a pair of interactive machines for a language $L$ if $V$ is polynomial-time and the following two conditions hold: 1) Completeness: For every $x \in L$, $$\Pr [\langle P,V \rangle (x) = 1] \geq \frac{2}{3}$$ 2) Soundness: For every $x \not\in L$ and every interactive m...
I am trying to understand how zkSNARKs work. Going through this article by Vitalik, in the section on 'Checking the QAP' he says " If the resulting polynomial, evaluated at every x coordinate that we used above to represent a logic gate, is equal to zero, then that means that all of the checks pass;" - Can somebody hel...
Can someone please point me to a book or paper that describes the Tortoise and Hare algorithm by Floyd? I know there are ample websites out there, but for reference purposes, I need a book or paper to point to.
According to this report : http://www.ecrypt.eu.org/csa/documents/D5.4-FinalAlgKeySizeProt.pdf SHA2-512, SHA3-512, Whirlpool and Blake2b are hash functions that could be safe for the next 50 years. For a system that will never receive security updates, to hash passwords, what of these 4 functions should I use for maxim...
My application is .NET based. I have signed xml from third-party environment (Java based). Its signature value base64 string contains carriage return #xd;. <SignatureValue>rNNNqGYd4sEuEyOle0sCHHBv4UVrzBcntgxSuzqm7NrRHpD8qxPu1GpxBtcUKr3bJ0YME2J9SgFA&#xd;wsfp/Vd+0g== According to Canonical XML Version 1.1: Line break...
I'm a little confused as to what constitutes a single AES round. Most sources say it's this: t0=Te0[s0>>24]^Te1[(s1>>16)&0xff]^Te2[(s2>>8)&0xff]^Te3[s3&0xff]^rk[4]; t1=Te0[s1>>24]^Te1[(s2>>16)&0xff]^Te2[(s3>>8)&0xff]^Te3[s0&0xff]^rk[5]; t2=Te0[s2>>24]^Te1[(s3>>16)&0xff]^Te2[(s0>>8)&0xff]^Te3[s1&0xff]^rk[6]; t3=Te0[s3>...
I would like to know if I am understanding this correctly. Zero-knowledge proofs need a prover, verifier and witness. So if we have a blockchain where person A pays person B 100 dollars. In blockchain, is person A the prover? It proves to the other nodes (the verifiers) that person A has 100 dollars. A witness applies ...
$M$ (not public) is hashed with a hash function $\text{H}$ that includes a variable $T_1$ (public), giving $C_1$ (public). The same $M$ (not public) is hashed with the same hash function with another variable $T_2$ (public), giving $C_2$ (public). Knowing the variables, $C_2$ can be verified to be from the same data as...
Is there a hash function h(M + t1) = c1 that relates to h(M + t2) = c2 in a way that, knowing t1, t2, c1, c2, and with no knowledge of M, it can be verified whether both use the same M?
How can I calculate the minimum number of active s_boxes for block cipher algorithms such as present algorithm? I have read in that, but I couldn't understand the meaning of branch number.
I'm no crypto expert but I'm trying to figure out if this is possible: I'm building an application that has access to very sensitive user data. I receive this data in plain text but I'm not allowed to persist it in this state. When I receive data for user X, I must immediately encrypt the data using the key of user X...
This image is taken from Algorithm 1 from "Σoφoς – Forward Secure Searchable Encryption, CCS '16". On line 4 there seems to be a new variable, M, that is never defined throughout the rest of the paper. Should I attain a random byte[] and set that as the value of ST_0? This is being implemented on a Java programme.
I really want to learn how to calculate the number of active s _boxes for block cipher cryptographic algorithms. I want to do that manually after running each round of an algorithm such as LED algorithm, what should I notice or compare in order to calculate the number of active s_boxes ? I read that definition ".You ru...
Let's say the system has a hardware randomness generator, generating random numbers using a proven truly random process. The distribution of the numbers though, is unknown. Assume the randomness source generates data blocks $P_1$, $P_2$, ..., $P_n$. There is an one-way function $f(x)$. The output data blocks are $Q_1$,...
I have a read-only public bulletin board that It contains a series of information to form: $$[(a_1,g^{a'_1 \cdot m}), (a_2,g^{a'_2 \cdot m}), \cdots ,(a_n,g^{a'_n \cdot m})] \ ,$$ where $a_i\in\{0,1\}^n$ and $a'_i, m \in \mathbb{F}^*_q$ ($a'_i$ is output a PRF on input $a_i$). I want to produce tags that are not forgea...
How do I calculate the correlation immunity of the standard AES Sbox. All material ive read gives out calculation of correlation immunity of boolean functions with single bit outputs. How can it be translated to the 8bit AES Sbox.
File sharing systems sometimes use the likes of a Tiger Tree Hash to check the integrity of a file as it is downloaded. Hash trees in general are useful to check integrity of the tree leaves without downloading the full tree, instead needing only the root and tree branch that contains the interesting leaf (plus necess...