GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - OsbornePro/NovaKeyKEMBridge: NovaKeyKEMBridge is a Go module and bridging project designed to enable secure communication between the NovaKey iOS application and a companion daemon running on a desktop computer.

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
NovaKeyKEM.xcframework
NovaKeyKEM.xcframework
 
 
bridge
bridge
 
 
build
build
 
 
mobile
mobile
 
 
novakeykem
novakeykem
 
 
.gitignore
.gitignore
 
 
.go-version
.go-version
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NovaKeyKEMBridge.aar
NovaKeyKEMBridge.aar
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
export_ios.go
export_ios.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
tools.go
tools.go
 
 

Repository files navigation

NovaKeyKEMBridge

Overview

NovaKeyKEMBridge is a Go module and bridging project designed to enable secure communication between the NovaKey iOS application and a companion daemon running on a desktop computer.

The core functionality is provided by the novakeykem Go package, which implements a custom post-quantum secure protocol using ML-KEM-768 (formerly known as Kyber-768, standardized in NIST FIPS 203). This allows the iOS app to securely "inject" secrets or send approval messages to the daemon over TCP, with forward-secure, quantum-resistant encryption.

The project includes an XCFramework (NovaKeyKEM.xcframework) built from the Go code using golang.org/x/mobile/bind, allowing the Go implementation to be called directly from Swift/Objective-C in the NovaKey iOS app.

Features

  • Post-quantum key encapsulation using ML-KEM-768 via golang.org/x/crypto/mlkem
  • Authenticated encryption with XChaCha20-Poly1305
  • Key derivation via HKDF-SHA256
  • Custom framed TCP messages with versioning and typed inner payloads
  • Two message types:
    • Inject: Sends a secret payload (e.g., a password or authentication token) to the daemon
    • Approve: Sends a confirmation/approval without payload
  • Secure pairing via a JSON blob containing device ID, device key, server address, and server Kyber public key

Directory Contents

  • NovaKeyKEM.xcframework/ – Pre-built framework for integration into Xcode projects
  • novakeykem/ – Main Go package implementing the protocol
    • kem.go – Core functions: BuildInjectFrame and BuildApproveFrame
  • go.mod, go.sum – Go module dependencies
  • tools.go – Tool imports for Go mobile binding

Dependencies

  • Go 1.24
  • golang.org/x/crypto (v0.46.0) – Provides ML-KEM, ChaCha20-Poly1305, HKDF, etc.
  • golang.org/x/mobile – For generating the iOS XCFramework

Building the XCFramework

To regenerate or update the framework:

gomobile bind -target=ios -o NovaKeyKEM.xcframework novakeykem

(Note: Requires gomobile installed via go install golang.org/x/mobile/cmd/gomobile@latest and initialized with gomobile init.)

Usage in iOS (Swift)

After adding the XCFramework to your Xcode project:

import NovaKeyKEM

// Example: Build an inject frame
let pairingJSON = "{...}" // Your pairing blob as JSON string
let secret = "my-secret-password"

if let frame = try? NovakeykemBuildInjectFrame(pairingJSON, secret) {
    // Send `frame` (Data) over TCP to the daemon
}

Similar for NovakeykemBuildApproveFrame(pairingJSON).

Protocol Notes

  • Uses ephemeral ML-KEM encapsulation against the server's static Kyber-768 public key
  • Derives AEAD key from shared secret + static device key (acting as salt/authentication)
  • Includes timestamp in plaintext to prevent replay
  • Framed with 16-bit length prefix for TCP streaming

This provides strong post-quantum confidentiality and authentication for short messages/secrets from iOS to the desktop daemon.

License

Apache License, Version 2.0 – see LICENSE.md.

Author

Developed for the NovaKey iOS app by Robert H. Osborne.

About

NovaKeyKEMBridge is a Go module and bridging project designed to enable secure communication between the NovaKey iOS application and a companion daemon running on a desktop computer.

novakey.app

Topics

gogolangnovakeyswift

Resources

Readme
GPL-3.0 license

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.