Lines Matching refs:additionalData
453 var additionalData []byte
455 additionalData = make([]byte, 13)
456 copy(additionalData, seq)
457 copy(additionalData[8:], b.data[:3])
459 additionalData[11] = byte(n >> 8)
460 additionalData[12] = byte(n)
462 additionalData = b.data[:recordHeaderLen]
465 payload, err = c.Open(payload[:0], nonce, payload, additionalData)
620 var additionalData []byte
622 additionalData = make([]byte, 13)
623 copy(additionalData, hc.outSeq[:])
624 copy(additionalData[8:], b.data[:3])
625 additionalData[11] = byte(payloadLen >> 8)
626 additionalData[12] = byte(payloadLen)
628 additionalData = make([]byte, 5)
629 copy(additionalData, b.data[:3])
631 additionalData[3] = byte(n >> 8)
632 additionalData[4] = byte(n)
635 c.Seal(payload[:0], nonce, payload, additionalData)