instruction stringlengths 32 27.2k |
|---|
According to Google, to access the id_token it sends along with Access Tokens (for accessing their API), you must first validate the token using the RS256 Public Key available from this page. The public key responses look like this:
{
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"kid": "8c9eb968f73744eaed4... |
In one of their documents, NIST recommends using an approved one-way function, followed by a list of such functions, such as HMAC, KMAC, etc.. However, the wikipedia page says:
Unsolved problem in computer science:
Do one-way functions exist?
How does something get approved if it may not even exist? Who approves it, ... |
Quote:
The chosen output length of the key derivation function SHOULD be the same as the length of the underlying one-way function output.
Could someone please help explain the benefits and concerns?
|
NIST recommends doing an additional round of hashing using a secret salt:
In addition, verifiers SHOULD perform an additional iteration of a key derivation function using a salt value that is secret and known only to the verifier. This salt value, if used, SHALL be generated by an approved random bit generator [SP 800... |
How are short term keys usually implemented by PKCS#11?
Is the proper way to distinguish between keys that are more temporary/stored in volatile memory and those stored in non-volatile memory to label them "session objects" or "token objects" using the CKA_TOKEN attribute? Or is there another attribute or property in ... |
What exactly is the difference between key transport and key encapsulation? Either they seem to be used interchangeably or I'm mixing stuff up.
|
I have an encryption scheme where the secret keys are $(\alpha_1, \alpha_2)$ and $(y_1, y_2)$. $(y_1', y_2')$ are public information. The ciphertext is:
\begin{align*}
\mathit{ct}_1 &= r_1 \cdot (\alpha_1 y_1 + \alpha_2 y_2), \\
\mathit{ct}_2 &= r_2 \cdot (\alpha_1 y_1 + \alpha_2 y_2), \\
\mathit{ct}_3 &= r_1' ... |
I have 2 key pairs $(x_1, y_1)$, $(x_2, y_2)$.
I also have $a = $random 256-bit array and $b = $256-bit of defined values from me.
I know the values for $(x_1, y_1)$, $x_2$ and $b$. But I miss the value of $y_2$ (private key).
I have the following term:
// * = scalarmult_vartime
(a * sha512 (a + b) [0-32]) + x1 = x2
C... |
I'm currently trying to optimise the finite field multiplication in $ \operatorname{GF}(2)[x]/(p)$, where $p = x^8 ⊕ x^7 ⊕ x^6 ⊕ x ⊕1 ∈ \operatorname{GF}(2)[x] $.
The thing is that I have to multiply by $ 16,32,133,148,192,194 \ \ and \ \ 251 $. Actually, what I do is that I declare 7 arrays (one for each multiplicatio... |
The scenario is like this: I need 2 keys for different purposes (encryption + encryption, encryption + mac, or whatever). Because it is not good practice to reuse the same key, I'd like the 2 keys to be independent. But remembering 2 different keys are cumbersome (don't question this please), so I think there should be... |
Maximum Distance Separable (MDS) Matrices are used for providing diffusion in a cipher. How to test the strength (with respect to cryptographic properties) of an MDS matrix used in a cipher?
|
I have an implementation of scrypt that doesn’t produce the same output as an online scrypt key generator I found. For example, if I run my own scrypt in a function like this:
void test_scrypt(void)
{
char passwdTxt[] = "abc";
int passwdlen = strlen(passwdTxt);
uint8_t passwd[passwdlen];
memcpy(passwd,... |
Suppose
\begin{align*}
g^r &\equiv h \pmod N, \\
h^s &\equiv g \pmod N,
\end{align*}
for known $g$, $h$, $r$, $s$, and $N$, but not $\phi(N)$.
Then $$g^{r\cdot s - 1} \equiv 1 \pmod N,$$ so I can calculate $r\cdot s - 1 = k\cdot\phi(N)$.
Is $g$'s order $(r\cdot s - 1)/k$?
I think g's real order to be divided $\phi... |
RFC 5869:
Thus, the goal of the "extract" stage is to "concentrate" the possibly dispersed entropy of the input keying material into a short, but cryptographically strong, pseudorandom key.
The implementation:
HKDF-Extract(salt, IKM) -> PRK
PRK = HMAC-Hash(salt, IKM)
Here salt may be 0. In this case, it feeds IKM i... |
Assume I have a password with sufficient entropy but may not be uniformly distributed, how can I turn the password into a key that can be used for symmetric encryption?
I think there is surely such a method because when you type gpg -c it asks for a passphrase (more or less a password) not a key.
Ideally this method do... |
I only understand assurance of integrity using a hash function. How to use cryptograpy to assure data integrity?
|
Suppose we have an almost shared secret. For example if we have a noisy connection to a shared secret source of randomness.
So Alice has $k_1$ and Bob has $k_2$ similar but not necessarily identical to $k_1$. One formalization could be:
$\operatorname{hammingDistance}(k_1,k_2) << \operatorname{length}(k_1)=\operatornam... |
Let $F:\{ 0,1 \}^n \times \{ 0,1 \}^ n \rightarrow Z^*_q $ is a PRF, and $H:\{ 0,1 \}^{2n} \rightarrow \{ 0,1\}^n$ is a secure hash function. Is the following construction $\Pi=(Gen,Mac,Vrfy)$ is a secure MAC?
(Note that we redefined the condition of the attacker's success for pair $(m=a_1|a_2,~T)$, so that $Vrfy_K(m,T... |
As I understand it, if you have a Bloom filter that was generated from the members of a specific set, you can test whether a given bit string is in the set (with some given false positive rate). The idea I had would be to run more complicated predicates on the set, like being able to query whether "there exists a membe... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.