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.
| 40 | // The counter value is NOT included in the payload during the encryption and |
| 41 | // decryption operations. |
| 42 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected