{"id":24142121,"url":"https://github.com/mewmix/sm4-xts-openssl","last_synced_at":"2026-06-07T02:32:03.729Z","repository":{"id":212432464,"uuid":"731365356","full_name":"mewmix/sm4-xts-openssl","owner":"mewmix","description":"openssl sm4-xts \u0026 aes-xts 256 implementations for testing","archived":false,"fork":false,"pushed_at":"2023-12-14T07:17:32.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T04:55:52.762Z","etag":null,"topics":["aes-256","c","cryptography","disk-encryption","openssl","sm4"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mewmix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-13T23:21:34.000Z","updated_at":"2024-04-30T10:00:29.000Z","dependencies_parsed_at":"2023-12-14T08:28:03.379Z","dependency_job_id":"c059ff02-5ee2-4524-a153-9efd779aae25","html_url":"https://github.com/mewmix/sm4-xts-openssl","commit_stats":null,"previous_names":["mewmix/sm4-xts-openssl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewmix%2Fsm4-xts-openssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewmix%2Fsm4-xts-openssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewmix%2Fsm4-xts-openssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mewmix%2Fsm4-xts-openssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mewmix","download_url":"https://codeload.github.com/mewmix/sm4-xts-openssl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241368959,"owners_count":19951679,"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":["aes-256","c","cryptography","disk-encryption","openssl","sm4"],"created_at":"2025-01-12T04:55:55.341Z","updated_at":"2025-03-01T13:22:36.426Z","avatar_url":"https://github.com/mewmix.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Credits\n\nInspired by https://gist.github.com/ants/862cb941057bdb8db00c72711d2b826c#file-ssl-encrypt-c\n\nI went about making my own tools for verification and testing against the PYCA Cryptography library in Python. \n\n# Install\n\n```\ngit clone https://github.com/mewmix/sm4-xts-openssl\ncd sm4-xts-openssl\nmake\n```\n\n# Usage\n## SM4(128)\nUsage: ./sm4_xts \u003c-e|-d\u003e \u003cSM4_key\u003e \u003cIV\u003e \u003cinput_text_or_ciphertext\u003e\n## AES(256)\nUsage: ./xts_debug \u003c-e|-d\u003e \u003cAES_key\u003e \u003cIV\u003e \u003cinput_text_or_ciphertext\u003e\n\n\n# Example\n\n## SM4\n```bash\n$ ./sm4_xts_debug -e 68d90424687cc2043595091a78a44ec2c639c3ecc6b14d7ac42ce74e582fa3dc 601cd97ddeb1c75bbe5865072f3dc7a8 686579667269656E64736C657473676574656E6372797074656421\n\u003e\u003eSM4 Key (binary): 68d90424687cc2043595091a78a44ec2c639c3ecc6b14d7ac42ce74e582fa3dc\n\u003e\u003eIV (binary): 601cd97ddeb1c75bbe5865072f3dc7a8\n\u003e\u003ePlaintext (binary): 686579667269656e64736c657473676574656e6372797074656421\n\u003e\u003eCiphertext (hex): 34143fbf6cb3a97feb84f866d85e01f8d15ed03905552cb12cd567\n$ ./sm4_xts_debug -d 68d90424687cc2043595091a78a44ec2c639c3ecc6b14d7ac42ce74e582fa3dc 601cd97ddeb1c75bbe5865072f3dc7a8 34143fbf6cb3a97feb84f866d85e01f8d15ed03905552cb12cd567\n\u003e\u003eSM4 Key (binary): 68d90424687cc2043595091a78a44ec2c639c3ecc6b14d7ac42ce74e582fa3dc\n\u003e\u003eIV (binary): 601cd97ddeb1c75bbe5865072f3dc7a8\n\u003e\u003eDecrypted Text: heyfriendsletsgetencrypted!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewmix%2Fsm4-xts-openssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmewmix%2Fsm4-xts-openssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmewmix%2Fsm4-xts-openssl/lists"}