Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 23623

The Galois Counter Mode, an authenticated encryption mode of operation for a block cipher.

0 votes
Accepted

What would be an adversary advantage in case of GCM authentication?

Can we use this formula to find GCM data integrity? No. … Is there a similar document for GCM mode? "Breaking and Repairing GCM Security Proofs" by Iwata, Ohashi and Minematsu (2012) has the current security proof for GCM. …
SEJPM's user avatar
  • 46.4k
2 votes
Accepted

Does Camellia-GCM use Camellia-CTR to create GCM Hash?

Does Camellia-GCM use Camellia-CTR to create GCM Hash? GCM is a mode of operation for a 128-bit blocksize block cipher that turns it into an authenticated encryption scheme. … So yes, Camellia-GCM uses Camellia-CTR internally in exactly the same way AES-GCM uses AES-CTR internally. with Camellia getting the exact same inputs as AES. …
SEJPM's user avatar
  • 46.4k
17 votes
Accepted

GCM padding or not?

Internally GCM really is CTR mode along with a polynomial hashing function applied on the ciphertext. …
SEJPM's user avatar
  • 46.4k
0 votes

Is the Salsa20-GCM composition secure?

FIRST: this is a severe abuse of the GCM construction and should be avoided if anyhow possible, use any of the other AES-finalists if you don't trust AES and there's no reason at the moment to do so. … Even more you'd need to write your own GCM-implementation or modify an existing one which may be avoided if possible. …
SEJPM's user avatar
  • 46.4k
2 votes
Accepted

is it possible to generate IV for a given block with AES GCM

Yes, you can jump to some random byte in a AES-GCM cipher text and decrypt it, by just applying the underlying CTR decryption, i.e. by incrementing the counter appropriately. …
SEJPM's user avatar
  • 46.4k
6 votes
Accepted

How to choose the size of the IV in AES-GCM?

You really want to give 96-bit IVs to GCM (pad them if neccessary). If you pick any IV size but 96-bit, GCM's polynomial hashing function GHASH is invoked to get the IV size down to 128-bit. … This means that you basically apply a PRF on your IV, which means that there's a decent chance of hitting a collision if you use about $2^{64}$ IVs which will allow for a key-recovery attack on GCM and …
SEJPM's user avatar
  • 46.4k
2 votes
Accepted

Security implications of not concatenating a 1 to the IV when using GCM

If the counter mode started at $\text{Nonce}\mathbin\|0^{32}$ instead of at $\text{Nonce}\mathbin\|0^{31}\mathbin\|1$ then one could submit an encryption query for $(0^{96},0^{128})$, i.e. the 128-bit …
SEJPM's user avatar
  • 46.4k
0 votes
Accepted

Parallel file encryption and authentication for large files

To answer your ideas of: "I use hash-then-encrypt" with CBC + SHA-1 "I use MAC-then-encrypt" with CBC + HMAC "I won't use GCM because of unclear usage guidance" First, hash-then-encrypt is a really … Third : GCM. You indeed only should encrypt than less than 60GiB of data under a given key-nonce pair. …
SEJPM's user avatar
  • 46.4k
1 vote

What are the implications of allowing a zero-length GCM nonce?

As documented in NIST SP800-38D, GCM works as follows, upon input of block cipher $E$, key $K$, initialization vector $IV$, and plaintext $P$: Compute the GHASH key $H=E_K(0^{128})$ Compute the initial … This issue is avoided in "legal" versions of GCM by hashing in the length of the IV for variable-length IVs and for fixed-length IVs by setting the last bit to 1. …
SEJPM's user avatar
  • 46.4k
2 votes

Are tags longer than 128 bit possible for AES-256-CCM and AES-256-GCM?

No, there is no black-box type way of increasing the security strength of the tags of CCM and GCM. … However this would most-likely be a GCM look-a-like, but would needs its own (difficult) security analysis and new implementations. On a final note, the tags of CCM, GCM and HMAC are MACs. …
SEJPM's user avatar
  • 46.4k
3 votes
Accepted

AES-CBC then SHA vs AES-GCM for encrypting and authenticating a web token

AES GCM is authenticate then encrypt algorithm? because I feel that encrypt then authenticate feels more secure to me AES-GCM is an authenticated encryption algorithm. … and so AES-GCM achieves the same security definition as CBC-then-HMAC. …
SEJPM's user avatar
  • 46.4k
11 votes
Accepted

TLS 1.2 Cipher Suites With AES-GCM – What data (if any) is passed to the AES-GCM cipher as t...

Actually section 6.2.3.3 of RFC 5246 talks about the associated data: The additional authenticated data, which we denote as additional_data, is defined as follows: additional_data = seq_num + TLSComp …
SEJPM's user avatar
  • 46.4k