MCPcopy
hub / github.com/grpc/grpc-go / aes128gcmRekey

Struct aes128gcmRekey

credentials/alts/internal/conn/aes128gcmrekey.go:42–50  ·  view source on GitHub ↗

aes128gcmRekey is the struct that holds necessary information for ALTS record. The counter value is NOT included in the payload during the encryption and decryption operations.

Source from the content-addressed store, hash-verified

40// The counter value is NOT included in the payload during the encryption and
41// decryption operations.
42type aes128gcmRekey struct {
43 // inCounter is used in ALTS record to check that incoming counters are
44 // as expected, since ALTS record guarantees that messages are unwrapped
45 // in the same order that the peer wrapped them.
46 inCounter Counter
47 outCounter Counter
48 inAEAD cipher.AEAD
49 outAEAD cipher.AEAD
50}
51
52// NewAES128GCMRekey creates an instance that uses aes128gcm with rekeying
53// for ALTS record. The key argument should be 44 bytes, the first 32 bytes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected