KORTHVEILSecurity firewall
Guides

K-ACAF: encryption levels and FIPS mode

Download as PDF All guides

K-ACAF, the Korthveil Advanced Cryptographic Assurance Framework, is where Korthveil (from 1.6.7) sets how strong the keys it makes are, and turns on FIPS 140-3 mode. It is Korthveil's own framework, not a certification.

It does two things:

  • The encryption level, from 128 to 8192: how strong the keys and certificates the firewall makes from now on are. Standard (128) is the default and what the firewall has always used.
  • FIPS mode: the firewall uses FIPS 140-3 validated cryptographic modules, the OpenSSL FIPS Provider 3.1.2 (CMVP #4985) and the Go Cryptographic Module v1.0.0 (CMVP #5247), in their approved modes.

Uses the OpenSSL FIPS Provider 3.1.2 (CMVP #4985), built and installed as its Security Policy requires, on Korthveil OS 26.11, an operating environment not listed on its certificate; and the Go Cryptographic Module v1.0.0 (CMVP #5247) on Linux 6.x x86-64, an operating environment its vendor affirms.

The page

Open System › Certificates & encryption › K-ACAF: Encryption & FIPS. It has two panels: FIPS mode and Encryption strength.

System › Certificates & encryption › K-ACAF: Encryption & FIPS: FIPS mode off, the encryption level at 128 Standard
System › Certificates & encryption › K-ACAF: Encryption & FIPS: FIPS mode off, the encryption level at 128 Standard

Both are settings like any other: a change goes to pending changes, and Review and commit applies it.

The encryption level, 128 to 8192

The firewall's level offers seven levels:

The level list: 128, 192 and 256 are bits of strength; 2048 to 8192 are RSA key sizes, each with its real strength
The level list: 128, 192 and 256 are bits of strength; 2048 to 8192 are RSA key sizes, each with its real strength
Level Name Strength Keys and data
128 Standard, the default 128-bit P-256 keys, AES-128 or AES-256, SHA-256
192 High 192-bit P-384 keys, AES-256, SHA-384
256 Maximum, the strongest 256-bit P-521 keys, AES-256, SHA-512
2048 RSA 2048 keys 112-bit weaker than 128: only for old devices
3072 RSA 3072 keys 128-bit
4096 RSA 4096 keys about 150-bit
8192 RSA 8192 keys about 200-bit about a minute to make; some devices refuse it

In plain words:

  • 128, 192 and 256 are the strength in bits. Data is always encrypted with AES-GCM, and AES has no key larger than 256 bits.
  • 2048 to 8192 are RSA key sizes, each with its real strength. A bigger number isn't stronger than 256: RSA 8192 is about 200-bit.
  • There is no 512 or 1024. RSA keys that small can be broken, so both validated modules refuse them.
  • RSA 8192 takes about a minute to make on the firewall and costs about a quarter second per new connection. Some older phones and VPN apps refuse keys above 4096.

A device keeps its key until it gets a new one: a new level changes the keys made from now on.

What the level changes

The page says it under the level you choose. At 8192 it shows all of them:

Level 8192: the key note, IPsec, SSH's host key and the console's own certificate
Level 8192: the key note, IPsec, SSH's host key and the console's own certificate
What At 128 At 192 and 4096 At 256 and 8192 At 2048 to 8192
IPsec (tunnels and remote access without proposals of their own) as before AES-256-GCM, P-384 or MODP-4096, SHA-384 AES-256-GCM, P-521 or MODP-8192, SHA-512
SSH's host key (the command line) P-256 P-384 P-521 plus an RSA key of that size
The agents' authority P-256 a staged rollover to P-384 a staged rollover to P-521
New certificates without a chosen key P-256 (CAs P-384) P-384 P-521 RSA of that size
The console's own certificate P-256 an RSA certificate beside it (at 4096 and 8192, after a P-384 or P-521 one)
  • IPsec: a tunnel's own proposals always win. A peer that offers only weaker ones needs proposals set on its tunnel. At 256 and 8192, Windows' built-in VPN client can't connect by IPsec: it has neither group.
  • SSH: SSH clients that know the firewall ask once to accept the new host key. An RSA host key is made in the background, about a minute for 8192; meanwhile the level's other keys are offered.
  • Korthveil agents move over as with any rollover of their authority; a lower level never rolls back. The agents' portal keeps its own key, which the install commands already handed out pin.
  • The console: a browser that accepted the console's earlier certificate warns once about the new one. A certificate you chose in System › Certificates & encryption › Certificates stays the only one.

Per device

A device that holds its own key can have its own level:

  • VPN › OpenVPN: each user has an Encryption choice: As the firewall (the default), or any level from 128 to 8192. It takes effect with the next profile you download for that user, which has a new key.
VPN › OpenVPN: ben-phone at 256 Maximum; anna-laptop follows the firewall
VPN › OpenVPN: ben-phone at 256 Maximum; anna-laptop follows the firewall
  • System › Certificates & encryption › Certificates: Key offers ECDSA P-256 (the default), P-384 and P-521 (256-bit, the strongest), and RSA 2048, 3072, 4096 and 8192. Without a choice, a new certificate gets the level's key.
System › Certificates & encryption › Certificates: an RSA 8192 certificate and an ECDSA P-521 one
System › Certificates & encryption › Certificates: an RSA 8192 certificate and an ECDSA P-521 one

FIPS mode

Before you turn it on

FIPS mode keeps WireGuard, Tailscale, the site mesh and ICN off: their cryptography (ChaCha20, Curve25519) isn't FIPS-approved. While one of them is on, the switch can't be turned on, and the page says which:

FIPS mode refused: Turn these add-ins off first: their cryptography is not FIPS-approved (wireguard)
FIPS mode refused: Turn these add-ins off first: their cryptography is not FIPS-approved (wireguard)

Turn them off first (VPN › WireGuard and the others), or leave FIPS mode off. In FIPS mode, switching one of them on is refused at Review and commit: FIPS mode keeps the wireguard add-in off (its cryptography is not FIPS-approved): turn it off first, or leave FIPS mode off.

Turn it on

  1. Turn on FIPS mode. The panel says On after the next restart.
  2. Review and commit.
  3. The page says FIPS mode is committed: restart the firewall to start it (Monitoring › System status, Power).
Committed: restart the firewall to start FIPS mode
Committed: restart the firewall to start FIPS mode
  1. Restart the firewall at a time that suits you. The kernel starts in FIPS mode at the next start.

After the restart

The panel says FIPS mode on, and lists what runs:

FIPS mode on: the Go Cryptographic Module in approved mode, the OpenSSL FIPS Provider 3.1.2 installed and checked
FIPS mode on: the Go Cryptographic Module in approved mode, the OpenSSL FIPS Provider 3.1.2 installed and checked
  • The kernel started in FIPS mode.
  • Go Cryptographic Module v1.0.0 (CMVP #5247): approved mode on. Every Korthveil program uses it.
  • OpenSSL FIPS Provider 3.1.2 (CMVP #4985): installed on this firewall and checked at this start; OpenSSL uses only it. It is installed on each firewall as its Security Policy requires: its self-tests run and its configuration is written for that firewall.
  • TLS is limited to approved groups, signatures and AES-GCM.

On the command line, show fips says the same: FIPS mode, the kernel, the Go Cryptographic Module and its approved mode, the OpenSSL FIPS provider, and the encryption level.

To turn FIPS mode off, turn the switch off, commit and restart: it ends at the next restart.

What FIPS mode doesn't cover

The page lists it under Not covered by a validated module:

  • The kernel's own cryptography (IPsec ESP bulk encryption in the kernel): the kernel is not a validated module.
  • Programs that use GnuTLS, libgcrypt or Nettle rather than OpenSSL.

Questions

  • Does FIPS mode give the firewall itself a certificate? No. A FIPS 140-3 certificate belongs to a cryptographic module, not to a product. Korthveil uses FIPS 140-3 validated cryptographic modules, as the fine print at the top of this guide says.
  • Which level should I choose? Standard (128) for most networks. 192 or 256 when a policy asks for it. An RSA level only when a device or a policy needs RSA keys.
  • Does a higher level slow the firewall down? Data is AES-GCM at every level. RSA 4096 and 8192 cost more on each new connection (about a quarter second at 8192).
  • Can I use WireGuard in FIPS mode? No. Use IPsec or OpenVPN, which use the validated modules.

How it was tested

  • Automated tests: the levels and what each one makes, the page's switch and picker staging the setting, FIPS mode refusing WireGuard, Tailscale, the site mesh and ICN.
  • The release test: a firewall installed from the installer starts in FIPS mode; the OpenSSL FIPS provider installs, checks and is active; an unmodified SSH client connects to the command line.
  • The pictures: taken on a test firewall running a test build of 1.6.7, with example names and addresses.

Download as PDF All guides