Repository navigation
v1.37 - CLI Offline Mode
libVES.c 1.37 / ves 1.11
New: offline mode in the ves CLI
ves can now encrypt and decrypt streams and items with a key given on the command line, with no Vault and no network:
-Y/-ysupply a PEM public / private key;-Gnames the public key's algorithm (OQS by default)-Icarries an item ciphertext-ggenerates a key pair
Offline stream encryption writes the cipher key in a header ahead of the ciphertext, encrypted for one or more recipients and authenticated by an HMAC, so the file decrypts with ves -d -y KEY, through pipes too.
Fixes
- AES256GCM1K stream decryption overflowed a heap buffer on streams longer than about 32 KB (AES256GCMp likewise). Upgrade if you decrypt streams with either cipher.
- A
-pprint followed by another option'sfwrote the print into that option's file, truncating it. -P FILEand-C FILE(and--plaintext=/--ciphertext=) were refused, although the help documents them; only-Pf/-Cfworked.- On Windows, the CLI read input and wrote streams, item values and VESkeys in text mode, so binary data was cut short at the first 0x1A byte and had its line endings rewritten. Text output (PEM keys, JSON, listings) keeps Windows line endings.
- The library's JSON parser no longer reads past the end of its input when it converts a number.
Building
Debian and Ubuntu don't package liboqs, so the README now shows how to build it as a shared library, as CI and the Dockerfile do. A static liboqs would end up inside libVES.so, and a liboqs fix would then mean rebuilding libVES.
Download
libves-1.37.tar.gz below is the source release. It ships a pre-generated ./configure, so no autotools are needed: ./configure && make && sudo make install.
sha256: 4eb681375fd9b7f2ae1b5dfed898eeac5e88a4458482001d2d4a79080d1526e7
ves-1.37-image.cdx.json is the SBOM (CycloneDX 1.6) of the Docker image vesvault/ves:1.37 (sha256:1b7361b40e074e06d7880fd5ea957941bd9433b8e2f5906c20dea076980506f1, the same on Docker Hub and GHCR). It lists libVES.c, the ves CLI, the 105 Debian 12 packages, and liboqs 0.16.0, which the image builds from source, so image scanners don't find it on their own. It is attested to the image digest; to verify the attestation:
gh attestation verify oci://docker.io/vesvault/ves:1.37 --owner vesvault --predicate-type https://cyclonedx.org/bom