instruction
stringlengths
32
27.2k
I created a root CA, let's say A. I created the Certificate Signing Request (CSR) for B, and get the certificate signed by A. I would like to know of what exact content the signature is made. This is my root CA Key: -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEA1YlHGeuAr2VUYjKzJYhdKcSiJwAwJRofOvmrYt5QgAhjEMZO Omqu5g...
Which BigInteger is needed for implementing SHA-256? SHA-256 has 64 hex symbols as output. I could use the data structure "string" to calculate the SHA-256 or a BigInteger. Do I need uint256_t in the programming language C++ because I have 256 bits (0 and 1) and so the numbers from 0 to $2^{256} - 1$? I first implement...
Let's imagine that I've got a number modulo n given by DH protocol. I want to use it as a key for AES encryption. So I have to cut this number to fit it in AES (128,192 or 256 bits). I can use hash functions to achieve that, but what hash function is suitable for key deriviation? Can I use SHA2?
$F_k$ is a PRF , $k\in\{ 0,1\}^n$ , is $H_k(x) = F_{k_1}(x)||F_{k_2}(F_{k_1}(x))$ a PRF? when $k=k_1||k_2$ , $k_1,k_2\in\{ 0,1\}^n$ and $k\in\{ 0,1\}^{2n}$ are random strings , im trying to prove it using the hybrid argument such that : $H_0$ be $F_{k_1}(x)||F_{k_2}(F_{k_1}(x))$ $H_1$ be $f_1(x)||F_{k_2}(f_1(x))$ w...
People always say that "there is no such thing as unbreakable crypto!" In most cases they are right. AES, RC4, RSA, C25519, DH, .... are all cryptographic algorithms which are crackable (with extreme effort). The asymmetric stuff, you can factorize; the ciphers you would have to brute force. But from what I understood,...
Imagine Alice sending Bob a message. They act like this: Alice encrypts a message with her key and sends it to Bob. Bob encrypts the message again with his key and sends it back to Alice. Alice decrypts the message with her key. So now it is encrypted with Bob's key. Alice sends the message back to Bob, who decrypts i...
I have a scenario that has this type of security: System A generates a random number and sends it to B B hashes of that value and encrypts it with RSA, then it sends the result to A A decrypts via RSA and validates the hash with the one calculated at the moment of random number generation. The RSA calculation that is...
What happens if we allow implementation of SHA-2 using negative values? What happens if a negative value was used in the first round? Would the algorithm still result in a secure value? I have a basic understanding of how the maths work. However, before I go writing my own function - could somebody indicate if they ha...
Excuse me in advance for the generality of the question I am about to ask, I am not even sure if this is the place to ask... but here I go! Let me start by mentioning a little about my academic background: I recently finished my Mathematics BSc and I am starting an MSc in Mathematics on September. I did my Final degree...
It is hard to get Least Significant Bit for Discrete Logarithm systems with composite moduli. However this is because of the hardness of the factoring problem. Is it hard to get Least Significant Bit for Elliptic Curve Discrete Logarithms? For which cases is it hard to get Least Significant Bit for Discrete Logarithms...
This is what a casual IKEv2 handshake looks like : Initiator Responder | | 1|-----------------------> HDR, SAi1, KEi, Ni ------------------------->| 2|<----------------- HDR, SAr1, KEr, Nr, [...
I know about VIC and Solitare but as I understand they are not quantum resistant ciphers. Is there any quantum resistant pen-and-paper or mind cipher?
For my class in applied information security I'm asked to find a cryptographic solution to the following problem: The government of country X wants to simplify the process of issuing driving licenses. The idea is that the person do not need to go physically to a driving institution to pick up a card, but instead the...
I need a password hashing function that is deterministic. Correlation attacks are not a concern. The same password must produce the same hash. I just want to protect the password against dictionary and brute force attacks in the event that the hash is leaked. Is there a well known way to do this? Would fixing the salt ...
I am studying the fundamental concept of cryptography. I found the following statements: You can compare symmetric algorithms based on the key (e.g., CAST-128 bit “weaker” than AES-256) You cannot compare asymmetric algorithms based on key length. More importantly, never compare asymmetric vs. symmetric key lengths! ...
I am looking for a perfect OTP design, so let's see if this design is good. There are 2 issues when it comes to a good OTP system, the key and the plaintext, we will use XOR as cypher: If the plaintext is like a message, then it should be long enough, otherwise it's pointless. What is the point in encrypting "Hello wo...
Let's say I have some data ciphered using key, $K_1$, in to format $D_1$, which I want to convert into format $D_2$ that can be decrypted using $K_2$. So I know $D_1, K_1$ and $K_2$. I want to convert $D_1$ to $D_2$ but I want to avoid actually decrypting the data $D_1$ into its plaintext form. Is it possible to do s...
Alice and Bob decide to use the prime $p = 601$ for their affine cipher. The value of $p$ is public knowledge, and Eve intercepts the ciphertexts $c_1 = 324$ and $c_2 = 381$ and also manages to find out that the corresponding plaintexts are $m_1 = 387$ and $m_2 = 491$. Determine the private key and then use it to encry...
I would like to have a simple experience for a user for setting up a secure connection between two computers against a MITM attack. Something like the following: A number (possibly base64) appears on both screens, the user verifies that the number is identical and clicks OK. Is there a standard algorithm for this?...
I want to use MAC as an additional protection of UDP-server from DoS attacks. I prefer to keep MAC as short as possible and I assume 32 bit is good enough for this purpose. I'm going to make it based on some well-known MAC (e.g. KECCAK Message Authentication Code) Is it bad idea to use CRC32 of this MAC? Or it is bette...
The Boneh–Lynn–Shacham signature is (as far as I know) unrivaled in compactness, promising $b$-bit security for $2b$-bit signature (perhaps: asymptotically). Are there standard parameters for BLS signature, (being?) defined by standard bodies, security authorities, or other recognized authority; or otherwise common/rec...
While I am aware that the SPI (along with destination IP and protocol) is used to uniquely identify an incoming SA on a peer, for the life of me I am not able to understand how that particular SPI value is determined and agreed upon by both peers during IKE phase 2 message exchanges, for both the incoming and outgoing ...
I am doing protection for my software, which involves storing a part of the crucial algorithm inside a smart-card based dongle. I will supply the input to the dongle, and I will expect the output of the dongle to be correct. If it's not then I know something is wrong. The idea is that First a random key is generated T...
I am beginner in cryptography and now I try to understand certificate process. I read this answer and have some questions about the enrollment process: The general procedure to issue certificates in a Public Key Infraestructure is moreless the following. 1) the client generates a key pair, private and public 2) the ...
I am working though the paper of Goldwasser, Micali and Rivest ''A Digital Signature Scheme Secure Against Adaptive Chosen- Message Attacks'' In the hierarchy of the severity of breaking the signature scheme, what does the ''a priori'' in the definition of Selective Forgery mean? Selective Forgery: Forge a signature f...
A paper (http://ieeexplore.ieee.org/abstract/document/7961987/) proposes a Braavos (adaptively sound dynamic positive accumulator). Braavos uses two other accumulators. One is adaptively sound positive additive accumulator $ACC_A$ and the other is an non-adaptively sound positive dynamic accumulator $ACC_{NA}$. In the ...
Given a seed string S, I want to deterministically generate a password of the form: N characters, each chosen from a set of characters C Unfortunately neither N nor the cardinality of C necessarily play nicely with powers of 2, and I want to avoid introducing a bias towards any particular characters in C. Is the follow...
Ok so let's say I have some top secret data ~ 50-100 MB and I need it to be protected. The cipher operation mode and the KDF is irrelevant for this example. Let's just assume we use gpg. The only possibility is either single AES-256 encryption, so 14 rounds with a 256 bit key size or dual AES-128 x2 (cascade) with 20 r...
If you made a hash function that worked like this: SHA(std::hash(T input) Would it be a secure hash? The reason I am asking is that std::hash provides a template input, which is much more convenient than the alternative provided by Crypto++, which requires a string input.
I tried to rewrite the Schnorr signature algorithm for elliptic curves but I wanted to be sure to have not done any errors. So I would be very happy if someone could look over this algorithm and tell me if I have done anything wrong, or not precise enough: Let $E$ be an elliptic curve over a finite field $\mathbb{F}_q...
It seems at first glance that brute-forcing a collision would be exactly as difficult for all of them. They all (I would expect) work like this: select a hash value, and then try messages to get an equal hash. The difference between them is just how that first hash is selected: Collision: random message. Preimage: th...
In a paper by Barenghi and Pelosi, it was described that fault attacks could be used to derive the secret key when using deterministic ECDSA as described in RFC6979 by @Thomas_Pornin Deterministic (EC)DSA. The purpose of the attacker in this case is to recover the value of the secret key $d$, from the values of the co...
Given a cyclic group $ G $ of prime order $ q $ with generator $ g $ in which computing the discrete logarithm is hard. Is it (still) hard to find the discrete logarithm $ dlog_g(g^x) = x $ if the values $ g, g^x, g^{x + y} $, $ y $ are known?
I understand the general idea of IND-CPA, however I fail to understand why the messages the adversary chooses have to be of same length. I guess that with variable length messages there would always exist a successful attack and therefore CPA security would not exist. Can anyone guide me into a direction on how such an...
I am conducting a research on CPU-cache based info leak caused by using Sliding window in the Diffie-Hellman key exchange. For my research I am looking for a real-world implementation of sliding window, I have read the source of BouncyCastle and GnuTLs and came out empty. Can someone share some light on the real world ...
We are currently using murmur3 as our hash function for small strings (up to 128 chars). We plan to replace it with a better non-crypto hash function which is fast and produces unique 128-bit hash for a given input across the platforms (32/64-bit, x86 & arm). Farmhash could have been an ideal candidate with it's speed ...
OpenVPN allows the users to choose the TLS cipher suite, depending on the deployed SSL/TLS library. With OpenSSL 1.0.2g and OpenVPN 2.3.11 this is a rather long list (Full list). Amongst the many options there are TLS cipher suites like the following available: DH-DSS-AES256-GCM-SHA384 Which breaks down to: Key Excha...
I've been trying to evaluate the security of a list of cipher suites and I've come across cipher suites, not explicitly featuring a mode of operation. Form this list (openvpn --show-tls), one of such cipher suites would be: DH-RSA-AES256-SHA256 As the cipher suites are provided by the underlying SSL library (OpenSSL 1...
I see many references to KDF2 here, but all links are broken and Wikipedia does not have an entry for KDF2. Is KDF2 a specific standard for Key Derivation without a password? Ultimately, I am trying to make sense of why KDF2 is listed as PRNG for Crypto++ on Wikipedia.
Am I right with this assumption about the general idea of public key and private key? The sender encrypts the data with a symmetric key. After that, he encrypts (using RSA algorithm) this symmetric key with the public asymmetric key of the receiver. The receiver decrypts with his private asymmetric key, and gets the s...
I'm using this bootloader that implements XTEA encryption for uploading an encrypted firmware to small MCU: https://github.com/nyholku/diolan-plus2 the actual XTEA code is here: https://github.com/nyholku/diolan-plus2/blob/master/fw/xtea.asm It is not my code but to me it looks like it uses 16 byte key and 64 iteration...
What are the families of codes frequently used in McEliece cryptosystem or its variants? I know that binary Goppa codes were used in the original system but many codes with efficient decoding algorithm can be used. Are there any other requirements on the code or generator matrix for that matter? I don't care about para...
If I have a cryptosystem based on C25519 ECC crypto, is it possible to use the same public/private key pairs for key agreement in a FIPS compliant way by deterministically converting C25519 public and private keys into keys under some other ECC curve? In other words let's say Alice and Bob have C25519 key pairs. Alice ...
Please forgive me if this is a basic question, I'm in high school so I still don't understand very much. Let's say there are two servers, each with a set of public and private keys. These denote server one: $PK^1, SK^1$ and server two: $PK^2, SK^2$. Each of the private keys stored on the servers are encrypted with the...
Reading Password Interception in a SSL/TLS Channel that was released in 2003: At Eurocrypt’02, Vaudenay presented vulnerabilities in padding schemes used for block ciphers in CBC mode. He used a side channel, namely error information in the padding verification. This attack was not possible against SSL/TLS due to both...
Consider a simple ARX block cipher in which after each block is encrypted, the key is rotated and/or XORed by some variable value. Would this make the key any more secure, or just be a waste of time? Could it somehow make the key less secure? For example, if the key is 0101 and after a block is encrypted the key is rot...
I have the following scenario to which I have to apply cryptography to protect sensitive data: An embedded Linux computer box will be creating and accepting file packages with contents that should not be accessible to anyone outside a restricted group of persons. These packages will be sent to and retrieved from the bo...
In almost all RLWE papers, the polynomials are chosen from a ring $\mathbb{Z}[x]/f(x)$ where $f(x)$ is a polynomial of the form $f(x)=x^{2^n}+1$. That leaves us the choice of polynomials like $x^{256}+1$, $x^{512}+1$ or $x^{1024}+1$ etc. Apart from irreducibility, I understand that using this polynomial has few other a...
In our software we receive certificates in binary DER format from our clients. They are in advance used to perform certain identity checks between server and client. To ensure the certificates are valid and trustable, we verify the certificate chain. Using the APIs we have available this is easily possible. But the ma...
I am trying to understand the Frey-Rück attack and found different ways of a possible implementation. Since I am not yet very familiar with the Tate-Lichtenbaum pairing and the theory of divisors I wanted to ask which one of the different realizations of the FR reductions is the most efficient or ''prettiest'' in your ...
Why do we always assume in cryptographic schemes that the key and plaintext are independent? What if the plaintext depends on the key? How can this endanger security? Is this assumption essential for both symmetric and asymmetric algorithms?
On reading the accepted answer to this question, I was wondering whether a Meet In The Middle attack could be applied to the suggested construction (below), and if not, then what is the effective key strength of combining two 256 bit ciphers in such a way? If I understand correctly, the Tahoe-Lafs 100 Year Cryptography...
In ECDSA, assume your public key is $Q=(x,y)$, then when performing the verification of any message leading to a null hash value (that is $H(M)=0$), the signature $(r,s)=(x,x)$ would always lead to a valid verification for that message, no matter what your public key is. This is the case since upon verification you com...
Newbie here, so forgive me if this is a stupid question. In math class we learned about RSA encryption (as a practical application of what we learned about the Euler phi function and Fermats little theorem), and I wondered that since the same input always yields the same output, if eve had a couple of guesses for what ...
Hi i am trying to build a key stream generator for my homemade stream cipher.The key stream output has a close to maximum entropy value and a large periodicity. What does it take for this generator to be secure from various attacks? What does a high entropy mean security wise? I am confused with this at the moment. Tha...
Is nesting/re-hashing a viable way of slowing down a fast cryptographic hash function (such as SHA-256) to slow down brute-forcing attacks on shorter passwords? The use of longer passwords would of course be ideal, since it would lead to an exponential growth in brute-force difficulty, but is the use of multiple rounds...
Pseudorandom number generators often use hash functions for the generation. Some applications allow the users to choose this hash function, for example OpenVPN. From the OpenVPN manual: --prng alg [nsl] (Advanced) For PRNG (Pseudo-random number generator), use digest algorithm alg (default=sha1), and set nsl (de...
While base64 encoding does not have the intent to encrypt, it is not far fetched to think that the encoding process could be tempered with in some way as to create an encryption. Surely, I am not the first person to think of such an encryption attempt making use of base64 encoding. Therefore, I'd like to ask what kinds...
There are numbers for RSA Factoring Challenge. For example, RSA-896 solution costs $75,000 and the number is: 41202343698665954385553136533257594817981169984432798284545562643387644556 52484261980988704231618418792614202471888694925609317763750334211309823974 851509449091069102698610318627041148808669705649029036536588...
I have read and (believe) I understand the basics of key exchange / creation over a public channel of communication from this diagram Diffie–Hellman key exchange. Now, a fair bit of the online documentation states what has been produced by this process is a "shared secret" not a "shared secret key", nor any references ...
Mersenne Twister generator has a period of (2^19937)-1, but it is period of internal states. Any idea what is the effective period of MT 32 bit output - period over which 32 bit output does not repeat. It has to be smaller than (2^31)-1 but I couldn't find definite answer. Thanks
Have I understood this correctly? To use a key and lock analogy. With an asymmetric pair of keys (when used to encode) can either key be used to encode the message (close the lock) and only the "pair" be used to decode (open the lock)? Taking the key analogy further, is it a useful comparison to say that the first key...
For block ciphers, there are the very well designed schemes of Simple-DES and Simple-AES, which have been created not for security but for teaching the design principles of the real algorithms while maintaining the possibility to calculate them by hand and guarantee an easy demonstration. Are there any such simplified ...
I know that .NET's Rfc2898DeriveBytes requires at least 8 bytes of salt, but how many bytes are ideal? When a user is created, or changes their password, my server stores a new random salt for that user, and a "hash", which is really just some number of bytes from Rfc2898DeriveBytes (ed: .NET's implementation of PBKDF2...
If I understand DTLS-SRTP correctly, DTLS is used to exchange keys and then the endpoints switch to SRTP for encryption. What is the benefit of this setup versus just sending RTP over DTLS? Is it just about compatibility with existing SRTP stacks?
I'm trying to reverse a truncated linear congruential generator with all parameters ( modulus $M,$ multiplier $a$, addend $b$ and the seed $x_0$) hidden. I have read Scott Contini's article On Stern's attack against truncated linear congruential generator. His method on finding the modulus is easy to apply if $k = 64...
An arbitrary width pseudorandom permutation seems like a very versatile secret-key cryptographic building block. It allows for trivial (nonce-misuse-resistant!) authenticated encryption, among other things. Are there any known constructions that are considered secure? Are any of those efficient in practice?
There is this VC vs Bitlocker debate . It is always about open source and not open source , alternative algorythms , portability , etc.... That is nothing new , but once I saw someone useing the mode of operation as an argument . VC uses XTS while BitLocker uses CBC . I am not a professional and my experience with mode...
Veracrypt has always been my favourite encryption tool since it came out . But still there are some things about the tool I don't understand . Why is there the possibility to use sha256 or sha512 . This one does not make sense to me at all . As far as I know the output size of the Veracrypt KDF will always have the sa...
Boneh et al.(Functional Encryption Definitions and Challenges) present that simulation-based security for functional encryption is impossible in the standard model. I can not understand this. In addition, why can we construct a simulation-based secure scheme where a bounded number of ciphertext queries is necessary wh...
suppose we have 3 matrix named A,B,C (2x2, 3x3, 10x10 or whatever). As we know A^(-1) A C B B^(-1)=C So i take a file and convert it to numbers e.g. ASCII code (lets say 65,72,71...) and i add a number sequence. Then i multiply A*C and the result (D) is send. The other guy multiplies D*B and sends the result (E) back....
I want to store encrypted sensitive messages in the blockchain. I was thinking of using public-key cryptography to achieve this, but as the encrypted data will be stored forever in the blockchain and this data will still be sensitive 100 years from now I am afraid there will be a possibility in the future for people to...
Suppose I have some data that has been encrypted with a known, secure algorithm and a key k. I want to distribute "pieces" of the key to n of my colleagues, and only be able to access the data when all keys are used. I create a one time pad and XOR the key, then give that OTP to colleague 1, and reapeat this for each ...
I am trying to implement a mixnet using post-quantum public-key crypto. Each message may be encrypted by up to 10 levels of public keys, shuffled, before the layers of encryption are stripped off one by one. This is traditionally achievable in RSA, because the ciphertext is barely larger than the plaintext, but in the ...
In order to use AES256 encryption, we will need a 256 bit key, and 128 bit iv. We will need some kind of salt and hashing function to convert a password to the desired key. However, let's assume the password is automatically generated for every file anyway. This means that we can theoretically skip the salt and hash (e...
I am wondering if it is possible to use the public/private keys of two WireGuard peers also in another communication channel using libsodium? According to the WireGuard Protocol documentation and the WireGuard paper, they are using: Curve25519 for ECDH ChaCha20 for symmetric encryption, authenticated with Poly1305, u...
I've been looking into TLS cipher suites of OpenSSL and mbedTLS (previously called PolarSSL) and noticed that mbedTLS supports the CCM mode of operation (See list here), whereas OpenSSL does not. If I understand this correctly, this provides authenticated encryption and therefore covers the message hashing in TLS, like...
In the book titled "Secure Multiparty Computation and Secret Sharing" stated that MPC protocol is not secure when the adversary $t>n/2$. This was proved by using a 2 party protocol, but I can't understand why the same applies when $n<2$. For example, when $n=6$ and $t=3$, the adversary might know the multiplication of ...
I need help with proving that the encryption going well when the message $M$ is not Disjoint to $n$ (public key). Encryption message $\ C= M^2 \bmod n$ Decryption message $\ C^{(p+1)/4} \equiv ±M \bmod p$ and $\ C^{(q+1)/4} \equiv ±M \bmod q$. Now, we can't use Fermat's little theorem. Suppose that $M \neq 0 \pmod p$ a...
I am using Thales HSM, a PKCS #11 Compliant device. I have an 32 byte AES key and derivation input. I want to use AES-ECB encryption Mode to derive a 32 byte key where 16 MSB should be considered as one key, and 16 LSB should be considered as an another key. How do I achieve this? I know that CKM_AES_ECB_ENCRYPT_DATA ...
I don't fully understand the need for MAC algorithms to authenticate encrypted messages. As I understand, the standard is to send something like $\mathrm{E}(m,k) \| \mathrm{MAC}(m,k)$ where $E$ is an error-propagating block cipher, $k$ is an encryption key. Would it not be easier simply to send $\mathrm{E}(m\|s,k)$ whe...
This thought randomly popped into my head and I have not been able to find a clear, defined answer for it. Given an AES key, lets say an AES-256 key which is derived from a user password, is there any way to analyze the key and reverse engineer the password used to generate the key? I understand if the key has been rev...
For a proof of work system a hash algorithm generates one pseudorandom index each round, in the same manner as RC4 and Spritz do. And it uses a bigger S-box, e.g. 2^20 numbers. The actual hash would be the first 32 output bytes of the stream cipher after dropping a certain number of rounds. Would this be sufficient to ...
I'm new to cryptography and still trying to understand the way an asymmetric cryptography works. Here's what I learned yet - If Bob wants to send Alice a message, Bob will encrypt the message with his PUBLIC key, and that key will be made available to everyone. But decryption can only be done using the PRIVATE key. So...
I have a system where each user will submit a set of data. The data will be hashed and their hash will be submitted to the server. My plan is to combine each users hash (converted to bytes XOR'd with the root hash) to generate a final hash. This is done as a means to create entropy so that the final hash can be used to...
We usually need pairing-friendly curves in order to use them for bilinear pairing computation. Is Curve25519 a pairing-friendly curve? If not, can we still use it for pairings and how much more inefficient would a pairing computation on this curve be compared to a BN curve?
Since this question hast just been updated I am wondering what the benefits of this scheme are. The only motivation I could find with a quick search are speed and power efficiency. Am I missing anything?
I'm doing a challenge in which I need to login to a server as an admin to capture a flag. I can enter an $id$ and a $password$ only consists of 'a-z', '0-9','-', '_' characters. The flow is as follows: The client side creates a message of a specific format: $$M = {id}\text{-}{password}\text{-}{cookie}$$ Where "$\text{...
I came across cipher suites without hashing algorithm, when inspecting the mbedTLS (previously Polar SSL) TLS cipher suite list. For example: TLS-DHE-RSA-WITH-AES-128-CCM-8 (OpenSSL: DHE-RSA-AES128-CCM8) TLS-DHE-RSA-WITH-AES-256-CCM-8 (OpenSSL: DHE-RSA-AES256-CCM8) As stated in other questions, the hashing algorithm ...
I work on a project that depends on the NTRU cryptosystem, but I don't know how to find the inverse of $f(x)$. Please see the picture: Please help me to understand this problem.
It's pretty easy to generate a Curve25519 private key: generate 32 random bytes of data and then do: e[0] &= 248 e[31] &= 127 e[31] |= 64 You can then generate a public key by doing fancy math on the private key. For example, here's a random keypair I just generated: public: e40ed268dff20db8497d0691421d00b086aad1efedc...
In term of authentication, I have the impression that to trust an entity it is mandatory to have a Certification Authority involve. Today I stumble upon an article something called Direct Anonymous Attestation is possible to get rid of CA. How is that possible when a verifier holds no information nor a trusted party to...
I'm trying to understand and evaluate the security impact of DH in TLS. As far as I can tell, there are four major different implementations of DH in TLS. DH DHE ECDH ECDHE With the ephemeral DH's, forward secrecy is possible, which I consider a huge bonus to security. What I'm not too sure about is the elliptic curv...
I know that a nearly identical question was asked in (Secret Sharing and Multiplication Triples), but I am a few points shy of asking follow up questions in the comments, so I understand if this is closed soon afterward. First and foremost, just to clarify, the use of a multiplicative triple in this secret sharing prob...
In order to reduce the amount of key exchanges, I propose to encrypt messages using the same key stream, by selecting subsequent positions in the keystream for the separate messages. I.e., message $M_1$ gets encrypted with the first $|M_1|$ bits of the key stream, message $M_i$ with bits $|M_1| + |M_2| + \dots + |M_{i-...
Is there a minimum limit for No. of photons that Alice would send to Bob in a QKD scheme like BB84? If not than what would be a desirable length for initial qubit string?
I am an amateur teaching myself, so please don't expect too much professional knowledge. I have some things that are not clear to me about salts. For example I wondered if a "too strong" salt could weaken a crypto hash. If you got an hash algo and you take a password of only one digit and then you fill the rest of the...
Even of today MD5 is (sadly) still heavily used in some applications. Even big tools like ApacheMD5. But even today there are more then enough MD5 hashes which are still not cracked. According to Wikipedia, the strongest attack at time of writing this seems to be a preimage attack against MD5 which was published in Apr...
How much better would a passphrase be if you swapped the first letters of each word with a shift to the left: "correct battery horse staple" becomes "borrect hattery sorse ctaple" This would be simple to remember because you know all the words but how much harder would this be for an attacker? Further, we could try t...
In his book "Applied Cryptography" Bruce Schneier, when talking about public key cryptography, says that: If the same algorithm is used for both encryption and digital-signature verification there is a possible attack. In these cases, the digital signature operation is the inverse of the encryption operation: Vx = Ex ...