How caremiumos-dev/libxtcsecurity works
xtcSecurity is a compact Android native/JNI compatibility library. Its main workflow exposes string encryption/decryption and byte-array encryption/decryption to Java callers; a separate RSA-key entry point recovers the embedded default key through the string-decryption method. The library also exports standalone C codec helpers and logging. The graph focuses on runtime behavior; build, test, and documentation infrastructure are omitted. Relationships are limited to calls and shared definitions shown in the excerpts or README.
Main entry points: xses_request_helper.cpp String codec · xtc_security.h Public API · xtc_security.cpp C helpers and globals · face_image_encrypt.cpp Face byte codec
Components 7
Other components
- Java caller
- String codec
src/xses_request_helper.cpp - RSA key recovery
src/xses_request_helper.cpp - Face byte codec
src/face_image_encrypt.cpp - C helpers and globals
src/xtc_security.cpp - Codec definitions
src/security_internal.h - Public API
include/xtc_security.h
Connections 13
- Java caller → String codec: calls
README.md - Java caller → RSA key recovery: requests key
README.md - Java caller → Face byte codec: calls
README.md - Java caller → Public API: uses API
include/xtc_security.h - RSA key recovery → String codec: invokes decrypt
src/xses_request_helper.cpp - String codec → C helpers and globals: XOR encodes
src/xses_request_helper.cpp - String codec → C helpers and globals: XOR decodes
src/xses_request_helper.cpp - String codec → Codec definitions: uses maps
src/xses_request_helper.cpp - Face byte codec → Codec definitions: uses key length
src/face_image_encrypt.cpp - C helpers and globals → Codec definitions: uses key layout
src/xtc_security.cpp - Public API → String codec: declares entry points
include/xtc_security.h - Public API → Face byte codec: declares entry points
include/xtc_security.h - Public API → C helpers and globals: declares exports
include/xtc_security.h