{"id":38500229,"url":"https://github.com/rdkcentral/secapi2-adapter","last_synced_at":"2026-01-17T05:59:48.130Z","repository":{"id":37848366,"uuid":"486261929","full_name":"rdkcentral/secapi2-adapter","owner":"rdkcentral","description":"SecAPI adapter translates version 2.3 SecAPI (rdkcryptoapi) calls from applications to SecAPI version 3.0 (tasecureapi) implementations","archived":false,"fork":false,"pushed_at":"2025-06-24T16:51:19.000Z","size":293,"stargazers_count":3,"open_issues_count":5,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-24T17:48:57.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdkcentral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-27T16:03:13.000Z","updated_at":"2025-06-24T16:51:23.000Z","dependencies_parsed_at":"2025-07-17T06:13:14.201Z","dependency_job_id":"17770c36-dad7-41bb-baab-1cc67094879a","html_url":"https://github.com/rdkcentral/secapi2-adapter","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/rdkcentral/secapi2-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Fsecapi2-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Fsecapi2-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Fsecapi2-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Fsecapi2-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdkcentral","download_url":"https://codeload.github.com/rdkcentral/secapi2-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdkcentral%2Fsecapi2-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28501367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T05:59:47.438Z","updated_at":"2026-01-17T05:59:48.122Z","avatar_url":"https://github.com/rdkcentral.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sec_api_2_adapter\n\n## Summary\n\nsec_api_2_adapter is a SOC neutral implementation of SecApi 2.3 that uses SecApi 3 as it's cryptographic implementation.\nsec_api_2_adapter uses SecApi 2.3 unit tests to test the library.\n\nThere are a few features in SecApi 2.3 that are not supported due to incompatibility with SecApi 3:\n\n- SecCipher_ProcessCtrWithOpaqueDataShift (Data shift not supported)\n- SecCipher_ProcessCtrWithDataShift (Data shift not supported)\n- SecProcessor_GetInstance (Deprecated function)\n- SecOpaqueBuffer_Release (Not supported by SecApi 3)\n- SecCodeIntegrity_SecureBootEnabled (Not supported by SecApi 3)\n- SecSVP_SetTime (Not supported by SecApi 3)\n\nCalling any of these functions will return a SEC_RESULT_UNIMPLEMENTED_FEATURE error.\n\n## Directories\n\n- The include directory contains the SecApi 2.3 API include files.\n- The src directory contains the sources for the sec_api_2_adapter.\n- The test directory contains the SecApi 2.3 tests that have been modified to test the sec_api_2_adapter.\n- The cmake directory contains additional cmake build helper files.\n- The root directory contains the master cmake build files.\n\n## Building\n\n### Generate Build Files\n\nTo build sec_api_2_adapter, first run cmake to generate build files.\n\nThe build assumes that the following packages have already been installed:\nYAJL - include -DYAJL_ROOT=\u003cdirectory\u003e if not found\nOPENSSL - include -DOPENSSL_ROOT_DIR=\u003cdirectory\u003e if not found\nSecApi3 - include -DSACLIENT_ROOT=\u003cdirectory\u003e if not found\nAdd -DCMAKE_INSTALL_PREFIX=\u003cdirectory\u003e to install to a non-standard install directory.\n\n\n```\ncmake -S . -B cmake-build\n```\n\n\n### Build\n\nTo build sec_api_2_adapter, run a cmake build\n\n```\ncmake --build cmake-build\n```\n\nThis creates a library, libsec_api.(so/dll/dylib) containing the adapter code (the extension .so/.dll/.dylib\ncreated depends on which platform you are building on). It also creates a test application, sec_api_2_adapter_test, to\ntest the library.\n\nSOC and root key tests are also disabled by default. To enable these tests, add -DENABLE_SOC_KEY_TESTS=1. The test_root\nkey defined in test_creds_clear.cpp must match the root key defined on the test device for these tests to pass.\n\nRun unit test suite\n\n```\ncmake-build/sec_api_2_adapter_test\n```\n\nThe tests for the reference implementation expect a SA_TEST_CLEAR_SOC_KEY_FORMAT to\nexist so that SOC based key containers can be tested.\n\n\n### Install\n\nTo install sec_api_2_adapter, run a cmake install\n\n```\ncmake --install cmake-build\n```\n\nThis copies the include files, the library, libsec_api.(so/dll/dylib) containing the adapter code (the\nextension .so/.dll/.dylib created depends on which platform you are building on), and the test application,\nsec_api_2_adapter_test, to their appropriate locations on the system.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Fsecapi2-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdkcentral%2Fsecapi2-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdkcentral%2Fsecapi2-adapter/lists"}