instruction
stringlengths
32
27.2k
Let's say I want to build a public repository of encrypted files. EncA(FileA) EncB(FileB) EncC(FileC) And I have users with Public/Private key pairs. PubX/PrivX PubY/PrivY PubZ/PrivZ Now I want to give individual users permanent access to individual files by handing them some special MagicKey that is only for them....
Hashing a single message say $H(M)$ is vulnerable to a birthday attack. But what if a combination is hashed, such has $H(M,R)$? Is it still vulnerable to the attack? I think it is because $M, R$ can be assumed to be as $X$, so in essence $H(X)$ is being hashed and the birthday attack possibility still exists. Is this l...
The Wikipedia article offers little insight. To quote the page: the decision to keep them secret is in keeping with a layered security posture How should we (the cryptographic community) interpret the NSA's decision to keep their best ciphers private? It seems that if obfuscation works, then Kerckhoffs's principle ...
Is the definition $\Pr[\operatorname{PrivK}_{\mathcal A,\Pi}^{eav}(n) = 1] \leq \frac{1}{2} + negl(n)$ still valid in case we have an encryption scheme $\pi (Gen,Enc,Dec)$ with arbitrary length, and the adversary $\mathcal A$ is not outputting equal length messages?
Reading through the WhatsApp protocol (PDF), I am trying to understand why the multiple hashing and other stuff done is required. According to the paper, one can compare the hash of the key material on both ends. The hash (60 bytes) is computed like this: The 60-digit number is computed by concatenating the two 30-dig...
I am trying to understand RSA digital signature algorithm. I am planning to follow these steps: Sign algorithm: Take some message $m$ Create digital signature using my private key $[d,n]$: $s = S_a(m) = m^d \bmod n$ Pass my message and signature $[m,s]$ Verification algorithm: Accept $[m,s]$ Take public key $[e,n]$ ...
Informally, the Avalanche effect says that two similar, but not identical, inputs should produce radically different outputs when fed through a hash function. I've seen, at least, two formal definitions of the effect. The first is that if we flip one bit of an input, the two respective outcomes should typically be very...
In order to complicate rainbow table attacks, salt must be provided as input to PBKDF2 when a key is derived from a low-entropy password. I have decided on my algorithms and key lengths to achieve certain bit strength. How long salt should I use for PBKDF2?
What would be a Message-Recovery variant of the Ed25519 signature scheme? Ed25519-MR should be simple to use, fast, with a strong security argument, and striving to stay out of the patent minefield, as the original does. [Ed25519] is a signature scheme with appendix: it adds a signature of 512 bits to the message that ...
In Ring-LWE polynomials are chosen from the ring $R_q=\mathbb{Z}_q[x]/(x^n+1)$, where $n$ is a power of two. As far as I understand, to create a ring the polynomial $x^n+1$ has to be irreducible (see the page 2, second paragraph, of this paper). But if we select $q=1\pmod{2n}$ (as done in many cases for efficient NTT m...
PKCS#8 provides two encryption schemes (PBES1 and PBES2) and one message authentication scheme (PBMAC1). It seems like a combined method (eg. authenticated encryption) would be ideal but whatever. Anyway, my question is... are there any tools in the wild that can create a PBMAC1 PKCS#8 encoded private key? The man pag...
I'm working on a crypto library to be used in a firmware product. Beside other things we need key agreement based on Diffie Hellman. Since resources are very limited we use a crypto accelerator on the MCU for which a low level library exists, allowing beside other things to make elementary calculations on elliptic curv...
Quality of RNGs is an important issue. As a very basic question I would like to understand, how "poor" entropy of a RNG can help an attacker to find out the whole secret. In my naive view, even is a RNG (e.g. of 128 Bit) is not perfect in terms of entropy, but deviates, lets say ~0.1 % from the perfect value 128, so t...
I use the OpenSSL library for Blowfish encryption in ecb mode. The message are encrypted, but with the wrong padding, because of it I have a problems with decryption. What am I doing wrong? I checked with: http://sladex.org/blowfish.js/ and java. It should be: Kl9SMj1A42I48uWYTeBuD9rERDGhuvbbp07+4QwPhtk= I get it: Kl9S...
I think Shamir's no key protocol (also known as three-pass protocol) is a secure cryptography scheme but the designer only proposed the XOR function to encrypt the message which could be easily broken when the eavesdropper has all the encrypted messages: all the eavesdropper has to do is to XOR them and there he has th...
I have both Yarrow and Fortuna implemented as number generators. I ran 100 complete DieHarder (entropy tester) tests for each implementation using the same entropy source. The results were surprising: Fortuna doesn't perform as well as Yarrow. The results show marginally worse results when generating with Fortuna. Is ...
I have a question in mind. Suppose we have a collision-resistant unkeyed-hash function $H(·)$ which outputs a 128-bit digest, and a semantic secure symmetric encryption $E(·,·)$ in the following way, we can design a Message Authentication Code (MAC) in this manner, so given a message $m$ and the secret key $k$, the mac...
I can build black box ciphers with the following properties: Satisfies SAC, but is trivially weak (a keystream from an LFSR seeded with the key). Does not satisfy SAC, but built from secure primitives (Base64 encode the output of AES). From 1 you can see that SAC is not sufficient for security. From 2 you can see tha...
For Confidential Transactions a Pedersen commitment is being used. The commitment preserves addition and the commutative property applies: $$C(\text{BF}_1, \text{data}_1) \oplus C(\text{BF}_2, \text{data}_1) = C(\text{BF}_1 + \text{BF}_2, \text{data}_1 + \text{data}_1)$$$\oplus$ doesn't denote XOR here but more general...
For a class assignment we had to encrypt a message of at least 140 characters using only one of the classical cryptographic techniques. For extra credit we can decrypt someone else's message. I figure that the first step is finding out which method they used and go from there. Is there a way to accomplish this?
Today, after reading so much about ring-LWE key exchange, I decided to implement it in java to see if it works. Not a real world implementation, just to see if math works out. My assumption was that writing a code would be simple given some sort of Polynomial ring. My assumption turned out to be wrong. I searched inter...
What is the best practice on choosing how many key derivation function (KDF) rounds/iterations when generating an SSH key pair with ssh-keygen? Am I correct in saying that it is unnecessary if the passphrase is strong enough? Is there some kind of formula for how long it would take to crack a private key given the pas...
My understanding of the encryption attack on a padding oracle is that the attacker has a set of $P_i$'s and $\operatorname{Dec}(C_i)$'s I understand that by back calculating the attacker can find out $C_{i-1}$'s because we have $$P_i = \operatorname{Dec}(C_i) \oplus C_{i-1}$$ This way the attacker can find all the $C_{...
I assume nowadays crypto algorithms are well-built, so one can't make a difference between a ciphertext and random bit stream. This way the method used for encryption can't be figured out either. I am curious, if there is perhaps something else that can be derived from a ciphertext, some meta data for example.
I ask myself some questions about the compression function of SHA-2 (and SHA-1) hash function. Are these compression functions based on a block cipher? I've not found this information on Wiki... So, I think that these compression functions have been designed from scratch, without relying on a block cipher. What about t...
If I have a TLS authentication process between two entities A and B, like the one outlined below, what would happen to it, if I remove the client's (A) certificate from it? In this case, the certificate of the client is defined as {A,pk(A)}inv(pk(s)). A->B: A,NA,Sid,PA B->A: NB,Sid,PB, {B,pk(B)}inv(pk(s)) A->B: {A,p...
I'm searching for a cipher suite for my HTTPS website, running on the Apache 2 web server, that would offer a good compromise between compatibility with users and security. One idea I had was to simply using the same cipher suite that Google uses, i.e.: Accepted TLSv1 256 bits ECDHE-RSA-AES256-SHA Accepted TLSv1 2...
I have users for which I use a SHA-1 hash as an API key. These are urandom feed into SHA-1 so you can assume they're fully random. There is no username sent along with the API key. I don't want to store the API keys in plaintext, if my server is compromised, but I can't use a salt because the username is the password ...
Given that, with a significant number of decimals, it may be difficult to predict elapsed execution time of a piece of code, despite having knowledge of exact hardware and software specifications; is there any algorithm which uses the elapsed execution time of the encryption algorithm itself in order to feed mathematic...
In digital signature schemes, what the security advantage of using Elliptic Curve over Integer Factorization and Discrete Logarithm schemes?
I have 2 questions regarding security issues related to initialization vectors used in AES CBC Consider that I'm using a sequence number (which increments with every encryption) as an initialization vector. Would this be a security issue? Is there some way that an attacker who knows the sequence numbers and in turn kn...
What are the positive consequences for choosing 8 S-boxes for DES vs 1 S-box for AES? I could guess side channel resistance, but I can't find anything on it.
I'm learning about cryptographic hash functions and I have some questions about SHA-2. SHA-256 uses 8 32-bit words. SHA-512 uses 8 64-bit words. Is there a specific reason why SHA-512 uses 64-bit words? Why not 16 32-bit words? And if 64-bit words have their advantages over 32-bit words. Why doesn't SHA-256 use 4 64-b...
The DES (Data Encryption Standard) takes 64 bit key as input but how is the plain text of length say n is getting converted into 64 bit binary format?
I am looking at a wireshark capture of the cipher suites sent by my browser to the server during an SSL handshake; however, almost 90% of them use CBC, with 2 or 3 having GCM. Why is CBC most used? Is there a specific property that makes CBC preferred by web communications? Also literature suggests that the non-feedba...
Is discrete logarithm assumed to be computationally hard in a non-abelian group as the subgroup of the general linear group under matrix multiplication formed by the unimodular matrices? The two assumed unimodular matrices have the form $$A=\begin{bmatrix} X & 1 \\ 1 & 0 \end{bmatrix},B=\begin{bm...
Here is the simplified problem: Alice chooses from a small set of possible values. Bob guesses which value Alice picked. Alice reveals what value she picked. Alice's choice must stay secret initially, until after Bob has made his guess. However, to make sure Alice does not cheat, her choice must be verifiable once it...
It's known that the relationship between public and private key allows data encrypted by the public key to be decrypted only by the corresponding private key. As I understand it, this means that normally there is a relation between them (regarding obtain one from the other). But I found this: It is almost impossible ...
Cryptography is not my area, so pardon me if the question is annoying. Some time ago, I implemented an Internet site, which database had a users table. To keep the password in its user table field, I used encrypted_password= sha1(md5(raw_password)); What are the pros and cons of the approach I used?
I am working with symmetric algorithms in Java with javax.crypo and Bouncy Castle libraries and I need to calculate the avalanche effect of different symmetric algorithms such as DES, 3DES, Blowfish and AES. I have read about the avalanche effect and means that when an input text is changed slightly (for example, flipp...
If I had a hash function outputting a 256 bit hash, would there be any discernible difference comparing the last 50 bits of 2 hashes versus comparing the first 50 bits? I guess what I am trying to say is can you have 2 hashes that finish with the same 50 bits yet have the first 206 bits different? (Assuming we are usi...
How can it be explained that CBC mode is not IND-CCA2 secure, in case that the IV can't be predicted by adversary. Edit: In decryption of CBC, for each block it is XORed with previous block's cipher text. So there is no need to decrypt previous block before XORing it for the next block. Now if adversary change 1 bit i...
Recently I learned of the steghide application (a command-line tool allowing the use of steganography, the art of hiding information inside other information, used in practice with JGP and WAV files primarily with gzip compression and AES encryption). Excitedly, I hid sensitive data in my desktop background, deleting t...
As far as I understood about Diffie-Hellman, it is easy for the man in the middle to easily decrypt and read the message.
There is an elliptic curve with parameters: a = 0xb3b04200486514cb8fdcf3037397558a8717c85acf19bac71ce72698a23f635 b = 0x12f55f6e7419e26d728c429a2b206a2645a7a56a31dbd5bfb66864425c8a2320 Also the prime number is: q = 0x247ce416cf31bae96a1c548ef57b012a645b8bff68d3979e26aa54fc49a2c297 How can I solve the equation 65537 *...
I am using some block Ciphers (AES and Threefish in particular) as RNG for the purpose of parallel Monte Carlo simulations. For each key, simply encrypt a sequence of counters produce a random stream more than good enough for the specific purpose. I don't. need CSPRNG. The use of these ciphers are because good performa...
I was learning about Vigenere Ciphers and its various cryptanalytic attacks. One of them was, Kasiski test and Mutual Index of Coincidence. So, I was wondering can Kasiski test and Mutual Index of Coincidence crack the Vigenere encryption of Vigenere encryption itself (keys may be different or same) i.e. plaintext encr...
I'm not fit with elliptic curves from a mathematicians point of view, so I hope, that this beginners-question is not too silly: I use a library which permits certain operations on elliptic curves over $GF(p)$. I recogniced, that all elementary operations (point doubling - $2P$, adding - $P_1+P_2$ , exponentiation with ...
Is there a system that would allow to encrypt values with one or more keys, sum the encrypted values, and reveal a key which could only decrypt the sum. Essentially would be able to show encrypted values where anyone could verify the sum by adding all of the encrypted values, then decrypting it.
The most strongest public encryption key today, is $256$ bit symmetric (e.g. AES-256) and $512$ bit hash (e.g. SHA-512). So, if there are 2048-bit hashing and 1024-bit symmetric encryption, it is theoretically unbreakable by the universe by current science. Today, the theoretically smallest length is planck length (~$1...
I implemented AES-128 in CBC mode + HMAC-SHA-256 but it seems to me that 256 bit HMAC is more than necessary. Can I truncate the output of HMAC-SHA-256 to a desired bit length? And what is the minimum required length of it to match the security level of AES-128?
I don't want the answer to this problem, I just want to understand the steps that need to be followed to solve it. Maybe an example could help. Problem We use $\mathbin\Vert$ for concatenation. Let $P_1 \mathbin\Vert P_2$ be a message that is two blocks long, and let $P'_1$ be a message that is one block long. Let $C...
The length of public-key matrix in McEliece cryptosystem is $n \times k$. Then the key size is $\frac{n \times k}{8}$ bytes. But I find that the key size is $\frac{(n-k) \times k}{8}$ bytes. why ?
What are the consequences, in terms of security, of using a padding rule at the beginning of the message? Instead of the end? For instance, in most hash functions, we are using the following padding rule: appending of a bit 1, followed by a number of 0 such that the total length is a multiple of the block length. What ...
I have an encrypt function that takes a single encryption key and encrypts data but also incorporates an HMAC. So I need to derive a second key from the encryption key to use it for HMAC. You recommend using a simple hash like sha256 or HKDF for driving the second key and why? Which one is better and why? But I am not ...
currently, I prepare for an exam about cryptanalysis. In class, we talked about linear cryptanalysis for FEAL-4. We constructed four linear equations, extended them to equations for three rounds and then applied a Brut Force search in order to find the keys of every round. My question is as follows: How can I prevent s...
Compared to a block cipher which encrypts 16 bytes at a time, stream ciphers can encrypt a byte at a time. I am curious about which applications would immensely benefit from the ability to encrypt a byte at a time. Realtime applications such as chatting or voip always have several bytes at a time to send -- which mean...
In standard secret-suffix fashion, assume we compute the PRF of some message $m$ as $MD5(x || k)$. Preneel and Van Oorschot showed in [1] that this secret-suffix method is unsatisfactory for constructing a secure MAC. (Particularly because MD5 is not collision resistant and therefore the scheme is susceptible to forger...
I'm using AES-GCM mode in my project and I have some doubts. public String encrypt(String plainText, String authenticationTag) throws GeneralSecurityException, IOException { Cipher cipher = Cipher.getInstance(ALGORITHM_MODE_PADDING); final int blockSize = cipher.getBlockSize(); SecretKey secretK...
I have not seen much about algebraic attacks against ARX ciphers. How would ARX ciphers compare in algebraic security to AES or Present or Simon?
Counter mode uses a counter that is incremented for each block. Doesnt predictability of this counter expose the scheme to attack? I mean if you are incrementing some nonce, then I have a good chance of guessing the next value
As the first step for generating a secret DH key a uniformly distributed random number $k$ must be generated, which is used to calculate the $k$-th exponent of the basepoint $A$. Depending on the group order $n$, $k$ can be between $1 \ldots n-1$ . The binary representation length of the group order is 32 Bytes in my c...
It seems to me that a timing-safe way to compare any two strings is to take a secure hash of both of them and then compare the result. I would expect that the initial hashing would render any timing attack non-exploitable. It also seems that when hashing passwords, there is no need for a timing-safe comparison of the ...
What is the exact computational complexity in absolute operation numbers (multiplications, exponentiations, etc) of a bilinear map evaluation both for symmetric and asymetric groups. And how this is comparable with exponentiation?
Zero-knowledge proof systems have three properties: soundness, completeness and zero-knowledge. I can't understand the definition of "zero-knowledge". What does "simulate" mean? And what is the difference between "honest-verifier zero-knowledge" and "zero-knowledge"?
3DES uses EDE as it is backward compatible to single DES, but consider the following case $K_1$=$K_2$=$K_3$ which one is more secure EDE or EEE.
So we've got to do this assignment for our study, but we can't figure out what to do, can someone help? Assume that Alice and Bob want to communicate via encrypted email. To this end, they first meet in person and agree on a common secret key k and block cipher $(P,C,K,E,D)$ with plaintext space $P$, ciphertext space $...
In class, we learned the Kocher Timing Attacke on modular exponentiation. For determining whether the (e.g., LSB) is 0 or 1, we specified two values: $T_1 = T_M - (TMult(1, y) + (\omega -1)ExpTMult)$ $T_0 = T_M - \omega ExpTMult$ where $T_M$ is the timing for $y^x\ mod\ m$, $TMult$ the timing for the multiplication, $\...
So, I have a java CipherInputStream encrypted using AES/GCM/NoPadding (Bouncy Castle). I can decrypt the stream just fine with the IV (12 bytes) and the AES key. Is there any way I can decrypt the stream if I start reading it from some random byte? Can I generate a correct new IV knowing the original one, byte im star...
I checked the most common AES modes and I think I got the goal of them: avoid same cyper text for same plain text. However all modes except ECB have the weakness that lost part of the message stream will result in a broken decryption because the key can not be generated. CFB is one attempt to resynchronise, it needs t...
I have been working on a C implementation of padding oracle attack on a block encryption algorithm using CBC mode of operation. I understand the concept fine but I can't seem to find an answer to the following question(despite looking up similar questions on stackoverflow and this site): When we send a Ciphertext block...
I know that a CSR includes a public key from which a signed certificate shall be generated. But why is the CSR istself signed and which key is typically used? For signing I need a private key, so the user of the CSR's signature must have the associated public key. But what key/pair is taken?
I was reading the NIST 8114 draft and there's an example of a profile, Sample Profile #2, that shows that 20ns (50MHz) for a block completion for encryption on a CANBUS. The bus is serial and maxes out at 1us (1MHz). Is there some standard somewhere that specifies a 20ns completion time for a block cipher? I cannot...
In Feitsel Algorithim If our block size is n, then our key length would be n x 2^n . But this does not make sense for me. For example: Let's assume that we have 4 bit block size. If our block size is 4, how can the key length be 64 bit?
When we encrypt-then-MAC (which is the recommended case), do we send both in the same package? Both can be modified along the way, isn't it? how do we defend the 2 parts?
When a new client tries to connect with wi-fi, it enters a password which is provided by the wi-fi owner. I wonder what is so hard to capture this password by a hacker when it is being sent to router for authentication? Client can't encrypt this password because symmetric key for encryption/decryption are not exchanged...
Assume we have a pseudorandom function $f(\cdot)$ that maps an input to $\mathbb{F}_p$ where $p$ is a large prime number. Assume $r_1$ and $r_2$ output of the pseudorandom function using two different keys. Question: Are $r_1$ and $r_2$ computationally indistinguishable?
Suppose a desktop client communicates with an internet server program via HTTP requests. I have a symmetric secret key shared between them used for encrypting/securing communication between them. I also mention that communication is almost one-way i.e almost always it is the client that sends some data to the server a...
Choosing 512 bit prime biginteger as secret value as in RSA Choosing TypeA curve (rbits=256,qbits=512) and setting secret value by randomly selecting from $Z_r$ value I wanna know which one has more security strength even though I know 128 bit security can be obtained with 256 bit elliptic curve and 3072-bit RSA keys.I...
Sketch of some basics of lattice signature schemes. KeyGen: AS=T; S: private; A, T: public. Signing: Y <- random distribution. C <- Hash(AY|message). Z <- Y+SC. Rejection sampling on Z, possibly restart. (Note here) Verifying: Accept iff Z is reasonably small. c == Hash(AZ-TC|message). What I know: Rejection...
I am currently reading Lindell's tutorial on simulation-based proofs and I am trying to understand the reasoning why the security notions are they way the are. In simple words, in the case of semi-honest adversaries, we require that there exists one simulator for each party that can simulate the party's view based on i...
There exist protocols for 2-party computation e.g., GMW that use Boolean circuits. I could also use Paillier and arithmetic circuits for a 2 party computation. However after reading about SPDZ is my understanding I could use it to do 2-party computation. Is my understanding correct? Besides the fact that I would have t...
How would you find the Blinding factor $R$ in RSA blind signature algorithm when having – for example – $p=11$, $q=3$, message $m=6$, and public key $pk=7$? The answer doesn’t have to use the numbers in the example. I’m just trying to understand how to find the blinding factor $R$ having any numbers.
My question has to do with the creation of a PoWorK( Proof of Work or Knowledge) protocol.How we can create a protocol like this ,using Schnorr as the underlying CVZK protocol and using a hash function (lets say sha256) as the puzzle that is being solved? In other words : 1) How a P can prove to V that he knows witness...
If two messages $M_1$ and $M_2$ are given as input to a hash function $h$ is it then true that $h(M_1,M_2) = h(M_2,M_1)$? I have two messages. I want to know, Is it possible to apply a hash function to two messages? If it so is $h(M_1,M_2)=h(M_2,M_1)$ ?
Every coded message has a numerical key, it can be a number any digits long. Each decoded letter of the message is placed on separate points of a 10 by 10 coordinate graph. Each letter is represented by a 6 digit number. The first two digits show which letter of the alphabet the letter is. A B C D E F G H I J K L M N O...
This question is related to my previous question “Are two outputs of a PRF computationally indistinguishable when using two different keys??”, but in this question the keys are related. Assume $c_i$ is a counter: $c_i \in \{0,1,..., n\}$. Also, let $k$ and $k'$ be two independent keys. Let $f(.)$ be a pseudorandom fun...
I have actually been able to carry out a DUKPT data decryption successfully, which was also been confirmed with the BP-Tools - Cryptographic Calculator. After understanding the differences between the DUKPT PIN and DUKPT DATA from their respective Variant Constant "according to ANSI X9.24, Part 1 document the DUKPT sec...
As described in this paper(section 3) to implement pairing on Barreto-Naehrig curves. The prime in their case is $p=82434016654300679721217353503190038836571781811386228921167322412819029493183$ and to implement the pairing it is important to find an irreducible polynomial of the form $ W^6-\xi$ in $\mathbb{F}_{P^{2}}$...
I'm doing some exercises. Of course, I have read about the weaknesses of the Vigenère cipher because it repeats the key. But what if I use a different hash every time? The hash of the "key + an increasing number". In this example, I encode a plaintext just with a sum of every single char (text[0] + pswhash[0], and so o...
In FIPS-202 specification, the padding required for SHA3 were not clearly mentioned. so we have analyzed the NIST test vectors for SHA3, which states that append "0x06" (never used 1 followed by 'j'zeros and then 1 specified in FIPS-202) to the message digest, which is a contradiction to the specification. The link for...
Can we use two different hash functions in single hmac..for ex' for inner layer hash function md5 and for outer layer hash function sha1
Actually i am studying cube attack so there is some confusion regarding that in my mind this is 1- it is used for MAC KEY RECOVERY 2- It is a test that user performs to check the frogery or MAC or encryption 3- It is used to break encryption 4- cube attack have paper test like xor etc so they are performed for validty...
Consider Argon2i used as a key derivation function (implemented by the libsodium crypto library) to derive an encryption key from a password. Additionally, when entering the password a second time, it should be checked for validity, meaning whether the same encryption key was derived as for the first time. A possible a...
At 45:43 in this video (from the Princeton Coursera Bitcoin and CryptoCurrency Course), they talk about GoofyCoin and show the image below. My question is, why does it say "signed by pk"... isn't the actual signing done using the "sk", and the verification done using the "pk"? Update: I think I figured out what's goin...
I would do some test for evaluating security in asymmetric algorithms such as RSA and ElGamal to evaluate which of both are safer. The basic problem is that I need to test the security of some symmetric and asymmetric algorithms to evaluate their security and to know which algorithm is more secure and his strength agai...
Given the function $f(m)=m^3$, where $m$ is a plaintext message, what is a function for which ElGamal would be malleable to produce $f(m)$. I know for $t * c_2$ that this would yield $t * m $ but I haven't been able to figure out how it works with powers of $m$.
It is well known that the time complexity of the number field sieve can be calculated by the formula $$\exp\big((C+o(1)) (\log n)^{1/3}(\log \log n)^{2/3}\big)$$ The constant C is known for the special and general number field sieve variants. My question is, how can the value $o(1)$ be approximated for cryptographic r...
I read about PBKDF2 on Wikipedia and seen few apps. having option to manually enter number of iterations. I am still not clear on this. (1) With what I understood, key iterations can be used only with symmetric encryption. If a file/text is encrypted using passphrase, HASH is calculated and encrypted with AES for 'n' n...
I am trying to implement a security access scheme for Automotive Embedded Systems.I need to be able to generate a Random number(of my desired length), combine it with some secret data to send a Seed/Challenge, generate a Key internally using the same Seed/Challenge as one of the inputs to a function and then be able to...