{"data":{"name":"io.github.bowenerchen/cipherhub","title":"CipherHUB Cryptography Toolkit","description":"Production-grade cryptography toolkit with 31 MCP tools for classical, PQC, and KMS workflows.","version":"1.9.4","websiteUrl":null,"repositoryUrl":"https://github.com/bowenerchen/CipherHUB-MCP-Server","remotes":[{"url":"https://tools.cipherhub.cloud/cipherhub/mcp","type":"streamable-http"}],"packages":[],"status":"active","isLatest":true,"publishedAt":"2026-04-30T04:18:04.882Z","updatedAt":"2026-04-30T04:18:04.882Z","source":"official-registry","verification":"official","confidence":100,"stars":null,"sources":[{"stars":null,"title":"CipherHUB Cryptography Toolkit","source":"official-registry","sourceId":"io.github.bowenerchen/cipherhub","updatedAt":"2026-04-30T04:18:04.882Z","confidence":100,"websiteUrl":null,"description":"Production-grade cryptography toolkit with 31 MCP tools for classical, PQC, and KMS workflows.","verification":"official","repositoryUrl":"https://github.com/bowenerchen/CipherHUB-MCP-Server"}],"toolIndex":{"tools":[{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"block_cipher","title":null,"description":"[symmetric_cipher] 分组密码 CBC 模式加解密。\n【算法】AES128（key=16B） / AES256（key=32B） / SM4（key=16B）。\n【参数】\n- algorithm：算法名\n- process_type：Encrypt 或 Decrypt\n- input_data_in_hex：明文或密文 Hex（1B~16MB）\n- key_in_hex：密钥 Hex\n- iv_in_hex：初始向量 Hex（固定 16 字节 = 32 hex 字符）\n【自动行为】加密自动 PKCS7 填充，解密自动去填充。\n【输出】output_data_in_hex、output_length、output_sha256、algorithm。\n【注意】解密时密文长度必须为 16 字节整数倍。","inputSchema":{"type":"object","properties":{"input_data_in_hex":{"default":"","title":"Input Data In Hex","type":"string","description":"输入数据的十六进制字符串（加密时为明文，解密时为密文，1B~16MB）"},"key_in_hex":{"default":"","title":"Key In Hex","type":"string","description":"密钥的十六进制字符串。长度取决于算法：AES256=64 字符(32B)，AES128/SM4=32 字符(16B)"},"iv_in_hex":{"default":"","title":"Iv In Hex","type":"string","description":"初始向量的十六进制字符串，固定 32 个 hex 字符（16 字节）"},"algorithm":{"default":"AES256","title":"Algorithm","type":"string","enum":["AES128","AES256","SM4"],"description":"密码算法名称（具体可选值因工具而异，见工具描述）"},"process_type":{"default":"Encrypt","title":"Process Type","type":"string","enum":["Encrypt","Decrypt"],"description":"操作类型，可选值：Encrypt / Decrypt"}},"title":"BlockCipherRequest"},"annotations":null,"definitionHash":"b24706e81cabfbccdd6fa3c68558217f5936f40f11798c63deef1ea796502fe5","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cbor_decode","title":null,"description":"[structured_message] 把 CBOR 字节流解码为 JSON，并给出逐字段结构拆解树（RFC 8949）。\n【算法】CBOR 解码，定长（§3.2.1）与不定长（§3.2.2）均容忍；\n要求单数据项且逐字节闭合（尾随字节即拒绝）。\n【参数】\n- cbor_in_hex：CBOR 字节的十六进制字符串（1B~128KB）\n【输出】decoded_json（bytes→{\"hex\":…}、tag→{\"tag\",\"value\"}、\n语义 tag→date_time/uuid 等标注形式）、decoded_type、decoded_length、\nstructure_tree（offset/header_len/total_len/major_type/length_form/rfc_note）、truncated、warnings。\n【注意】structure_tree 超过 20000 节点或深度超 64 会截断并置 truncated=true；cbor2 对 tag 0/1/2/3 等有内置语义解码，wire 层形态以 structure_tree 为准。","inputSchema":{"type":"object","properties":{"cbor_in_hex":{"default":"","title":"Cbor In Hex","type":"string","description":"CBOR 字节的十六进制字符串（1B~128KB，单数据项且逐字节闭合）"}},"title":"CborDecodeRequest"},"annotations":null,"definitionHash":"44d27613d0b5a790be20099419cce93e4a3ce9adce3d224ada69dd5adf6afe6e","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cbor_encode","title":null,"description":"[structured_message] 把 JSON 载荷编码为 CBOR 字节流（RFC 8949）。\n【算法】CBOR 规范编码（RFC 8949 §4.2.1）或不定长教学编码（§3.2.2）。\n【参数】\n- json_payload：待编码的 JSON 文本（≤65536 字符），支持两类教学标记：\n  {\"$bytes\": \"<hex>\"} 渲染为 byte string（major type 2）；\n  {\"$tag\": <n>, \"value\": …} 渲染为 tagged value（major type 6）\n- canonical：True=规范形式（定长最短，map 键按长度+字节序排序）\n- prefer_indefinite：True=字符串/数组/map 用不定长编码（0x5f/0x7f/0x9f/0xbf + 0xff break）\n- coerce_integer_keys：True 时形如 \"-35\"/\"0\" 的十进制字符串键转整数键（复刻 Nitro attestation 的 protected 头 {1:-35}）\n【输出】encoded_in_hex、encoded_length、canonical、structure_tree（逐字段拆解树）、truncated、warnings。\n【注意】canonical 与 prefer_indefinite 互斥；JSON 对象键天然是字符串，需要整数键时用 coerce_integer_keys=true。","inputSchema":{"type":"object","properties":{"json_payload":{"default":"","title":"Json Payload","type":"string","description":"待编码的结构化消息 JSON 文本（≤65536 字符）。CBOR：{\"$bytes\":\"<hex>\"} 渲染 byte string、{\"$tag\":n,\"value\":…} 渲染 tagged value；DER：ASN.1 节点 DSL（一节点一主键，如 {\"sequence\":[{\"oid\":\"1.2…\"}]}，形态清单见 der_encode 工具描述）"},"canonical":{"default":true,"title":"Canonical","type":"boolean","description":"True=RFC 8949 §4.2.1 规范编码（定长最短、map 键排序）；与 prefer_indefinite 互斥"},"prefer_indefinite":{"default":false,"title":"Prefer Indefinite","type":"boolean","description":"True=不定长教学编码（字符串/数组/map 用 0x5f/0x7f/0x9f/0xbf + 0xff break）"},"coerce_integer_keys":{"default":false,"title":"Coerce Integer Keys","type":"boolean","description":"True 时形如 \"-35\"/\"0\" 的十进制字符串键渲染为 CBOR 整数键（如 Nitro protected 头 {1:-35}）"}},"description":"json_payload 中的教学标记：\n- {\"$bytes\": \"<hex>\"}        渲染为 byte string（major type 2）\n- {\"$tag\": <n>, \"value\": …}  渲染为 tagged value（major type 6）\ncoerce_integer_keys=True 时，形如 \"-35\"/\"0\" 的十进制字符串键渲染为整数键\n（复刻 Nitro attestation 的 protected 头 {1:-35} 与 pcrs map）。","title":"CborEncodeRequest"},"annotations":null,"definitionHash":"fb95f353a45452ccb785b4160da3b49192eb589bdcd3a9df434a4875976facd3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cert_parse","title":null,"description":"[cert] [x509_certificate] 解析 X.509 证书或证书链（国际 / 国密 GM SM2 双路径）。输入 PEM：单张证书，或多张证书的整链（叶子在前，合计≤32KB）。顶层字段始终描述第一张（叶子）证书：证书类型（X.509 (international) / X.509 (GM SM2)，按签名算法 OID 是否落在国密分支 1.2.156.10197 自动判定）、版本、序列号 hex、签名算法及 OID、颁发者/主体 DN（dict 与 RFC4514 串）、有效期（UTC ISO-8601）与当前状态（valid/expired/not_yet_valid，仅信息展示）、是否自签、基本约束（is_ca、path_length、basic_constraints_present）、密钥用途（key_usage 名称列表、key_usage_present）、能否签发子证书（can_sign_child）、SKI/AKI（大写冒号 hex）、SAN、扩展清单（oid/name/critical，SKI/AKI/BasicConstraints/KeyUsage/SAN 附可读值 value）、SHA-256 与 SM3 双指纹。链级字段：chain_cert_count（证书张数）、certificate_chain（逐级条目：index、证书类型、版本、主体/签发方 DN、序列号、签名算法及 OID、公钥类型/位数/曲线、有效期与状态、是否自签、基本约束与密钥用途、can_sign_child、SKI/AKI、aki_matches_next（本张 AKI 是否等于下一张 SKI，任一侧缺失为 null）、issued_by_next（本张签发方 DN 是否等于下一张主体 DN）、SAN、扩展清单、双指纹，GM 条目附 SM2 公钥两种编码）、chain_linkage（single_cert / linked_to_root / linked_open_ended / linkage_broken）。can_sign_child 判定：basicConstraints 为 CA:TRUE，且 keyUsage 存在时必须含 keyCertSign（RFC 5280 4.2.1.3；keyUsage 缺失不构成限制）。链衔接按相邻证书的签发方 DN 与下一张主体 DN 是否相等判定（结构展示，不含签名验证；逐级签名验证用 cert_verify）。GM 证书顶层额外返回主体 SM2 公钥：sm2_public_key_hex（裸坐标 X||Y，128 hex 字符）与 sm2_public_key_hex_uncompressed（未压缩点 04||X||Y，130 hex 字符，与 gmssl certparse 的 ECPoint 输出一致）。国际路径 cryptography 实现，SM2 公钥点位走 GmSSL C 库。解析失败（非法 PEM/DER）返回错误码 'Certificate parse failed'。","inputSchema":{"type":"object","properties":{"certificate_in_pem":{"default":"","title":"Certificate In Pem","type":"string","description":"证书的 PEM 文本（含 BEGIN/END CERTIFICATE 头尾）；cert_parse 与 cert_verify 均可传多张证书：第一张为待验证证书，其后的中间证书作为候选（叶子在前，合计≤32KB）"}},"title":"CertParseRequest"},"annotations":null,"definitionHash":"825a1dd86c95157fb8cc5b084ddde885b11f4c770732fc3a281ec5975087fc16","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cert_verify","title":null,"description":"[cert] [x509_certificate] 按 openssl verify 的语义验证证书链。certificate_in_pem：第一张为待验证证书，其后各张为中间证书候选（相当于 openssl verify 的 target 加 -untrusted）；ca_certificate_in_pem：信任锚集合，可放根 CA 与中间 CA 的整包（相当于 -CAfile）。链从待验证证书向信任锚逐级构建：签发方 DN、AKI/SKI（两侧都有则必须相等，不符的候选被排除）、签名可由上级公钥验证、上级具备 CA 资格（basicConstraints、keyUsage 含 keyCertSign）并满足 pathLen 约束；任一证书为自签且本身在信任锚集合中时链在自身闭合。chain_verified 汇总链构建与全部签名、CA 规则检查；time_valid 检查链上每张证书的有效期；verified = chain_verified and time_valid。失败时 reason 给出原因与失败深度 failure_depth，chain 回显已建立的路径。不做吊销、名称约束与策略检查。GM 证书（签名 OID 落在 1.2.156.10197 国密分支）逐级走 GmSSL C 的 x509_cert_verify_by_ca_cert（SM2withSM3，与 gmssl certverify CLI 同一函数），sm2_id 为签名者 ID（默认 '1234567812345678'，与 GmSSL SM2_DEFAULT_ID 同源，GM/T 0009 默认值，1~64 字节）；国际证书逐级走 cryptography 的 verify_directly_issued_by（RSA/EC/Ed25519 等）。verified=false 是成功响应（reason 区分无信任锚、签名失败、CA 资格、pathLen 与有效期），仅输入格式非法才返回错误码 'Certificate verify failed'。","inputSchema":{"type":"object","properties":{"certificate_in_pem":{"default":"","title":"Certificate In Pem","type":"string","description":"证书的 PEM 文本（含 BEGIN/END CERTIFICATE 头尾）；cert_parse 与 cert_verify 均可传多张证书：第一张为待验证证书，其后的中间证书作为候选（叶子在前，合计≤32KB）"},"ca_certificate_in_pem":{"default":"","title":"Ca Certificate In Pem","type":"string","description":"信任锚 CA 证书的 PEM 文本（含 BEGIN/END CERTIFICATE 头尾）；可传多张组成的信任锚集合（合计≤32KB）"},"sm2_id":{"default":"1234567812345678","title":"Sm2 Id","type":"string","description":"SM2 签名者 ID（仅 GM 证书验证使用；默认 '1234567812345678'，GM/T 0009 与 GmSSL 同源默认值，1~64 字节）"}},"title":"CertVerifyRequest"},"annotations":null,"definitionHash":"1d3679c9ab21970b097bc6ba606e28fc629fa18a2443814a3156878cec52f00d","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cms_enveloped_decrypt","title":null,"description":"[cms_enveloped] 解密 CMS EnvelopedData（RFC 5652 §6）/ authEnvelopedData（RFC 5083），\nBER/DER 输入均容忍。\n【算法】按消息声明还原算法：rsaesOaep 参数（hashFunc/MGF1/pSource，\nRFC 3560）重建 OAEP padding，内容算法按 OID 分派（CBC 去 PKCS#7\n填充 / GCM 取独立 mac 字段验 AEAD，长度必须等于声明的 aes-ICVlen，\nauthAttrs 存在时以 universal SET OF DER 作 AAD——RFC 5083 §3；\nEnvelopedData 下的 GCM 无定义，直接 reason 拒绝）。\n【参数】\n- cms_in_hex：信封 DER/BER 的十六进制（≤16MB）\n- recipient_private_key_in_pem：收件人 RSA 私钥 PEM（可选；不给则\n  仅做结构拆解）\n- recipient_private_key_password：私钥口令（未加密则留空）\n【输出】decrypted（bool）、reason、plain_data_in_hex、version、\nwrap/CEA（从消息声明还原）、recipients、ber_features（不定长容器/\n分段八位串/非最短长度等 BER 特征清单）、structure_tree。\n【注意】结构性解析成功即 success——解密失败落 decrypted=false +\nreason，树照常返回；AWS KMS 回包这类 BER 信封可直接喂入。","inputSchema":{"type":"object","properties":{"cms_in_hex":{"default":"","title":"Cms In Hex","type":"string","description":"CMS 信封 DER/BER 编码的十六进制字符串（≤16MB；KMS 回包这类 BER 不定长编码可直接输入）"},"recipient_private_key_in_pem":{"default":"","title":"Recipient Private Key In Pem","type":"string","description":"收件人 RSA 私钥的 PEM 文本（含 BEGIN/END 头尾）"},"recipient_private_key_password":{"default":"","title":"Recipient Private Key Password","type":"string","description":"收件人私钥的加密密码（原始字符串，未加密则留空）"}},"description":"结构性解析成功即 success（树总返回）；解密失败落 decrypted=false + reason。\npadding / 内容算法从消息声明还原，不收客户端多余输入。","title":"CmsEnvelopedDecryptRequest"},"annotations":null,"definitionHash":"15ebcebdcd24f8d293ad625f08d515a64f1077e1e1cd1a1637b737daa7e03b84","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cms_enveloped_encrypt","title":null,"description":"[cms_enveloped] 构造 CMS EnvelopedData 信封（RFC 5652 §6，KeyTransRecipientInfo）。\n【算法】密钥封装 RSAES-OAEP（RFC 8017 / RFC 3560 参数：hashFunc +\nMGF1 同哈希 + 空 pSource）或 RSAES-PKCS1-v1_5；内容加密 AES-128/256-CBC\n（RFC 3565，PKCS#7 填充）或 AES-128/256-GCM（RFC 5084 只为\nauthEnvelopedData 定义 GCM：RFC 5083 形态，version 恒 0、tag 独立\n放 mac 字段、nonce 12B、aes-ICVlen 声明在参数里）。\n【参数】\n- recipient_certificate_in_pem：收件人 RSA 证书 PEM\n- key_wrap_algorithm：RSAES_OAEP_SHA_256（默认）/ SHA_1 / SHA_224 /\n  SHA_384 / SHA_512 / RSAES_PKCS1_V1_5\n- content_encryption_algorithm：AES256_CBC（默认）/ AES128_CBC /\n  AES256_GCM / AES128_GCM\n- plain_data_in_hex：明文（1B~16MB）\n【输出】cms_in_hex（DER 定长编码）、version、wrap/CEA 的 OID、\nrecipients 摘要（rid 类型/SKI 或 issuer+serial）、der_note、\nstructure_tree（ASN.1 TLV 拆解树）。\n【注意】CEK 与 IV 服务端 CSPRNG 生成、永不回显；证书带 SKI 扩展时\nrid=SKI、version=2（与 AWS KMS 回包同构），否则 issuerAndSerial、\nversion=0。","inputSchema":{"type":"object","properties":{"recipient_certificate_in_pem":{"default":"","title":"Recipient Certificate In Pem","type":"string","description":"收件人 RSA 证书的 PEM 文本（含 BEGIN/END CERTIFICATE 头尾）"},"key_wrap_algorithm":{"default":"RSAES_OAEP_SHA_256","title":"Key Wrap Algorithm","type":"string","enum":["RSAES_OAEP_SHA_256","RSAES_OAEP_SHA_1","RSAES_OAEP_SHA_224","RSAES_OAEP_SHA_384","RSAES_OAEP_SHA_512","RSAES_PKCS1_V1_5"],"description":"密钥封装算法，可选值：RSAES_OAEP_SHA_256 / RSAES_OAEP_SHA_1 / RSAES_OAEP_SHA_224 / RSAES_OAEP_SHA_384 / RSAES_OAEP_SHA_512 / RSAES_PKCS1_V1_5"},"content_encryption_algorithm":{"default":"AES256_CBC","title":"Content Encryption Algorithm","type":"string","enum":["AES256_CBC","AES128_CBC","AES256_GCM","AES128_GCM"],"description":"内容加密算法，可选值：AES256_CBC / AES128_CBC（RFC 3565）/ AES256_GCM / AES128_GCM（RFC 5084，产出 authEnvelopedData 形态 RFC 5083）"},"plain_data_in_hex":{"default":"","title":"Plain Data In Hex","type":"string","description":"明文的十六进制字符串"}},"title":"CmsEnvelopedEncryptRequest"},"annotations":null,"definitionHash":"36d1f3701a14348f40b404f68fb3768aed68d074c39249b07cdfdbe03619e00e","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cose_sign1_parse","title":null,"description":"[cose_sign1] 纯拆解 COSE_Sign1 消息，不验签（RFC 9052 §4.2）。\n【算法】CBOR 四元素数组 [protected, unprotected, payload, signature]\n逐字段拆解；protected 头解码出 alg；payload 尝试嵌套 CBOR 解码。\n【参数】\n- cose_sign1_in_hex：COSE_Sign1 消息（≤128KB，hex）\n【输出】protected_in_hex、protected_header、unprotected_header、\npayload_in_hex、payload_json、payload_decoded、signature_raw_in_hex、\nsignature_format_note（裸 r||s 语义说明）、structure_tree。\n【注意】structure_tree 与 cbor_decode 同构（offset/major_type/length_form/ \nrfc_note），四元素数组在树中可见 [protected, {}, payload, sig] 布局。","inputSchema":{"type":"object","properties":{"cose_sign1_in_hex":{"default":"","title":"Cose Sign1 In Hex","type":"string","description":"COSE_Sign1 消息的十六进制字符串（≤128KB，4 元素数组）"}},"title":"CoseSign1ParseRequest"},"annotations":null,"definitionHash":"27175b6f15dd29c163736ab6210fc58f592221bd1653459d43c721355d0532d1","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cose_sign1_sign","title":null,"description":"[cose_sign1] 构造并签名 COSE_Sign1 消息（RFC 9052 §4.2，算法 RFC 9053）。\n【算法】ES256(-7, P-256+SHA-256) / ES384(-35, P-384+SHA-384) /\nES512(-36, P-521+SHA-512) / EdDSA(-8, Ed25519)。ES 系签名为裸 r||s\n（坐标左补零到曲线宽度，ES512 坐标 66 字节、r||s 共 132 字节）。\n【参数】\n- algorithm：ES256 / ES384 / ES512 / EdDSA\n- ecc_private_key_in_pem：EC 或 Ed25519 私钥 PEM（须与算法曲线匹配）\n- ecc_private_key_password：私钥口令（未加密则留空）\n- payload_in_hex：待签 payload（1B~256KB）\n- external_aad_in_hex：外部 AAD（可选，默认空串）\n【输出】cose_sign1_in_hex（完整 COSE_Sign1）、protected_in_hex、\nsig_structure_in_hex（Sig_structure 待签字节，RFC 9052 §4.4，可直送\nopenssl dgst 交叉）、signature_raw_in_hex（裸 r||s）、\nsignature_der_in_hex / r_in_hex / s_in_hex（EdDSA 无此形态）、structure_tree。\n【注意】签名真正覆盖的是 Sig_structure = [\"Signature1\", protected, \nexternal_aad, payload] 的规范编码，不是 payload 本身。","inputSchema":{"type":"object","properties":{"algorithm":{"default":"ES384","title":"Algorithm","type":"string","enum":["ES256","ES384","ES512","EdDSA"],"description":"密码算法名称（具体可选值因工具而异，见工具描述）"},"ecc_private_key_in_pem":{"default":"","title":"Ecc Private Key In Pem","type":"string","description":"ECC 私钥的 PEM 文本（含 BEGIN/END 头尾的 Base64 编码文本）"},"ecc_private_key_password":{"default":"","title":"Ecc Private Key Password","type":"string","description":"ECC 私钥的加密密码（原始字符串，非编码格式）"},"payload_in_hex":{"default":"","title":"Payload In Hex","type":"string","description":"COSE Sign1 待签 payload 的十六进制字符串（1B~256KB）"},"external_aad_in_hex":{"default":"","title":"External Aad In Hex","type":"string","description":"外部 AAD 的十六进制字符串（可选；参与 Sig_structure 但不出现在消息里）"},"detached":{"default":false,"title":"Detached","type":"boolean","description":"True 时载荷带外（COSE payload 置 null / CMS eContent 缺省），验签必须提供外部内容；默认 False"}},"title":"CoseSign1SignRequest"},"annotations":null,"definitionHash":"5c346785fdd6e454986ec8ac31eaa7510e80b4b5e8023b77f025571dd695738a","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"cose_sign1_verify","title":null,"description":"[cose_sign1] 验证 COSE_Sign1 签名（RFC 9052 §4.4 Sig_structure 重构验签）。\n【算法】按 protected 头 alg 声明分派：-7/-35/-36（ES，裸 r||s → DER）\n与 -8（Ed25519）。\n【参数】\n- cose_sign1_in_hex：COSE_Sign1 消息（≤128KB，hex）\n- ecc_public_key_in_pem：验签公钥 PEM。留空时从 payload 的 certificate\n  字段提取公钥（复刻 KMS 验 Nitro attestation 文档方式）\n- external_aad_in_hex：与签名时一致的外部 AAD（可选）\n【输出】verified（bool）、reason、key_source（provided_pem 或 \npayload_certificate）、protected_header、payload_in_hex、payload_json、\npayload_certificate_in_pem、sig_structure_in_hex、structure_tree。\n【注意】verified=false 是成功响应（附 reason）；仅消息无法解析为\n4 元素 COSE_Sign1 数组才返回错误码。","inputSchema":{"type":"object","properties":{"cose_sign1_in_hex":{"default":"","title":"Cose Sign1 In Hex","type":"string","description":"COSE_Sign1 消息的十六进制字符串（≤128KB，4 元素数组）"},"ecc_public_key_in_pem":{"default":"","title":"Ecc Public Key In Pem","type":"string","description":"ECC 公钥的 PEM 文本（含 BEGIN/END 头尾的 Base64 编码文本）"},"external_aad_in_hex":{"default":"","title":"External Aad In Hex","type":"string","description":"外部 AAD 的十六进制字符串（可选；参与 Sig_structure 但不出现在消息里）"},"detached_payload_in_hex":{"default":"","title":"Detached Payload In Hex","type":"string","description":"detached 消息的外部载荷十六进制字符串（消息 payload 为 null 时验签必填，1B~256KB）"}},"description":"ecc_public_key_in_pem 留空时从 payload 的 certificate 字段提取公钥\n（复刻 KMS 验 Nitro attestation 文档的方式）；key_source 回显实际来源。\n验签失败是 success + verified=false + reason（cert_verify 先例），\n仅消息本身无法解析为 COSE_Sign1 数组才返回错误码。","title":"CoseSign1VerifyRequest"},"annotations":null,"definitionHash":"c7c6c886d03331d6eb1dcefa41608560872447b06dea807124602808216c67d3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"ctr_cipher","title":null,"description":"[symmetric_cipher] [symmetric_cipher] CTR 计数器模式加解密（AES-256-CTR / SM4-CTR）。CTR 是把块密码转成密钥流的模式：加解密为同一操作（密钥流 XOR），无填充，密文长度与明文等长，任意长度输入（1B ~ 16MB）。algorithm 可选 AES256CTR（key 32B，cryptography 实现）或 SM4CTR（key 16B，GmSSL C 库实现，与 eet 的 sm4-ctr 同源）。iv_in_hex 为 16 字节初始计数器块（32 hex 字符），同 key/iv 下加解密互为逆操作。注意：CTR 不提供认证（无 MAC/tag）——需要防篡改时优先用 stream_cipher 的 AEAD 模式（AES-GCM/ChaCha20-Poly1305/SM4-GCM），CTR 仅适合已有独立认证层或互操作对数场景。返回字段：output_data_in_hex、output_length、output_sha256、algorithm。","inputSchema":{"type":"object","properties":{"input_data_in_hex":{"default":"","title":"Input Data In Hex","type":"string","description":"输入数据的十六进制字符串（加密时为明文，解密时为密文，1B~16MB）"},"key_in_hex":{"default":"","title":"Key In Hex","type":"string","description":"密钥的十六进制字符串。长度取决于算法：AES256=64 字符(32B)，AES128/SM4=32 字符(16B)"},"iv_in_hex":{"default":"","title":"Iv In Hex","type":"string","description":"初始向量的十六进制字符串，固定 32 个 hex 字符（16 字节）"},"algorithm":{"default":"AES256CTR","title":"Algorithm","type":"string","enum":["AES256CTR","SM4CTR"],"description":"密码算法名称（具体可选值因工具而异，见工具描述）"}},"title":"CtrCipherRequest"},"annotations":null,"definitionHash":"438e22e945d5966e7831a6828572d0d285cec01cd0076b264962c2e0522a6790","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"data_padding","title":null,"description":"[symmetric_cipher] PKCS7 填充/去填充工具。\n【参数】\n- padding_action：DoPadding（填充到 16 字节对齐）或 UnPadding（去填充）\n- data_in_hex：待处理数据 Hex\n【输出】output_data_in_hex、output_length。\n【说明】块大小固定 16 字节（AES/SM4 块大小）。通常无需单独调用此工具，block_cipher 内部已自动处理填充。","inputSchema":{"type":"object","properties":{"data_in_hex":{"title":"Data In Hex","type":"string","description":"数据的十六进制字符串。RAW 模式为消息原文 Hex，DIGEST 模式为哈希摘要 Hex"},"padding_action":{"default":"DoPadding","title":"Padding Action","type":"string","enum":["DoPadding","UnPadding"],"description":"填充操作，可选值：DoPadding（填充到 16 字节对齐）/ UnPadding（去填充）"}},"required":["data_in_hex"],"title":"DataPaddingRequest"},"annotations":null,"definitionHash":"e18573f039d7ba5870fad995348fb7ed592d9eeac2c8c5c6dad7a694bc102f87","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"ecc_key_exchange","title":null,"description":"[ecc] ECDH + HKDF 密钥协商，双方各用私钥+对方公钥派生相同对称密钥。\n【参数】\n- alice_ecc_private_key_in_pem：己方私钥 PEM\n- bob_ecc_public_key_in_pem：对方公钥 PEM\n- hash_algorithm：HKDF 底层哈希（Sha256/Sha384/Sha512 等，不支持 Sm3）\n- salt：HKDF salt Hex（可选）\n- additional_info：HKDF info Hex（可选）\n- derived_key_length：派生密钥长度 16~1024 字节\n- alice_ecc_private_key_password：若私钥加密则传入\n【输出】derived_key_in_hex、derived_key_length。\n【曲线限制】Ed25519 不可用，X25519 可用。","inputSchema":{"type":"object","properties":{"alice_ecc_private_key_in_pem":{"default":"","title":"Alice Ecc Private Key In Pem","type":"string","description":"Alice 侧 ECC 私钥的 PEM 文本"},"alice_ecc_private_key_password":{"default":"","title":"Alice Ecc Private Key Password","type":"string","description":"Alice 侧 ECC 私钥的加密密码（原始字符串，非编码格式）"},"bob_ecc_public_key_in_pem":{"default":"","title":"Bob Ecc Public Key In Pem","type":"string","description":"Bob 侧 ECC 公钥的 PEM 文本"},"hash_algorithm":{"default":"Sha512","title":"Hash Algorithm","type":"string","enum":["Sha1","Sha224","Sha256","Sha384","Sha512"],"description":"哈希算法名称，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512（ECC 不支持 Sm3）"},"salt":{"default":"e5af86e7a081e5ada6e4babae38090436970686572485542e38091","title":"Salt","type":"string","description":"HKDF salt 的十六进制字符串（可选）"},"additional_info":{"default":"536572696f75732043727970746f6772617068790a20202020437265617469766520536f6c7574696f6e730a202020204d617070696e67204469676974616c205472757374","title":"Additional Info","type":"string","description":"HKDF info 的十六进制字符串（可选）"},"derived_key_length":{"default":32,"title":"Derived Key Length","type":"integer","description":"HKDF/KDF 派生密钥长度（整数，16~1024 字节；KDF Pbkdf2Sm3 上限 256）"}},"title":"EccKeyExchangeRequest"},"annotations":null,"definitionHash":"fa93018678ee5548f925a3452318fdd00f52b9bd25ea2846d2db65751a50fe1c","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"ecc_key_sign","title":null,"description":"[ecc] ECC 私钥签名（SECP* 用 ECDSA，ED25519 用 EdDSA）。\n【参数】\n- ecc_private_key_in_pem：PEM 私钥\n- data_in_hex：待签数据 Hex\n- sign_raw_data_mode：True=对原文签名（内部先哈希），False=data_in_hex 已是摘要\n- hash_algorithm：Sha256/Sha384/Sha512 等（EdDSA 忽略此参数）\n- ecc_private_key_password：若私钥加密则传入\n【输出】signature_in_hex、signature_length、curve_name。\n【曲线限制】X25519 不可用于签名。","inputSchema":{"type":"object","properties":{"data_in_hex":{"default":"","title":"Data In Hex","type":"string","description":"数据的十六进制字符串。RAW 模式为消息原文 Hex，DIGEST 模式为哈希摘要 Hex"},"sign_raw_data_mode":{"default":true,"title":"Sign Raw Data Mode","type":"boolean","description":"True=对原文签名（服务端内部先哈希），False=data_in_hex 已是哈希摘要的 Hex"},"hash_algorithm":{"default":"Sha512","title":"Hash Algorithm","type":"string","enum":["Sha1","Sha224","Sha256","Sha384","Sha512"],"description":"哈希算法名称，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512（ECC 不支持 Sm3）"},"ecc_private_key_in_pem":{"default":"","title":"Ecc Private Key In Pem","type":"string","description":"ECC 私钥的 PEM 文本（含 BEGIN/END 头尾的 Base64 编码文本）"},"ecc_private_key_password":{"default":"","title":"Ecc Private Key Password","type":"string","description":"ECC 私钥的加密密码（原始字符串，非编码格式）"}},"title":"EccSignRequest"},"annotations":null,"definitionHash":"386817e8dc7a4d0f9ab86431ad9492f2fc5e2ec0bb0cb91602b5d19bfbacf523","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"ecc_key_verify","title":null,"description":"[ecc] ECC 公钥验签（SECP* 用 ECDSA，ED25519 用 EdDSA）。\n【参数】\n- ecc_public_key_in_pem：PEM 公钥\n- data_in_hex：原始数据 Hex\n- signature_in_hex：签名 Hex\n- sign_raw_data_mode：必须与签名时一致\n- hash_algorithm：必须与签名时一致\n【输出】verified（bool，True=验签通过）、curve_name。\n【曲线限制】X25519 不可用于验签。","inputSchema":{"type":"object","properties":{"data_in_hex":{"default":"","title":"Data In Hex","type":"string","description":"数据的十六进制字符串。RAW 模式为消息原文 Hex，DIGEST 模式为哈希摘要 Hex"},"signature_in_hex":{"default":"","title":"Signature In Hex","type":"string","description":"签名的十六进制字符串"},"sign_raw_data_mode":{"default":true,"title":"Sign Raw Data Mode","type":"boolean","description":"True=对原文签名（服务端内部先哈希），False=data_in_hex 已是哈希摘要的 Hex"},"hash_algorithm":{"default":"Sha512","title":"Hash Algorithm","type":"string","enum":["Sha1","Sha224","Sha256","Sha384","Sha512"],"description":"哈希算法名称，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512（ECC 不支持 Sm3）"},"ecc_public_key_in_pem":{"default":"","title":"Ecc Public Key In Pem","type":"string","description":"ECC 公钥的 PEM 文本（含 BEGIN/END 头尾的 Base64 编码文本）"}},"title":"EccVerifyRequest"},"annotations":null,"definitionHash":"442d3968e8c526f6a04011ac90a14d6e1094ff8d6216c25d5a93c79eaaebf63f","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"generate_ecc","title":null,"description":"[ecc] 生成 ECC 密钥对。\n【曲线】ECC_SECP_256R1 / ECC_SECP_384R1 / ECC_SECP_521R1 / ECC_SECP256K1 / ECC_ED25519（仅签名）/ ECC_X25519（仅 ECDH）。\n【参数】\n- curve：曲线名\n- private_key_password：可选，私钥 PEM 加密保护\n【输出】public_key_in_pem、private_key_in_pem、curve。\n【能力矩阵】\n- SECP* / SECP256K1 → 签名 + 验签 + ECDH\n- ED25519 → 仅签名/验签（EdDSA）\n- X25519 → 仅 ECDH 密钥协商","inputSchema":{"type":"object","properties":{"curve":{"default":"ECC_SECP_256R1","title":"Curve","type":"string","enum":["ECC_SECP_256R1","ECC_SECP_384R1","ECC_SECP_521R1","ECC_SECP256K1","ECC_ED25519","ECC_X25519"],"description":"ECC 曲线名，可选值：ECC_SECP_256R1 / ECC_SECP_384R1 / ECC_SECP_521R1 / ECC_SECP256K1 / ECC_ED25519 / ECC_X25519"},"private_key_password":{"default":"","title":"Private Key Password","type":"string","description":"私钥的加密密码（原始字符串，非编码格式），可选"}},"title":"GenerateECCRequest"},"annotations":null,"definitionHash":"8a7474d793faa6143add876a327dba63ccad3ed60b3f88a1cef05e17b25567d6","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"generate_random_data","title":null,"description":"[random] 生成安全随机字节：腾讯云 KMS 随机数种子池 + 本地随机输入，经 HKDF-SHA256 派生；KMS 不可用时自动降级到本地软件种子池。data_length 指定字节数（1-128），返回 data_in_hex 十六进制字符串。返回字段：data_in_hex（随机数据 Hex 编码）、data_length（实际字节数）。","inputSchema":{"type":"object","properties":{"data_length":{"title":"Data Length","type":"integer","description":"随机数据字节数（整数，1~128）"}},"required":["data_length"],"title":"GenerateRandomDataRequest"},"annotations":null,"definitionHash":"e91121bb5ade36c381fef32ea557dc8866daa9571bbc18924755b6a2e2e648c4","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"generate_rsa","title":null,"description":"[rsa] 生成 RSA 密钥对。\n【参数】\n- key_size：2048 / 3072 / 4096（位）\n- private_key_password：可选，设置后私钥 PEM 用 AES-256-CBC 加密保护\n【输出】public_key_in_pem、private_key_in_pem、key_size。\n【后续操作】公钥用于 rsa_encryption / rsa_verify，私钥用于 rsa_decryption / rsa_sign。","inputSchema":{"type":"object","properties":{"key_size":{"default":2048,"title":"Key Size","type":"integer","enum":["2048","3072","4096"],"description":"RSA 密钥位数，可选值：2048 / 3072 / 4096"},"private_key_password":{"default":"","title":"Private Key Password","type":"string","description":"私钥的加密密码（原始字符串，非编码格式），可选"}},"title":"GenerateRSARequest"},"annotations":null,"definitionHash":"591dfacb6e8aad772156169fa4e4221ed75af43f72fb1a80443c32e3d10ec588","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"generate_sm2","title":null,"description":"[sm2] 生成 SM2（SM2P256V1 / 国密曲线）密钥对。\n【参数】\n- private_key_password：必填，私钥 PEM 加密口令（1-64 字节；私钥只有加密 PEM 一种导出形态）\n【输出】public_key_in_pem、private_key_in_pem、z_in_hex、point_x_in_hex、point_y_in_hex、public_key_in_hex、private_key_in_hex。\n【后续操作】公钥用于 sm2_encryption / sm2_verify，私钥用于 sm2_decryption / sm2_sign。","inputSchema":{"type":"object","properties":{"private_key_password":{"default":"","title":"Private Key Password","type":"string","description":"私钥的加密密码（原始字符串，非编码格式），可选"}},"title":"GenerateSM2Request"},"annotations":null,"definitionHash":"d8a735001b5555b27699179d7edd98079f1dd9e3f84c1c97f56bb682d283c76b","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"generate_sm9","title":null,"description":"[sm9_ibc] [sm9_ibc] 生成 SM9 标识密码主密钥（GM/T 0044，GmSSL C 实现）。key_kind='Sign' 生成签名主密钥（验签方持主公钥），'Enc' 生成加密主密钥（加密方持主公钥），默认 Enc。输出：master_public_key_in_pem（明文主公钥，分发给所有用户）与 master_private_key_in_pem（ENCRYPTED 口令加密主私钥，KGC 自留）。private_key_password 必填，1-32 UTF-8 字节。SM9 私钥 PEM 只有加密形态（无明文导出）。","inputSchema":{"type":"object","properties":{"key_kind":{"default":"Enc","title":"Key Kind","type":"string","enum":["Sign","Enc"],"description":"SM9 主密钥类型，可选值：Sign（签名主密钥）/ Enc（加密主密钥）"},"private_key_password":{"default":"","title":"Private Key Password","type":"string","description":"私钥的加密密码（原始字符串，非编码格式），可选"}},"title":"GenerateSM9Request"},"annotations":null,"definitionHash":"91980c6b84b5a4e163f00821cb165173b58c0c0595e7433434e39c0e192d81df","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"hash_sum","title":null,"description":"[hash_digest] 计算消息摘要（支持多算法批量计算）。\n【支持算法】Sha1 / Sha224 / Sha256 / Sha384 / Sha512 / Sm3 / Shake128 / Shake256。\n【参数】\n- plain_in_hex：明文 Hex 字符串（原始数据 1B ~ 16MB）\n- required_hash_modes：字符串数组，指定需要计算的算法列表，默认计算全部算法\n- shake_output_length：SHAKE 系列的输出字节长度（32~256，默认 64），仅在 required_hash_modes 包含 Shake128 或 Shake256 时生效\n【输出】Results 字典，每个算法对应 hash_sum_in_hex（摘要 Hex）和 hash_length（字节数）。\n【SHAKE 说明】SHAKE128/256 是 XOF（可扩展输出函数），输出长度可变，适合需要自定义长度密钥派生的场景。","inputSchema":{"type":"object","properties":{"required_hash_modes":{"default":["Sha256","Sha384","Sha512","Sha1","Sha224","Sm3","Shake128","Shake256"],"items":{"type":"string"},"title":"Required Hash Modes","type":"array","enum":["Sha1","Sha224","Sha256","Sha384","Sha512","Sm3","Shake128","Shake256"],"description":"哈希算法名称数组，指定需要计算的算法列表，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512 / Sm3 / Shake128 / Shake256（HMAC 不支持 Shake 系列）"},"plain_in_hex":{"default":"","title":"Plain In Hex","type":"string","description":"原始数据的十六进制字符串（1B~16MB，即 2~33554432 个 hex 字符）"},"shake_output_length":{"default":64,"title":"Shake Output Length","type":"integer","description":"SHAKE 系列输出字节长度（整数，32~256，默认 64）"}},"title":"HashSumRequest"},"annotations":null,"definitionHash":"3fe4fdad76f17bf04cf676fde1b5c1fd641ffbaf7716e74d7ead44d2f825f2bb","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"hello","title":null,"description":"[utility] 健康检查 / 回显接口。客户端传入 client_msg 字符串，服务端原样回显并附加 server_msg，用于验证 MCP 通道连通性。返回字段：client_msg（回显）、server_msg（服务端附加消息）。","inputSchema":{"type":"object","properties":{"client_msg":{"title":"Client Msg","type":"string","description":"任意字符串，服务端原样回显（原始字符串，非编码格式）"}},"required":["client_msg"],"title":"HelloRequest"},"annotations":null,"definitionHash":"952fcf7c1f814f27a95f47e84aa4fda5816ae7efc98b8f1da0b0e331ca52fd57","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"hmac_sum","title":null,"description":"[hash_digest] 计算 HMAC（基于哈希的消息认证码）。\n【支持算法】Sha1 / Sha224 / Sha256 / Sha384 / Sha512 / Sm3（不支持 SHAKE 系列，因 SHAKE 为 XOF 非固定长度哈希）。\n【参数】\n- key_in_hex：密钥 Hex。SHA 系按 RFC 2104 支持 16~256 字节（超块大小会先哈希）；若算法列表含 Sm3，上限为 64 字节（SM3 块大小，即 32~128 个 hex 字符）。\n- plain_in_hex：待认证数据 Hex（1B ~ 16MB）\n- required_hash_modes：字符串数组，指定 HMAC 底层哈希算法列表，默认计算全部 6 种算法\n【输出】Results 字典，每个算法对应 hmac_sum_in_hex（HMAC Hex 编码）和 hmac_length（字节数）。\n【典型用途】消息完整性验证、API 签名、密钥确认。","inputSchema":{"type":"object","properties":{"required_hash_modes":{"default":["Sha256","Sha384","Sha512","Sha1","Sha224","Sm3"],"items":{"type":"string"},"title":"Required Hash Modes","type":"array","enum":["Sha1","Sha224","Sha256","Sha384","Sha512","Sm3"],"description":"哈希算法名称数组，指定需要计算的算法列表，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512 / Sm3 / Shake128 / Shake256（HMAC 不支持 Shake 系列）"},"plain_in_hex":{"default":"","title":"Plain In Hex","type":"string","description":"原始数据的十六进制字符串（1B~16MB，即 2~33554432 个 hex 字符）"},"key_in_hex":{"default":"","title":"Key In Hex","type":"string","description":"密钥的十六进制字符串。长度取决于算法：AES256=64 字符(32B)，AES128/SM4=32 字符(16B)"}},"title":"HmacSumRequest"},"annotations":null,"definitionHash":"142bc42d30da8c2f192fa807a78fcca5e8c5b006b361e0037bb77a1eba13797c","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"hybrid_kex","title":null,"description":"[pqc_kem] 执行 X25519 + ML-KEM-768 混合密钥交换全流程演示。\n【设计灵感】参考 IETF X-Wing 草案（draft-connolly-cfrg-xwing-kem）的思路，本工具实现的是通用拼接组合器（ecdh_ss || ml_kem_ss → HKDF-SHA256），并非 X-Wing 规范本身的组合器。\n【参数】所有密钥参数均可选：\n- alice_x25519_private_key_pem / bob_x25519_private_key_pem：X25519 PEM 私钥\n- alice_ml_kem_public_key_base64 / bob_ml_kem_public_key_base64：ML-KEM-768 公钥，支持 raw 或 SPKI DER Base64\n- alice_ml_kem_secret_key_base64 / bob_ml_kem_secret_key_base64：ML-KEM-768 私钥，支持 raw 或 PKCS#8 DER Base64\n- ML-KEM 公钥和私钥必须同时提供；留空则服务端使用 CSPRNG 随机生成 raw keypair\n【流程】\n1. Alice 和 Bob 各持有 X25519 + ML-KEM-768 密钥对\n2. Alice 用 Bob 公钥做 X25519 ECDH + ML-KEM Encap\n3. Bob 用自己私钥做 X25519 ECDH + ML-KEM Decap\n4. 双方将 ecdh_ss || ml_kem_ss 通过 HKDF-SHA256 派生 32 字节最终密钥\n【输出】双方中间值 + 最终密钥 + keys_match（bool）验证一致性。\n【安全等级】组合后达到 NIST Level 3（ML-KEM-768）+ Level 1（X25519），抵抗经典和量子攻击。","inputSchema":{"type":"object","properties":{"alice_x25519_private_key_pem":{"default":"","title":"Alice X25519 Private Key Pem","type":"string","description":"Alice 侧 X25519 私钥的 PEM 文本"},"alice_x25519_public_key_pem":{"default":"","title":"Alice X25519 Public Key Pem","type":"string"},"alice_ml_kem_public_key_base64":{"default":"","title":"Alice Ml Kem Public Key Base64","type":"string","description":"Alice 侧 ML-KEM 公钥的 Base64 字符串（raw 或 SPKI DER）"},"alice_ml_kem_secret_key_base64":{"default":"","title":"Alice Ml Kem Secret Key Base64","type":"string","description":"Alice 侧 ML-KEM 私钥的 Base64 字符串（raw 或 PKCS#8 DER）"},"bob_x25519_private_key_pem":{"default":"","title":"Bob X25519 Private Key Pem","type":"string","description":"Bob 侧 X25519 私钥的 PEM 文本"},"bob_x25519_public_key_pem":{"default":"","title":"Bob X25519 Public Key Pem","type":"string"},"bob_ml_kem_public_key_base64":{"default":"","title":"Bob Ml Kem Public Key Base64","type":"string","description":"Bob 侧 ML-KEM 公钥的 Base64 字符串（raw 或 SPKI DER）"},"bob_ml_kem_secret_key_base64":{"default":"","title":"Bob Ml Kem Secret Key Base64","type":"string","description":"Bob 侧 ML-KEM 私钥的 Base64 字符串（raw 或 PKCS#8 DER）"}},"description":"X25519 + ML-KEM-768 混合密钥交换请求。\n\n所有密钥字段均可选：\n- 若留空，服务端随机生成\n- 若传入，服务端使用传入的密钥对进行协商\n\nAlice 侧字段：\n- alice_x25519_private_key_pem: Alice X25519 私钥 (PEM)\n- alice_x25519_public_key_pem:  Alice X25519 公钥 (PEM，仅展示/回填)\n- alice_ml_kem_public_key_base64: Alice ML-KEM 公钥 (raw 或 SPKI DER Base64)\n- alice_ml_kem_secret_key_base64: Alice ML-KEM 私钥 (raw 或 PKCS#8 DER Base64)\n\nBob 侧字段同理。若传入 ML-KEM key，公钥和私钥必须同时提供；响应保持 raw key Base64 以兼容演示流程。","title":"HybridKEXRequest"},"annotations":null,"definitionHash":"071250dc3148de228759f4bd7e2c3f28a16b944b20b3743edd347c8fa0a5d886","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"},{"serverName":"io.github.bowenerchen/cipherhub","endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","name":"key_derivation","title":null,"description":"[kdf] 执行密钥派生（KDF），从高熵秘密或口令派生对称密钥材料。\n【支持算法】\n- HKDF（默认）：RFC 5869 extract-then-expand，底层哈希 Sha256（默认）/ Sha384 / Sha512\n- Sm3Kdf：GB/T 32918 密钥派生，SM3(Z ∥ be32(ct))，ct 从 1 起，适合对 SM2 ECDH 共享秘密派生密钥\n- Pbkdf2Sm3：RFC 8018 PBKDF2，PRF 为 HMAC-SM3，用于口令拉伸\n【参数】（按算法适用，错配会被拒）\n- algorithm：HKDF / Sm3Kdf / Pbkdf2Sm3，默认 HKDF\n- hash_algorithm：仅 HKDF，默认 Sha256\n- input_in_hex：HKDF 的 IKM / Sm3Kdf 的共享秘密 Z，Hex（1B~16MB），与 password 二选一\n- password：仅 Pbkdf2Sm3，口令原文 utf-8（1~1024B）\n- salt_in_hex：HKDF/Pbkdf2Sm3 可选盐 Hex（≤256B）。HKDF 空=未提供（RFC 5869 补 HashLen 零）；Pbkdf2Sm3 空=服务端生成 16B 随机盐并在响应回显\n- info_in_hex：仅 HKDF，可选上下文信息 Hex（≤256B）\n- iterations：仅 Pbkdf2Sm3，10000~4000000（默认 10000；受 8s 网关约束，eet CLI 上限为 16777216，互通测试建议取 ≤100 万区间）\n- derived_key_length：派生长度，16~1024B（默认 32；Pbkdf2Sm3 上限 256B）\n【输出】derived_key_in_hex、derived_key_in_base64、salt_used_in_hex（实际使用的盐，Pbkdf2Sm3 未提供盐时回显服务端随机盐）、salt_generated、algorithm、hash_algorithm、iterations、derived_key_length、input_bytes。\n【典型用途】ECDH 共享秘密到会话密钥的收口、口令到加密密钥的拉伸、多上下文密钥隔离（HKDF info）。","inputSchema":{"type":"object","properties":{"algorithm":{"default":"HKDF","title":"Algorithm","type":"string","enum":["HKDF","Sm3Kdf","Pbkdf2Sm3"],"description":"密码算法名称（具体可选值因工具而异，见工具描述）"},"hash_algorithm":{"default":"Sha256","title":"Hash Algorithm","type":"string","enum":["Sha256","Sha384","Sha512"],"description":"哈希算法名称，可选值：Sha1 / Sha224 / Sha256 / Sha384 / Sha512（ECC 不支持 Sm3）"},"input_in_hex":{"default":"","title":"Input In Hex","type":"string","description":"输入秘密的十六进制字符串（KDF：HKDF 的 IKM / Sm3Kdf 的共享秘密 Z，1B~16MB）"},"password":{"default":"","title":"Password","type":"string","description":"密码（原始字符串，非编码格式；私钥工具为私钥加密密码，KDF Pbkdf2Sm3 为待拉伸口令）"},"salt_in_hex":{"default":"","title":"Salt In Hex","type":"string","description":"盐的十六进制字符串（KDF，可选 ≤256B；Pbkdf2Sm3 留空则服务端生成 16B 随机盐并回显）"},"info_in_hex":{"default":"","title":"Info In Hex","type":"string","description":"HKDF 上下文信息的十六进制字符串（可选，≤256B）"},"iterations":{"default":10000,"title":"Iterations","type":"integer","description":"PBKDF2 迭代次数（整数；KDF Pbkdf2Sm3 范围 10000~4000000，默认 10000）"},"derived_key_length":{"default":32,"title":"Derived Key Length","type":"integer","description":"HKDF/KDF 派生密钥长度（整数，16~1024 字节；KDF Pbkdf2Sm3 上限 256）"}},"title":"KeyDerivationRequest"},"annotations":null,"definitionHash":"05ae5fc083b0a759da732bbaff7ed5e8fe22b32bfb1036d98fd6fa34fc04bb28","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-18T23:46:24.197Z","metadataTrust":"untrusted"}],"endpoints":[{"endpointFingerprint":"66e7b4ad8dfb3670384b1179c889fc225c2240e9a92053a24dae80df456edc63","protocol":"streamable-http","status":"indexed","toolCount":50,"observedAt":"2026-11-18T23:46:24.197Z"}],"authentication":"unknown"},"connectionConfigurations":{"status":"ready","authentication":"not embedded","clients":{"Claude Desktop":{"mcpServers":{"io.github.bowenerchen/cipherhub":{"url":"https://tools.cipherhub.cloud/cipherhub/mcp"}}},"Cursor":{"mcpServers":{"io.github.bowenerchen/cipherhub":{"url":"https://tools.cipherhub.cloud/cipherhub/mcp"}}},"VS Code":{"servers":{"io.github.bowenerchen/cipherhub":{"type":"http","url":"https://tools.cipherhub.cloud/cipherhub/mcp"}}}}},"resourceType":"mcp-server","callable":true,"runtime":{"callable":true,"protocols":["mcp"]},"interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://tools.cipherhub.cloud/cipherhub/mcp"}],"profile":{"apiVersion":"1","schemaVersion":"1","id":"mcp-server:io.github.bowenerchen%2Fcipherhub","resourceType":"mcp-server","canonicalUrl":"https://www.agentsjunction.com/api/v1/servers/io.github.bowenerchen%2Fcipherhub","name":"io.github.bowenerchen/cipherhub","description":"Production-grade cryptography toolkit with 31 MCP tools for classical, PQC, and KMS workflows.","interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://tools.cipherhub.cloud/cipherhub/mcp"}],"capabilities":[],"identity":{"source":"official-registry","websiteUrl":null,"repositoryUrl":"https://github.com/bowenerchen/CipherHUB-MCP-Server","version":"1.9.4"},"verification":{"state":"official","confidence":100},"operations":{"resourceType":"mcp-server","name":"io.github.bowenerchen/cipherhub","status":"online","lastCheckedAt":"2026-11-20T04:17:50.690Z","lastSuccessfulCheck":"2026-11-20T04:17:50.690Z","latencyMs":702,"consecutiveFailures":0,"isStale":false,"checks":{"endpointReachable":true,"protocolValid":true,"agentCardValid":null,"mcpHandshakeValid":true},"lastSeen":null,"lastSuccessfulInteraction":null,"lastHealthCheck":"2026-11-20T04:17:50.690Z","source":{"type":"health-check","url":null},"observedAt":"2026-11-20T04:17:50.690Z"},"security":null,"timestamps":{"createdAt":"2026-04-30T04:18:04.882Z","updatedAt":"2026-04-30T04:18:04.882Z","observedAt":"2026-11-20T04:17:50.690Z"},"compatibility":{"serverVersion":"1.9.4","protocolVersions":[{"protocol":"mcp","version":null}]}}}}