Home | History | Annotate | Download | only in runner

Lines Matching refs:aead

70 	cipher.AEAD
87 aead func(version uint16, key, fixedNonce []byte) *tlsAead
230 // fixedNonceAEAD wraps an AEAD and prefixes a fixed portion of the nonce to
237 aead cipher.AEAD
241 func (f *fixedNonceAEAD) Overhead() int { return f.aead.Overhead() }
245 return f.aead.Seal(out, f.sealNonce, plaintext, additionalData)
250 return f.aead.Open(out, f.openNonce, plaintext, additionalData)
258 aead, err := cipher.NewGCM(aes)
268 return &tlsAead{&xorNonceAEAD{nonce1, nonce2, aead}, false}
271 return &tlsAead{&fixedNonceAEAD{nonce1, nonce2, aead}, true}
280 // xorNonceAEAD wraps an AEAD and XORs a fixed portion of the nonce, left-padded
287 aead cipher.AEAD
291 func (x *xorNonceAEAD) Overhead() int { return x.aead.Overhead() }
295 ret := x.aead.Seal(out, x.sealNonce, plaintext, additionalData)
302 ret, err := x.aead.Open(out, x.openNonce, plaintext, additionalData)
308 aead, err := newChaCha20Poly1305(key)
317 return &tlsAead{&xorNonceAEAD{nonce1, nonce2, aead}, false}