Zum Inhalt springen

Static IV (ARCH9114)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key swift.security.static-iv · Severity error · Category security · CWE CWE-329

Flags IVs / nonces built from string literals or zero-filled arrays.

let iv = [UInt8](repeating: 0, count: 16)
let nonce = AES.GCM.Nonce()

Generate a random nonce per encryption and store it with the ciphertext.