- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FnOnce (0.17 sec)
-
docs/debugging/inspect/decrypt-v1.go
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 11 21:22:47 GMT 2024 - 1.6K bytes - Viewed (0) -
internal/crypto/key.go
} var nonce [32]byte if _, err := io.ReadFull(random, nonce[:]); err != nil { logger.CriticalIf(context.Background(), errOutOfEntropy) } const Context = "object-encryption-key generation" mac := hmac.New(sha256.New, extKey) mac.Write([]byte(Context)) mac.Write(nonce[:]) mac.Sum(key[:0]) return key }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 19 20:28:10 GMT 2024 - 6.4K bytes - Viewed (0) -
internal/kms/single-key.go
} } if n := len(encryptedKey.Nonce); n != aead.NonceSize() { return nil, Error{ HTTPStatusCode: http.StatusBadRequest, APICode: "KMS.InternalException", Err: fmt.Errorf("invalid nonce size %d", n), } } associatedData, _ := context.MarshalText() plaintext, err := aead.Open(nil, encryptedKey.Nonce, encryptedKey.Bytes, associatedData) if err != nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 01 21:09:42 GMT 2024 - 7.9K bytes - Viewed (0) -
internal/etag/etag.go
// return len(e) > 16 && !bytes.ContainsRune(e, '-') // // An encrypted ETag may contain some random bytes - e.g. // and nonce value. This nonce value may contain a '-' // just by its nature of being randomly generated. // The above implementation would incorrectly consider // such an ETag (with a nonce value containing a '-') // as non-encrypted. return len(e) >= 32 // We consider all ETags longer than 32 bytes as encrypted }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Mar 10 21:09:36 GMT 2024 - 13.3K bytes - Viewed (0) -
cmd/admin-handlers.go
} stream, err := sio.AES_256_GCM.Stream(key[:]) if err != nil { bugLogIf(ctx, err) return } // Zero nonce, we only use each key once, and 32 bytes is plenty. nonce := make([]byte, stream.NonceSize()) encw := stream.EncryptWriter(w, nonce, nil) defer encw.Close() // Initialize a zip writer which will provide a zipped content // of profiling data of all nodes
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 29 17:39:04 GMT 2024 - 97.8K bytes - Viewed (2)