aes128gcm 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.
| 35 | // The counter value is NOT included in the payload during the encryption and |
| 36 | // decryption operations. |
| 37 | type aes128gcm struct { |
| 38 | // inCounter is used in ALTS record to check that incoming counters are |
| 39 | // as expected, since ALTS record guarantees that messages are unwrapped |
| 40 | // in the same order that the peer wrapped them. |
| 41 | inCounter Counter |
| 42 | outCounter Counter |
| 43 | aead cipher.AEAD |
| 44 | } |
| 45 | |
| 46 | // NewAES128GCM creates an instance that uses aes128gcm for ALTS record. |
| 47 | func NewAES128GCM(side core.Side, key []byte) (ALTSRecordCrypto, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected