instruction
stringlengths
32
27.2k
I do not understand the multiplication technique using triples and secret shares of the inputs. Could somebody explain me where I'm wrong? It works like this: The inputs are secret shared in XOR shares. Alice holds $[x]_a$ and $[y]_a$ and a share of a multiplication triple $[a]_a,[b]_a,[c]_a$ s.t. $a \cdot b = c$. Bob ...
i'm trying to understand how the keys are shared on the 10Gbit passive optical network, and i've found that the keys are generated by ONUs or OLT and after shared with AES-ECB with KEK. What is it this Key Encryption Key, and how is used with AES to share keys? Thank You
I am reading about mono-alphabetic ciphers, which are prone to letter frequency analysis. To counter this, we can provide multiple substitutions, known has homophones for a single letter e.g. e could be assigned 17, 74, 35, 21. Each homophone could be assigned in rotation or randomly. This is where I am confused: Even...
First of all, I know that this all it's very complicated, I know that CPUs are complex beasts, and may not work at their full potential all the time, they can have more than one core, and the calculations may very well be reordered, optimized, or vectorized, there are different cryptographic libraries, etc. However, I ...
I know how Feistel Network works, but I want to know the exact definition of "Feistel Cipher" to solve several questions below: question 1: Is it correct to say DES (Data Encryption Standard) is Feistel Cipher? Opinion: I think the statement "DES uses Feistel Network" is correct. Also, since the encryption and decryp...
Assume Alice and Bob share a well-known function $f(x)$. Bob asserts that he has a $y$ such that $f(y) = true$. Bob's $y$ is secret, but he is willing to share a hash of it. Alice wants to purchase $y$ from Bob, but only if she can be assured that $f(y) = true$ before the purchase happens. I've studied Zero-Knowledge P...
Instead of the input bit being flipped... if the 1st bit of the key is being flipped, which s-boxes are affected during encryption/decryption of DES?
If I was given an encrypted .key file (no further information about the key), called "abcd.key.enc," how would I start characterizing and identifying information about the key, its encryption/ cipher used, etc...? My ultimate goal is to decrypt the key, but I can't find any trivial ways to determine anything about the...
I am new to the forum, so forgive me if this question is out of place or lacks adequate detail. I am working on a project that involves allowing discreet clients to upload content to a central host. The host is expected to verify ownership and data integrity by testing the signature of the content against a user's supp...
I need a way to protect my data. More then encryption I need a way to guarantee integrity and authenticity but I also need to be the only one that can understand integrity and authenticity. I found HMAC to be a good way for integrity and authenticity but it is based on a single key that I should share within my softwa...
How does CFB (Cipher feedback mode) self correction work? And if the initialization vector (IV) is corrupted during transmission, how will it affect encryption or decryption?
What's the difference between encrypting a file and packing it? Can I encrypt a file that is already packed? Can I pack a file that is already encrypted, or does packing already do both? If I pack a .exe file will it be considered as encrypted?
The Fortuna PRNG uses AES-256 for generating output blocks by encrypting a counter value $C$ in CTR mode using a 256-bit key $K$. For the analysis, it seems the block size of 128 is the limiting factor, as the argument goes that by the birthday bound we expect a block collision after $2^{64}$ encrypted blocks, but CTR ...
I am trying to use mbedTLS on a STM32-Nucleo microcontroller (STM32F746). The TLS library wants a RNG function (naturaly), the STM32 has a hardware RNG verified according to NIST SP 800-22. The hardware RNG only outputs unsigned 32 bit integers each call, but several calls could provide 28, 32 and 255 byte random arra...
I was wondering whether you know can point me to some general (basic) principles/guidelines one should follow for generating cryptographic keys? I have looked at NIST 800-133, but was hoping for some principles a bit more general and less technical. Specifically I’m thinking of asymmetric key pair for use of RSA and sy...
Currently in college I'm learning about DES, and everywhere I look the table S-boxes are represented as follows: S1 x0000x x0001x x0010x x0011x x0100x x0101x x0110x x0111x x1000x x1001x x1010x x1011x x1100x x1101x x1110x x1111x 0yyyy0 14 4 13 1 2 15 11 8 3 10 6 12 5 9 0 7 0yyyy...
I need to encrypt some packets on a constrained hardware. I was enthusiast about the NaCl suit, since Chacha/Salsa20 is a nice and fast symmetric cipher algorithm when no AES-NI instructions is available. But I discovered that poly1305 (the authentication layer) is based on AES! Why? If I plan to use cryptobox it's bec...
Let's say, Alice uses AES256-CBC to encrypt some data. The key for encryption is derived using PBKDF2, where password is some passphrase Alice and Bob agreed on (using DH) and salt is random generated (using /dev/urandom for now)*. The IV for the CBC is generated the same way as the salt. Now Bob receives the cipher an...
I dont understand this question at all what is it trying to tell me: The meet-in-the-middle attack means that two successive encryptions using two different k bit keys do not give the security against a brute-force attack that you would expect from a 2k bit key. Blockquote (a) Consider the situation when usin...
I've used openssl dhparams to generate 512-bit DH parameters for a test. The resulting file is: -----BEGIN DH PARAMETERS----- MEYCQQDgkQsR2SuYabxysYaxk2oB2Us+YKNbEBQCdhBzMZ/5fb1s80PBDsch5gRD A5TLoOG/XOc9hr6MXhNu2A6/WzZ7AgEC -----END DH PARAMETERS----- Vs-MacBook:LRS v$ openssl asn1parse -in dh512.pem 0:d=0 hl=2 l=...
In the meet-in-the-middle attack, if we built the tables first and then looked for matches, we would have another high complexity problem. For each of the table 1 entries, compare with all the table 2 entries; this algorithm has complexity of O(2^2k). How the matching could be done while building the tables, resulting ...
Cryptography process includes encryption and decryption process. In public key cryptography public key of receiver is being used for encryption. I want to know how public key of receiver is sent to sender?
I'm building a low power wireless network and need to transmit very small packets at regular intervals (10 bytes every minute or so). In order to secure the communications I'm considering using Chacha20 and a pre-shared key. The problem I have is communicating the IV. I could just broadcast it at the start of each mes...
Does anybody know where I can find infos on cryto used in saltstack. I know it's AES but can't find info on key size (128/256/... ) and if it's possible to configure? The source code seems to reference AES 128, 1024 key size, HMAC-SHA256 and AES-CBC but as I'm not fluent with python and it's not clear to me if and how ...
Does the prime (which needs to be larger than the message) have to be chosen randomly for security, or can it just be a huge constant? Also, the Wikipedia article for SSSS states The size of each share does not exceed the size of the original data. but isn't each share comprised of both $X$ and $Y$? or is $X$ already...
When encrypting a file say with Winrar you have to enter a password. I am under the impression that this password is not stored anywhere but instead the password together with some other attributes and an IV create a hash of some sort.Is that hash stored or attached to the encrypted file ? Then when trying to decrypt t...
I‘ve been looking around and did my research but I could not find any information if any operating system exists which would be able to encrypt all data, including RAM and the SWAP partition, to protects things while the OS is up-and-running. I found infos about disk encryption, file encryption, and much more, but I s...
I wanted to test the performance of RSA encryption when the public exponent was 3 and when it was 65537. Python and M2Crypto library were used to generate keys and do encryption: key = RSA.gen_key(KEY_SIZE, 65537) key.public_encrypt(s, RSA.pkcs1_oaep_padding) where s is a 256-bit string and KEY_SIZE is 2048 bit. For ...
We need to exchange some data encrypted between a device and our software where the device does not have access to a source of randomness. Both the software and the device know the key (although they cannot access it, they can only use it for encryption using AES). We are planning to use AES in CCM or CBC (depending on...
I'm building a fuse client for ssh/sftp. I write the required ssh and sftp functions myself. Now I read in RFC4253 that before signing the data to sign is default hashed. In RFC4253 8. "Diffie-Hellman Key Exchange" SHA1 is mentioned as the default for ssh-dss. What is it for ssh-rsa?
The DH equation is: $$ K = g^{xy} \bmod p$$ Does using DHE mean even the $g$ and $p$ parameters are randomly generated (instead of being fixed)? Is this the difference?
Since ECC over P-256 provides only 128 bits of security, I'd like to cut corners and generate a private key using HKDF to generate 32 bytes of key material from an input secret that's only 16 bytes long, on the theory that it's no harder to brute-force the KDF than it is to break the key using Pollard-rho. This seems l...
Does the recent Balloon hashing paper and the included attack on Argon2 effectively negate the result of the Password Hashing Competition? On one hand it seems that only a constant-factor improvement has been achieved, which is rarely critical in cryptography. On the other hand, the entire point of password hashing is ...
I have a question regarding what parameters should be used when generating HMAC-SHA1-128. I have fairly limited knowledge in this field. HMAC parameters: H = Hash = SHA1 K = Key size = 128 bits (16 bytes) B = Data block byte length = 64 bytes L = Output size of SHA-1 Hash = 160 bits (20 bytes) Ipad = inner padding = 0...
I have been looking into the CAESAR submissions as I'm interested in a cipher that can process a stream of unknown or large size (E.g. socket, file) while providing authentication. My understanding is that the current standard approach is for the application to slice the data into blocks and use some well-known AEAD mo...
I know that the message space is the set of all possible messages, but I'm not sure how to generally define it, rather than for a specific cipher. For example, I've seen $$\{\forall c \in A\}$$, where "$A$" is the set of characters being used. But I think there should be a superscript at the end to denote the length. W...
I was reading a paper entitled : "Mathematical Underpinnings of Asymmetric Cryptography". I came across this If $N$ is the product of two large prime numbers $p$ and $q$, say 300 digits each, and $e$ is just coprime with $(p-1)(q-1)$ so it can be a relatively smaller number, my problem is that if I am to raise a certa...
I'm new to cryptography and found this statement in a book, which says that when having a message block of $64$ bits and using a key of $56$ bits, we will get $\frac{2^{112}}{2^{64}}=2^{48}$ candidate keys if we encrypt a given plaintext and decrypt the corresponding ciphertext (in double DES). So, assuming that using ...
The Stellar cryptocurrency whitepaper lists "asymptotic security" as a key advantage over other consensus protocols (for example, proof-of-work in Bitcoin). What do they mean by this? As I understood it, it refers to guaranteed safety, as in: results valid and identical at all nodes. However, this can't be guaranteed f...
I have seen all of the following notations used to denote the encryption of a message $m$ with the key $k$ to produce the ciphertext $c$: $c = E(k,m)$ $c \leftarrow E(k,m)$ $c := E(k,m)$ Is there any difference between them?
In certificateless identity-based cryptography, selecting secret value $$x_i \in Z_p$$ and declaring public key of individual users such as $$Pub_i=g^{x_i}$$ $g$ is public parameter. I think there will be some kind of collision in selecting secret value. In security proof, they make assumption that secret value cannot...
According to this, an $n$-bit key offers about $n/2$ bits of security. That got me wondering, can you compress the key in half? At first blush, no, because the key is essentially a random number, and so cannot be compressed. But let's look at the private key relative to the public key. From an information theory standp...
The normal way of using AES-CBC is to XOR the IV with the first plaintext block This way you have to pass the IV along the ciphertext. What if instead of XORing we just put a fixed size randomIV in front of the plaintext: Encrypt(randomIV + plaintext) = C1 And we don't have to send/tansmit separatly the IV since it i...
In PKCS#1 v2.1 the OAEP output is prepending with a null byte. Quoting RFC 3447, i. Concatenate a single octet with hexadecimal value 0x00, maskedSeed, and maskedDB to form an encoded message EM of length k octets as EM = 0x00 || maskedSeed || maskedDB. In PKCS#1 v2.0 (as defined in RFC 2437): ...
Is there a signing scheme relying on a secret key $s_k$ and public key $p_k$ for which we can find a one way function $h$ such that we can efficiently calculate the public key associated with $h(s_k)$ from $p_k$. For instance, with the ElGamal signing scheme, we'd be looking for a one way function $h$ such that for all...
Are there any (possibly multiserver) private information retrieval (PIR) schemes that support private reads and writes (so called PIR Writing) at the same time, while having sublinear (in the database size) communication overhead? The most recent, very efficient, PIR scheme I could find is the one based on distributed ...
I think it's neat how a person can prove that two discrete logarithms are equal without actually revealing the value. So, conversely, is there a way for me to prove that two discrete logarithms are not equal without revealing either logarithm's value? Assume that I know (by construction or by oracle) the discrete loga...
Suppose we have the following El Gamal digital signature scheme variant: We fix a prime number $p$ and a generator $g$ of the group $Z_p^*$. We choose $x \in Z_{p-1}^*$, which is going to be our secret key and we compute $y = g^x \pmod{p}$, which is going to be our public key. For the signing algorithm, we choose a ran...
I know there are 4 known weak keys, their value and that double encryption using one of the weak keys should give back the plain text. I implemented this in OpenSSL. I have a plain text $m$ in a file plain.txt and compute $y = DES_k(m)$ where $k$ is a weak key. Then I compute $y' = DES_k(y)$. Instead of getting $m$ I g...
In this video, it is shown how encryption can be theoretically intercepted without the client noticing it. In short something in between the connection could make a handshake with the requested server and mimic a cert authority and create a secure connection with the client. Could this work in the real world breaking i...
According to the Wiki article, a MAC is a triple of probabilistic polynomial time algorithms $(G, S, V)$ such that: G gives the key k on input 1^n, where n is the security parameter S outputs a tag on the key k and the input string x V outputs 'accepted' or 'rejected' on inputs: the key k, the string x and the tag t. ...
Let $q$ be a given random prime of $2b$-bit for some security parameter $b$ (say $b=128$); let $p$ be a given much larger random prime with $p=q\cdot r+1$. Let $(G,*)$ be the (Schnorr) subgroup of $\mathbb Z_p^*$ with $x\in G\iff x^q\equiv1\pmod p$. Assume $p$ is large enough that the Discrete Logarithm Problem is comp...
I am reading through the salsa family paper and on the second page DJB says this -- One can reasonably conjecture, for example, that every function that encrypts data in 0.5 Core-2 cycles/byte is breakable. Why is this so obvious/easily conjectured? Also, does 0.5 Core-2 cycles/byte mean that the algorithm take 2 cycl...
I'm developing an algorithm that takes in a vigenere cipher and produces the key length automatically. However, I'm having trouble understanding how to detect the key length when there are multiple large index of coincidences. For example, given this cipher: vptnvffuntshtarptymjwzirappljmhhqvsubwlzzygvtyitarptyiougxiuy...
While trying to convert private key into public key i get this error message. I used "openssl genrsa -des3 -out private.key 4096" to generate the private key and used "openssl -in private.key -pubout -out public.key" to generate the public key. what went wrong,why do I get this error
Can somebody explain how Salts should be stored in the database? How is the process of using Salt? I've read in a book that the Salt should be stored next to the hash table database. But what happens if the attacker steals both hash table and Salt value? How many Salt value should we use?
Using the format of the "game" to establish if a cipher is IND-CPA secure: The adversary submits two distinct $M_0$, $M_1$ plain-texts to the challenger. The challenger selects one of them at random and encrypts it with the symmetric key and gives cipher-text C. The adversary has to guess which message was encrypted b...
I read the WhatsApp Security Whitepaper and I want to know how a user A, which uses ECDH (Elliptic Curve Diffie-Hellman) to compute a master_secret, can be sure that the public keys for the recipient B used in the exchange belong to B and they have not been replaced by someone else. A uses B (public) Identity Key, Sign...
This is part of an assignment and I'm not sure what conclusion I'm supposed to draw from the result. We were supposed to generate two 1024 bytes words, one using an algorithm that randomly generate 0 and 1 (50%/50%) and one using an algorithm with a "secret" probability distribution. I'll call them word 1 and word 2 fr...
I have recently been reading about encryption and the importance of prime numbers and I have some questions that I would really appreciate some answers to, if possible: Is it correct that when creating encryption keys you take one large prime number, and then multiply it by another prime number to leave you with an ev...
What are "reduced variants" of stream ciphers and how do they relate to lightweight cryptography? How do their internal states compare to those of non-reduced variants? Security aspects?
Which arbitrarily long string will have the greatest entropy? A string constitued of random letters, with each letter having a probability of being picked equal to its frequency of apparition in the english language. A text written in english. Let's assume there's only 27 different symbols (letters+space), and each ...
I have a message $m$ that I wish to send as a blinded message for approval (a signature) to then unbind and use as authority. Should I preform the procedure like so: pad $m$ using EMSA-PSS (encrypting it) then blind the now padded $m$ using RSA blinding then have the signer sign using RSASSA-PSS and then send it back ...
Consider a system with producers (P), consumers (C) and a server (S) with two TCP ports open where a consumer connects on one port and a producer on the other. The server is just a TCP relay which enable NAT traversal. Connection (1) P --> S, C --> S Session matching (2) P <--> S <--> C Server acting as relay (3) P --...
I'm saving a log file in with each line corresponds to a log entry. For integrity reason I'm adding at the end of each line a SHA256 hash of the previous line. What is the best separator to use string to separate the log entry from the hash?
The RSA algorithm can be used to generate a permutation. Given two prime numbers $p$ and $q$, the key length is $n=pq$. If $a$ is the private key, then $b$ is the public key, where $ab \equiv 1 \pmod {\phi(n)}$. We define a permutation $\pi : \mathbb Z/n\mathbb Z \to \mathbb Z/n\mathbb Z$, given by $\pi(k) = k^b \pmod ...
I've been at this for a while. I've been given two things Ciphertext = bsaspp kkuosp Key = rsidpy dkawoa Now seeing the domain that the characters are in. I naturally assumed an affine cipher and proceeded to decrypt it yet I yield gibberish as the plain text. My steps are as following. Translate the letters to...
How is it possible to do an exhaustive key search (DES algorithm) and only search for 2^55 instead of 2^56 keys ? This is a slide from my course if this helps you. I don't understand it.
I am trying to understand the key high level details behind verifying trust when downloading an archive. This is my understanding of how it could be done: On the Software Developer side: Obtain a certificate from a public CA like verisign Generate a hash of your archive and then encrypt this string using the private ...
I have been given a 77 character message for decryption, but no matter where I look all the Columnar Transposition scripts out there are all requiring of a key. I believe the number of columns to be 7, but I am looking for a code that output all permutations of those 7 columns so that I can use a dictionary attack to f...
i wanna ask anyone that know is there any tool or software to hide text in text it self, that we usually call it as text steganography?
I'm analyzing a protocol that, during one of the steps, sends a blinded secret. Let's denote the secret $x \in \mathbb Z_p^*$ (for $p$ prime) and the blinded secret $y$, so that $y = r\cdot x \bmod p$, where $r$ is a blinding factor randomly sampled from $\mathbb Z_p^*$. We can assume that the blinding factors won't re...
I want to calculate the S-box for AES. But I have a problem with the multiplicative inverse step. For example, the inverse of 95 is 8A. I don't know how to get this result. How is the multiplicative inverse computed?
Imagine the following scenario: Select known data (known to several parties) Mix data with secret key and generate SHA-1 hash Mix SHA-1 hash with secret key and generate HMAC The purpose is to verify the integrity of the data - to ensure that data has not been altered after the generation of the HMAC. My question is:...
Me and one of my friends are working on AES algorithm. We have understood how multiplicative inverse table is generated. Rijndael AES algorithm shows us how S-Box is generated through the affine transformation process. In the original algorithm they have multiply each byte of the state with an constant matrix and then ...
For a search algorithm, what are the differences between using searchable encryption (SE) and using homomorphic encryption (HE) ? What are the advantages or disadvantages of using one of the above over the other if the requirement is a method for "searching"? Does this only depend on the particular scheme/algorithm ch...
Question 1: In which Somewhat Homomorphic Encryption schemes the plaintext space is defined over $\mathbb{F}_p$, where $p$ is a prime number. It is said, in Somewhat homomorphic encryption the noise increases when homomorphic multiplication is used. Question 2: Does this include multiplying a ciphertext by a plaintex...
I'm actually new to cryptography and a friend of mine requested that I should read the Katz and Lindell book – “introduction to modern cryptography”. As I read the book I found it very interesting but I'm finding some problems answering a few questions from the book,(for someone new like me I managed to to answer secti...
I'll have to give a spoken presentation on cryptography and I don't want to make any pronunciation mistakes. Therefore I'm asking how I should pronounce acronyms like RSA, AES, SHA-1, SHA-256, IGE and CBC, Curve25519, ECDH, MAC, HMAC, etc., both in English and in other languages. (The presentation is in Italian, so I'd...
My friend asked once a question which sounds very interesting: If a function does not have inverse, does it mean that the message cannot be deciphered ? What is the answer to this question ? In my opinion it is a definitely yes
I have two parties that want to communicate with each other based on a shared password. The protocol is using PBKDF2 (with HMAC-SHA256) to create a shared key on both sides (due to restrictions on the channel, ECDH is not possible). In order to run PBKDF2, they need to exchange a short message, the salt. The salt shoul...
I'm working on a firmware for a platform with limited resources with C as programming language. There are a set of cryptographic primitives to be implemented, including AES, GCM/GMAC, ECDSA, ECDH. Our hardware allows to handle all these algorithms (it is more or less a crypto controller) and all the mentioned things be...
I'm studying Elliptic Cruve Cryptograhpy. When I do a search on Google of ECC, I find some pdf where I see these curve's paramters: $q, h, r, exp1, exp2$. What are these parameters ? Are there tables (or a site) of these paramters ? I'm finding a corrispondence's table of (Curve, Paramters). EDIT: Pairing Cryptography ...
Consider the naive hash function: HASH = INPUT % 4. This function is periodic in the sense that if we call it with sequential numbers 0, 1, 2, 3, 4, 5, ... the produced hashed sequence will have periodicity of four: 0, 1, 2, 3, 0, 1, 2, 3, 0, .... My question is whether modern cryptographic hash functions, such as SHA2...
How can the identity $\textbf{Pr}[\textbf{y}=y|\textbf{x}=x] = \sum_{\lbrace K:x=d_K(y)\rbrace}\textbf{Pr}[\textbf{K}=K]$ be verified to hold for any cryptosystem? In his book Cryptography, Theory and Practice (3rd edition), Stinson states the equality for $\textbf{Pr}[\textbf{x}=x|\textbf{y}=y]$, which can be seen i...
I've been trying to implement Pollard's Rho recently. The original idea was to implement the code in several languages and put it up for everyone to see for educational purposes. I first took to Wikipedia and implemented the code from Pollard's rho algorithm for logarithms. I translated the code directly from C++ to Ha...
Instead of generating keys, is it possible to type your own? For example, could all the characters be A's for example sake. Or do they have to be generated because they are based off of prime numbers or because it would be to hard to create a matching public key as well?
The problem I need to encrypt sensitive client information in my site and make sure that even in the worst case scenario that the site gets hacked the information cannot be retrieved. (I guess is similar to the credit cards situation) What I see around I found many discussions regarding how to secure the credit card in...
I am preparing for an exam which include cryptography challenges. I got five months to study. But I don't know from where I should start to study cryptography. Please help me. If possible, please describe website names and book titles which are suitable for beginners.
Suppose $$X=mnrP , Y=\frac{1}{n}Q, R=e(P,Q)^m$$ $X,Y,P,Q$ are randomly chosen from $G_1$.And only $X,Y$ is given in public. $m,n,r$ are randomly chosen from $Z_q$. Anybody who knows $(1/r)$ can easily get $R=e(X,Y)^{\frac{1}{r}}$. Can I use computational diffie hellman problem by assuming $$X=g^x, Y=g^y$$, then findin...
It is know that elements from $[1..N-1]$, where $N$ is RSA modulus can have different orders. So some of the elements can have very small order generating subgroup of only few elements. Now, if the adversary for a message chooses $m$ that has small order, the adversary does not have to know the private exponent $d$ to ...
I'm solving a theoretical problem with two entities, each having one secret number. They need to find out whether these number equal without disclosing their number when they differ. Easy solution is to encrypt/hash both numbers and compare these encrypted messages/hashes. In this case, it is still, in theory, possible...
I'm searching for the authenticated encryption algorithm that produces/requires the least overhead in total. This includes the authentication tag that it produces and the additional input that has to be sent along the message for a secure use of the algorithm in a communication protocol. Let's take for instance GCM: It...
I want to know which one Fully homomorphic encryption schemes are the best in terms of time to encrypt & decrypt or compare between them ?(Preferred valid link)
TLS uses an explicit (secret) 32-bit nonce in combination with the 64-bit sequence number to create the IV for AES-GCM and the nonce for AES-CCM. However, I wonder why TLS needs the explicit nonce. In general, the sequence number is used to prevent the reuse of the IV in AES-GCM, or nonce in AES-CCM. The sequence numbe...
I read that the same key should not be used for both certificate signing and encryption. I wonder if this is not a problem with PKI/TLS/SSL, the reason being asymmetric encryption is used to transmit the public key (via the certificate). The public key is used to encrypt a browser generated session key. The session k...
I would like to use AES-CCM with a very small Authentication Tag length of 32 bits. Thus, I have a question about the vulnerability to birthday attacks. How vulnerable is CCM to birthday attacks? Jonsson explains that the adversary does not gain more than neg­ligibly from making multiple forgery attempts if the tag len...
I'd like two PRNGs with the following properties: Each produces a stream of cryptographically secure pseudo-random numbers. Each has an index that would start at 0 and increase by 1 for every random bit produced by the device. If, at any given time, the indices of the two devices are the same, then the next random bit ...
Assuming that: SHA-256 and SHA-512 are random and irreversible the output appended to some random and long enough secret is just as random as any other data and will produce values that are just as hard to guess Then one can conclude that a cipher can be constructed using those hash functions in the following manner:...
I actually have no idea how RSA works, but I currently (think that I) know Public and private keys are mathematically doing their opposites Therefore, the order in which they are applied doesn't matter The system is cyclic and applying one key repeated times will eventually lead to the starting number Hoping I am OK ...