{"id":22923695,"url":"https://github.com/mithril-security/oid-registry-sgx","last_synced_at":"2025-06-21T05:36:49.336Z","repository":{"id":39826665,"uuid":"430815340","full_name":"mithril-security/oid-registry-sgx","owner":"mithril-security","description":"Port oid-registry to Teaclave Rust SGX SDK and Xargo","archived":false,"fork":false,"pushed_at":"2024-02-26T05:05:13.000Z","size":48,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T11:55:09.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mithril-security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2021-11-22T18:07:38.000Z","updated_at":"2022-02-14T21:04:25.000Z","dependencies_parsed_at":"2025-04-01T14:45:17.461Z","dependency_job_id":"7bb520dd-1c4f-4141-b7be-99a120d1069a","html_url":"https://github.com/mithril-security/oid-registry-sgx","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mithril-security/oid-registry-sgx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Foid-registry-sgx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Foid-registry-sgx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Foid-registry-sgx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Foid-registry-sgx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mithril-security","download_url":"https://codeload.github.com/mithril-security/oid-registry-sgx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mithril-security%2Foid-registry-sgx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261070524,"owners_count":23105421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-12-14T08:16:21.263Z","updated_at":"2025-06-21T05:36:44.317Z","avatar_url":"https://github.com/mithril-security.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- cargo-sync-readme start --\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE-MIT)\n[![Apache License 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE-APACHE)\n[![docs.rs](https://docs.rs/oid-registry/badge.svg)](https://docs.rs/oid-registry)\n[![crates.io](https://img.shields.io/crates/v/oid-registry.svg)](https://crates.io/crates/oid-registry)\n[![Github CI](https://github.com/rusticata/oid-registry/workflows/Continuous%20integration/badge.svg)](https://github.com/rusticata/oid-registry/actions)\n[![Minimum rustc version](https://img.shields.io/badge/rustc-1.45.0+-lightgray.svg)](#rust-version-requirements)\n# OID Registry\n\nThis crate is a helper crate, containing a database of OID objects. These objects are intended\nfor use when manipulating ASN.1 grammars and BER/DER encodings, for example.\n\nThis crate provides only a simple registry (similar to a `HashMap`) by default. This object can\nbe used to get names and descriptions from OID.\n\nThis crate provides default lists of known OIDs, that can be selected using the build features.\nBy default, the registry has no feature enabled, to avoid embedding a huge database in crates.\n\nIt also declares constants for most of these OIDs.\n\n```rust\nuse oid_registry::OidRegistry;\n\nlet mut registry = OidRegistry::default()\n    .with_crypto() // only if the 'crypto' feature is enabled\n;\n\nlet e = registry.get(\u0026oid_registry::OID_PKCS1_SHA256WITHRSA);\nif let Some(entry) = e {\n    // get sn: sha256WithRSAEncryption\n    println!(\"sn: {}\", entry.sn());\n    // get description: SHA256 with RSA encryption\n    println!(\"description: {}\", entry.description());\n}\n\n```\n\n## Extending the registry\n\nThese provided lists are often incomplete, or may lack some specific OIDs.\nThis is why the registry allows adding new entries after construction:\n\n```rust\nuse oid_registry::{OidEntry, OidRegistry};\nuse der_parser::oid;\n\nlet mut registry = OidRegistry::default();\n\n// entries can be added by creating an OidEntry object:\nlet entry = OidEntry::new(\"shortName\", \"description\");\nregistry.insert(oid!(1.2.3.4), entry);\n\n// when using static strings, a tuple can also be used directly for the entry:\nregistry.insert(oid!(1.2.3.5), (\"shortName\", \"A description\"));\n\n```\n\n## Contributing OIDs\n\nAll OID values, constants, and features are derived from files in the `assets` directory in the\nbuild script (see `build.rs`).\nSee `load_file` for documentation of the file format.\n\u003c!-- cargo-sync-readme end --\u003e\n\n## Rust version requirements\n\n`oid-registry` requires **Rustc version 1.45 or greater**, based on proc-macro\nattributes support.\n\n# License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithril-security%2Foid-registry-sgx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmithril-security%2Foid-registry-sgx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmithril-security%2Foid-registry-sgx/lists"}