{"id":4853,"date":"2025-01-26T06:46:51","date_gmt":"2025-01-26T06:46:51","guid":{"rendered":"https:\/\/tarumi.co.jp\/blog\/?p=4853"},"modified":"2025-02-16T23:22:15","modified_gmt":"2025-02-16T23:22:15","slug":"%e9%9b%bb%e5%ad%90%e5%87%a6%e6%96%b9%e7%ae%8b%e5%af%be%e5%bf%9c%e8%87%aa%e4%bd%9c%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/tarumi.co.jp\/blog\/?p=4853","title":{"rendered":"\u96fb\u5b50\u51e6\u65b9\u7b8b\u5bfe\u5fdc(\u81ea\u4f5c\u30e2\u30b8\u30e5\u30fc\u30eb\u7de8)"},"content":{"rendered":"<p><a href=\"https:\/\/tarumi.co.jp\/blog\/?p=4633\">\u524d\u56de<\/a>\u3001\u300c\u5e02\u8ca9\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u7ba1\u7406\u30b5\u30fc\u30d0\u30fc\u3068\u4ea4\u4fe1\u300d\u306f\u3067\u304d\u305f\u3002<\/p>\n<p>\u81ea\u529b\u30d9\u30f3\u30c0\u30fc\u3068\u3057\u3066\u306f\u3001\u3057\u304b\u3057\u3001\u96fb\u5b50\u51e6\u65b9\u7b8b\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u81ea\u4f5c\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3042\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u6216\u308b\u96fb\u5b50\u30ab\u30eb\u30c6\u30e1\u30fc\u30ab\u30fc\u306b\u3001\u554f\u3044\u5408\u308f\u305b\u308b\u3068<\/p>\n<blockquote><p>\u96fb\u5b50\u51e6\u65b9\u7b8b\u306e\u53d6\u308a\u6271\u3044\u306b\u306f\u3001\u96fb\u5b50\u7f72\u540d\u3001IC\u30ab\u30fc\u30c9\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u7b49\u306e\u6280\u8853\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001 \u304b\u306a\u308a\u30cf\u30fc\u30c9\u30eb\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u81ea\u5206\u3067\u3067\u304d\u308b\u7bc4\u56f2\u5185\u306e\u3053\u3068\u3092\u3001\u3084\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n<hr \/>\n<h5>\u76ee\u6a19<\/h5>\n<ul>\n<li>ES\u578b\u5f0f\u306e\u7f72\u540d\u4ed8\u304d\u533b\u5e2b\u51e6\u65b9\u7b8b\u767a\u884c\u3092\u76ee\u6307\u3059\u3002\u8abf\u5264\u51e6\u65b9\u7b8b\u3068\u304b\u3001ES-XL\u3068\u304b\u306f\u4e00\u5207\u89e6\u3089\u306a\u3044\u3002<\/li>\n<\/ul>\n<h5>\u4f7f\u7528\u8a00\u8a9e<\/h5>\n<ul>\n<li>C#\uff1aBase64\u30a8\u30f3\u30b3\u30fc\u30c9\u3001exc-c14n\u6b63\u898f\u5316\u3001SHA256hash\u8a08\u7b97\u306f\u3067\u304d\u305d\u3046\u3002<\/li>\n<\/ul>\n<h5 id=\"high-levelapis_vs_apdu_handling\" class=\"sectionedit11\">\u96fb\u5b50\u7f72\u540d\u3001IC\u30ab\u30fc\u30c9\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/h5>\n<h6 class=\"sectionedit11\">APDU Handling<\/h6>\n<ul>\n<li class=\"level1\">\n<div class=\"li\"><a class=\"urlextern\" title=\"https:\/\/qiita.com\/gebo\/items\/5e58babe8123d48603d6\" href=\"https:\/\/qiita.com\/gebo\/items\/5e58babe8123d48603d6\" rel=\"ugc nofollow\">HPKI\u30ab\u30fc\u30c9\u3067\u7f72\u540d\u3057\u3066\u307f\u308b<\/a><span style=\"font-size: 14px; letter-spacing: 0px;\"> \u306f\u3001APDU\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u30ab\u30fc\u30c9\u306b\u9001\u308a\u8fbc\u3093\u3067\u3044\u308b\u3002\u3053\u306e\u624b\u6cd5\u306f\u5927\u90e8\u3067\u3042\u308b\u3057\u3001\u3082\u3063\u3068\u30aa\u30b5\u30ec\u306a\u65b9\u6cd5\u306f\u306a\u3044\u306e\u304b\uff1f\u3068\u8abf\u67fb\u3057\u305f\u3068\u3053\u308d\u3001\u3001<\/span><\/div>\n<\/li>\n<\/ul>\n<h6 id=\"high-level_api\u306e\u5b9f\u88c5\u4f8b\">High-Level API<\/h6>\n<ul>\n<li class=\"level1\">\n<div class=\"li\">\n<p>\u96fb\u5b50\u7f72\u540d\u306b\u4f7f\u3048\u308bHigh-LevelAPI\u304c\u3042\u308b\u3068\u5224\u660e\u3002<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><\/td>\n<td>PKCS#11<\/td>\n<td>CNG\/CryptoAPI<\/td>\n<\/tr>\n<tr>\n<td>Cross-Platoform<\/td>\n<td>Yes<\/td>\n<td>No(Windows-only)<\/td>\n<\/tr>\n<tr>\n<td>Direct Token Aceess<\/td>\n<td>Yes<\/td>\n<td>Indirece(via middleware)<\/td>\n<\/tr>\n<tr>\n<td>Eas of Use<\/td>\n<td>Moderate<\/td>\n<td>High<\/td>\n<\/tr>\n<tr>\n<td>Dependency<\/td>\n<td>Vendor&#8217;s PKCS#11 library<\/td>\n<td>Windows CSP\/KSP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: 14px; letter-spacing: 0px;\">\u261e\u3000HPKI\u30c9\u30e9\u30a4\u30d0\u30fc\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001PKCS#11\u3067\u3044\u304f\u3002<\/span><\/figure>\n<\/div>\n<\/li>\n<li>BouncyCastle\uff1a\u6709\u540d\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u304c\u3001\u76f4\u63a5\u30b9\u30de\u30fc\u30c8\u30ab\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u306f\u3067\u304d\u306a\u3044\u3002\u30b9\u30de\u30fc\u30c8\u30ab\u30fc\u30c9\u3092PC\u306b\u63a5\u7d9a\u3057HPKI driver\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u3001\u8a3c\u660e\u66f8\u30b9\u30c8\u30a2\u306b\u516c\u958b\u9375\u95a2\u9023\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3055\u308c\u308b\u3002\u305d\u306e\u30b9\u30c8\u30a2\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u4ed5\u69d8\u3002\u5f93\u3063\u3066\u3001\u8a3c\u660e\u66f8\u53d6\u308a\u51fa\u3057\u3068\u691c\u8a3c(\u2190\u516c\u958b\u9375\u8981\u3001\u79d8\u5bc6\u9375\u4e0d\u8981)\u306f\u53ef\u80fd\u3067\u3001\u305d\u3053\u306b\u95a2\u3057\u3066\u306fPKCS#11\u7cfb\u3067\u3084\u308b\u3088\u308a\u7f8e\u3057\u304f\u66f8\u3051\u308b\u3002<\/li>\n<li>\u4ee5\u4e0a\u3088\u308a\u3001\u7f72\u540d\u306fPKCS#11\u3067\u3001\u8a3c\u660e\u66f8\u53d6\u308a\u51fa\u3057\u3068\u691c\u8a3c\u306fBouncyCastle\u3092\u4f7f\u3046\u3002<\/li>\n<\/ul>\n<h5>xml\u306e\u4ed5\u69d8<\/h5>\n<p>\u53d6\u308a\u5bc4\u305b\u305f\u5e02\u8ca9\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u51fa\u529bxml\u3001OSN\u306b\u63b2\u8f09\u3055\u308c\u3066\u308b\u5404\u793e\u306e\u96fb\u5b50\u51e6\u65b9\u7b8bxml\u3092\u8af8\u6240\u6bd4\u8f03\u3059\u308b\u3068\u3001\u7d50\u69cb\u9055\u3044\u304c\u3042\u308b\u3002<\/p>\n<ul>\n<li>xml\u306e\u540d\u524d\u7a7a\u9593\uff1axs\u304bds\u304b\u3002<\/li>\n<\/ul>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td><\/td>\n<td>ds:<\/td>\n<td>xs:<\/td>\n<\/tr>\n<tr>\n<td>Namespace URI<\/td>\n<td><a href=\"http:\/\/www.w3.org\/2000\/09\/xmldsig#\">http:\/\/www.w3.org\/2000\/09\/xmldsig#<\/a><\/td>\n<td><a href=\"http:\/\/www.w3.org\/2000\/09\/xmldsig#\">http:\/\/www.w3.org\/2000\/09\/xmldsig#<\/a><\/td>\n<\/tr>\n<tr>\n<td>Primary Usage<\/td>\n<td>Digital signatures<\/td>\n<td>XML Schema definitions<\/td>\n<\/tr>\n<tr>\n<td>Scope<\/td>\n<td>Ensures security (signatures, keys)<\/td>\n<td>Defines structure and data types<\/td>\n<\/tr>\n<tr>\n<td>Common Context<\/td>\n<td>Security-related XML documents<\/td>\n<td>XML Schema files or validation rules<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>xs\u3092\u4f7f\u3063\u3066\u308b\u4f8b\u306e\u307b\u3046\u304c\u591a\u3044\u3088\u3046\u3060\u304c\u3001XAdES(<a href=\"https:\/\/www.w3.org\/TR\/XAdES\/#:~:text=XML%20Advanced%20Electronic%20Signatures%20(XAdES)\">XML Advanced Electronic Signatures<\/a>) \u578b\u5f0f\u306a\u3093\u3060\u304b\u3089\u3001ds\u306e\u307b\u3046\u304c\u826f\u3044\u3093\u3058\u3083\u306d\uff1f \u4ed5\u69d8\u66f8\u3082ds\u3064\u304b\u3063\u3066\u308b\u307f\u305f\u3044\u3060\u3057\u3002<\/p>\n<ul>\n<li>PrescriptionDcoument\u3092exc-c14n\u3067\u6b63\u898f\u5316\u3059\u308b\u304b\u3069\u3046\u304b\u3002<br \/>\n\u6b63\u898f\u5316\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u3088\u3046\u3067\u3001\u6b63\u898f\u5316\u3057\u306a\u3044\u4f8b\u306e\u307b\u3046\u304c\u591a\u3044\u3002<br \/>\n\u305f\u3060\u3001KeyInfo\u3068SignedProperties\u306f\u6b63\u898f\u5316\u5fc5\u9808\u306a\u306e\u3067\u3001PrescriptionDcoument\u3082\u6b63\u898f\u5316\u3059\u308b\u307b\u3046\u304c\u6574\u3046\u3068\u611f\u3058\u308b\u3002<\/li>\n<\/ul>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ul>\n<li>IssurerSerial\u3092\u3069\u3046\u3059\u308b\u304b<br \/>\n\u3044\u308c\u3066\u306a\u3044\u4f8b\u3082\u3042\u308b\u3057\u3001\u5165\u308c\u3066\u3066\u3082IssuerName\u3068SerialNumber\u3092\u5225\u3005\u306b\u8f09\u305b\u3066\u3044\u308b\u5834\u5408\u3001IssuerName\u3068SerialNumber\u3092\u304f\u3063\u3064\u3051\u308bSigningCertificateV2\u3092\u63a1\u7528\u3057\u3066\u308b\u5834\u5408\u304c\u3042\u308b\u3002<br \/>\nSigningCertificateV2\u306b\u79fb\u884c\u3059\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3046\u3002<\/li>\n<\/ul>\n<h5>\u5b8c\u6210\u3057\u305f\u3084\u3064<\/h5>\n<ul>\n<li><a href=\"https:\/\/github.com\/HPKISigner-Sharp\/HPKISigner\/releases\/tag\/v1.02\">HPKISigner.exe<\/a> &#8220;\u5165\u529bcsv\u306e\u30d1\u30b9&#8221; &#8220;\u51fa\u529bxml\u306e\u30d1\u30b9&#8221; PIN<\/li>\n<li>.net8.0\u306a\u306e\u3067win-64\u306e\u307f\u306a\u3089\u305a\u3001linux\u30fbmac\u30fbmac-arm\u3068Cross-platform(\u306e\u306f\u305a)<\/li>\n<li>\u4eca\u4e00\u3001\u5168\u304f\u81ea\u4fe1\u306a\u3044\u306e\u3067\u3001\u3044\u3064\u3067\u3082\u5e02\u8ca9\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u4ea4\u63db\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u308b\u3002<\/li>\n<li><a href=\"https:\/\/github.com\/HPKISigner-Sharp\/HPKISigner\">Github \u306b\u8f09\u305b\u307e\u3057\u305f<\/a>\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u3053\u308c\u3067\u3001\u4e00\u5b89\u5fc3\u306e\u4e00\u6b69\u624b\u524d\u3002\u3057\u304b\u3057\u3001\u809d\u5fc3\u306e<a href=\"https:\/\/www.med.or.jp\/nichiionline\/article\/011226.html\">\u672c\u756a\u30ab\u30fc\u30c9\u306f\u672a\u5165\u624b<\/a>\u3067\u3042\u308b\u3002\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>2025\/2\/18\u8ffd\u8a18<\/p>\n<p>\u30bb\u30ab\u30f3\u30c9HPKI\u306f\u300cxs:\u3092\u4f7f\u3063\u3066\u304a\u308a\u3001PrescriptionDcoument\u306f<span style=\"font-size: 14px; letter-spacing: 0px;\">exc-c14n\u3067\u6b63\u898f\u5316\u3057\u3066\u304a\u3089\u305a\u3001IssurerSerial\u306f\u52a0\u3048\u305a\u300d<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3001\u300c\u5e02\u8ca9\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u7ba1\u7406\u30b5\u30fc\u30d0\u30fc\u3068\u4ea4\u4fe1\u300d\u306f\u3067\u304d\u305f\u3002 \u81ea\u529b\u30d9\u30f3\u30c0\u30fc\u3068\u3057\u3066\u306f\u3001\u3057\u304b\u3057\u3001\u96fb\u5b50\u51e6\u65b9\u7b8b\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u81ea\u4f5c\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3042\u308b\u3002 &nbsp; \u3068\u6216\u308b\u96fb\u5b50\u30ab\u30eb\u30c6\u30e1\u30fc\u30ab\u30fc\u306b\u3001\u554f\u3044\u5408\u308f\u305b\u308b\u3068 \u96fb\u5b50\u51e6\u65b9\u7b8b\u306e\u53d6\u308a\u6271\u3044\u306b\u306f\u3001\u96fb <a class=\"read-more\" href=\"https:\/\/tarumi.co.jp\/blog\/?p=4853\">READ MORE<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-4853","post","type-post","status-publish","format-standard","hentry","category-32"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4853"}],"collection":[{"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4853"}],"version-history":[{"count":16,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4853\/revisions"}],"predecessor-version":[{"id":4980,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4853\/revisions\/4980"}],"wp:attachment":[{"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tarumi.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}