- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 31 for IV (0.02 seconds)
-
internal/crypto/key.go
} // GenerateIV generates a new random 256 bit IV from the provided source // of randomness. If random is nil the default PRNG of the system // (crypto/rand) is used. func GenerateIV(random io.Reader) (iv [32]byte) { if random == nil { random = rand.Reader } if _, err := io.ReadFull(random, iv[:]); err != nil { logger.CriticalIf(context.Background(), errOutOfEntropy) } return iv }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 16 14:27:42 GMT 2025 - 6.2K bytes - Click Count (0) -
internal/kms/secret-key.go
ID string `json:"id"` IV []byte `json:"iv"` Nonce []byte `json:"nonce"` Bytes []byte `json:"bytes"` } var value JSON if err := json.Unmarshal(text, &value); err != nil { return ErrDecrypt } if value.Algorithm != AES256GCM && value.Algorithm != CHACHA20POLY1305 { return ErrDecrypt } if len(value.IV) != IVSize { return ErrDecrypt }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Apr 21 16:23:51 GMT 2025 - 8.4K bytes - Click Count (0) -
internal/crypto/key_test.go
for i, test := range generateIVTests { i, test := i, test func() { defer recoverTest(i, test.ShouldPass, t) iv := GenerateIV(test.Random) if iv == [32]byte{} { t.Errorf("Test %d: generated IV is zero IV", i) // check that we generate random and unique IV } }() } } var sealUnsealKeyTests = []struct { SealExtKey, SealIV [32]byteCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 12 20:51:54 GMT 2024 - 6.7K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
try { // Generate random IV byte[] iv = new byte[GCM_IV_SIZE]; secureRandom.nextBytes(iv); // Setup cipher Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM); GCMParameterSpec gcmSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv); cipher.init(Cipher.ENCRYPT_MODE, masterKey, gcmSpec);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
internal/crypto/metadata_test.go
t.Errorf("Test %d: got sealed key '%v' - want sealed key '%v'", i, sealedKey.Key, test.SealedKey.Key) } if !bytes.Equal(sealedKey.IV[:], test.SealedKey.IV[:]) { t.Errorf("Test %d: got sealed key IV '%v' - want sealed key IV '%v'", i, sealedKey.IV, test.SealedKey.IV) } } } var ssecParseMetadataTests = []struct { Metadata map[string]string ExpectedErr error SealedKey SealedKey }{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jul 12 20:51:54 GMT 2024 - 18.7K bytes - Click Count (0) -
cmd/storage-datatypes_test.go
"src/compress/zlib/reader_test.go", VersionID: "", IsLatest: true, Deleted: false, DataDir: "5e0153cc-621a-4267-8cb6-4919140d53b3", XLV1: false, ModTime: UTCNow(), Size: 3430, Mode: 0x0, Metadata: map[string]string{"X-Minio-Internal-Server-Side-Encryption-Iv": "jIJPsrkkVYYMvc7edBrNl+7zcM7+ZwXqMb/YAjBO/ck=", "X-Minio-Internal-Server-Side-Encryption-S3-Kms-Key-Id": "my-minio-key", "X-Minio-Internal-Server-Side-Encryption-S3-Kms-Sealed-Key": "IAAfAP2p7ZLv3UpLwBnsKkF2mtWba0qoY42tymK0szRgGvAxBNcXyHXYooe9dQp...
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/util/CryptoTest.java
byte[] iv = new byte[16]; // 128-bit IV byte[] plaintext = "This is test data for AES encryption test".getBytes(); new SecureRandom().nextBytes(key); new SecureRandom().nextBytes(iv); // When SecretKeySpec keySpec = new SecretKeySpec(key, "AES"); IvParameterSpec ivSpec = new IvParameterSpec(iv);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
internal/crypto/sse-c.go
if !ok { return sealedKey, Errorf("The object metadata is missing the internal sealed key for SSE-C") } // Check whether all extracted values are well-formed iv, err := base64.StdEncoding.DecodeString(b64IV) if err != nil || len(iv) != 32 { return sealedKey, errInvalidInternalIV } if algorithm != SealAlgorithm && algorithm != InsecureSealAlgorithm { return sealedKey, errInvalidInternalSealAlgorithm }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.2K bytes - Click Count (0) -
cmd/handler-utils.go
"X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm": "X-Minio-Replication-Server-Side-Encryption-Seal-Algorithm", "X-Minio-Internal-Server-Side-Encryption-Iv": "X-Minio-Replication-Server-Side-Encryption-Iv", "X-Minio-Internal-Encrypted-Multipart": "X-Minio-Replication-Encrypted-Multipart", "X-Minio-Internal-Actual-Object-Size": "X-Minio-Replication-Actual-Object-Size",
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 16.4K bytes - Click Count (1) -
internal/kms/secret-key_test.go
Ciphertext: `{"aead":"ChaCha20Poly1305","iv":"JbI+vwvYww1lCb5VpkAFuQ==","nonce":"ARjIjJxBSD541Gz8","bytes":"KCbEc2sA0TLvA7aWTWa23AdccVfJMpOxwgG8hm+4PaNrxYfy1xFWZg2gEenVrOgv"}`, }, { KeyID: "my-key", Plaintext: "UnPWsZgVI+T4L9WGNzFlP1PsP1Z6hn2Fx8ISeZfDGnA=",Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 2.9K bytes - Click Count (0)