update CREDITS and enable builds for go1.19 (#2227)

This commit is contained in:
Harshavardhana
2022-08-05 08:07:38 -07:00
committed by GitHub
parent 84b8f9d6fa
commit ddd25a20eb
13 changed files with 1220 additions and 1672 deletions

View File

@@ -180,8 +180,9 @@ const (
// or data key provided as plaintext.
//
// The returned ciphertext data consists of:
// AEAD ID | iv | nonce | encrypted data
// 1 16 12 ~ len(data)
//
// AEAD ID | iv | nonce | encrypted data
// 1 16 12 ~ len(data)
func encrypt(plaintext, associatedData []byte) ([]byte, error) {
iv, err := sioutil.Random(16) // 16 bytes IV
if err != nil {

View File

@@ -26,7 +26,7 @@ import (
// Target is the entity that we will receive
// a single log entry and Send it to the log target
// e.g. Send the log to a http server
// e.g. Send the log to a http server
type Target interface {
String() string
Endpoint() string