{"id":246,"date":"2026-11-15T10:28:49","date_gmt":"2026-11-15T10:28:49","guid":{"rendered":"https:\/\/ethertrust.com\/?page_id=246"},"modified":"2026-11-15T11:07:58","modified_gmt":"2026-11-15T11:07:58","slug":"tls-se-3-05","status":"publish","type":"page","link":"https:\/\/ethertrust.com\/index.php\/tls-se-3-05\/","title":{"rendered":"TLS-SE-3.05"},"content":{"rendered":"\n<style>\n\/* Scoped to the EtherTrust technical manual so it does not alter the WordPress theme. *\/\n.ethertrust-tlsse-manual{--gold:#c89a46;--gold-light:#e6ca8d;--ink:#17212c;--muted:#5f6e79;--line:#dce2e5;--surface:#ffffff;--back:#f5f7f7;--nav:#111a24;box-sizing:border-box;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,\"Segoe UI\",Arial,sans-serif;background:var(--back);line-height:1.65;font-size:15px;}\n.ethertrust-tlsse-manual *, .ethertrust-tlsse-manual *::before,.ethertrust-tlsse-manual *::after{box-sizing:border-box}\n.ethertrust-tlsse-manual .doc-hero{background:linear-gradient(120deg,#0b1119,#17232f);color:#fff;padding:clamp(28px,5vw,72px) clamp(22px,5vw,65px);border-bottom:4px solid var(--gold)}\n.ethertrust-tlsse-manual .kicker{text-transform:uppercase;letter-spacing:.16em;font-weight:700;color:var(--gold-light);font-size:.75rem;margin:0 0 16px}\n.ethertrust-tlsse-manual .doc-hero h1{font-size:clamp(2.1rem,5vw,4.05rem);line-height:1.08;color:#fff;margin:0 0 9px;font-weight:760;letter-spacing:-.035em}\n.ethertrust-tlsse-manual .hero-subtitle{font-size:clamp(1rem,2vw,1.35rem);color:#c9d3dd;margin:0 0 22px}\n.ethertrust-tlsse-manual .hero-details{display:flex;gap:9px;flex-wrap:wrap}\n.ethertrust-tlsse-manual .hero-details span{padding:6px 11px;border:1px solid #52606d;border-radius:999px;color:#d9e0e7;font-size:.77rem;letter-spacing:.02em}\n.ethertrust-tlsse-manual .manual-layout{display:grid;grid-template-columns:minmax(220px,270px) minmax(0,1fr);max-width:1400px;margin:0 auto;gap:clamp(16px,3.3vw,46px);padding:30px clamp(14px,3vw,40px) 70px}\n.ethertrust-tlsse-manual .sidebar{min-width:0}\n.ethertrust-tlsse-manual .sidebar nav{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid var(--line);box-shadow:0 2px 12px rgba(9,23,36,.04);border-radius:12px;padding:18px 14px}\n.ethertrust-tlsse-manual .sidebar .nav-title{text-transform:uppercase;letter-spacing:.14em;color:#7c602e;font-weight:750;font-size:.72rem;margin:0 0 12px;padding:0 8px}\n.ethertrust-tlsse-manual .toc-main,.ethertrust-tlsse-manual .toc-child{display:flex;gap:9px;border-radius:6px;text-decoration:none;color:#253541;padding:6px 8px;font-size:.78rem;line-height:1.4}\n.ethertrust-tlsse-manual .toc-main{font-weight:700;margin-top:4px}\n.ethertrust-tlsse-manual .toc-child{font-size:.73rem;color:#5d6e78;padding-left:21px}\n.ethertrust-tlsse-manual .toc-main:hover,.ethertrust-tlsse-manual .toc-child:hover{background:#f6f1e6;color:#7e5c22}\n.ethertrust-tlsse-manual .toc-number{color:#ab7a2b;min-width:21px;flex-shrink:0;font-variant-numeric:tabular-nums}\n.ethertrust-tlsse-manual .doc-body{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 22px rgba(7,20,30,.04);padding:clamp(20px,3.6vw,56px)}\n.ethertrust-tlsse-manual .doc-body p{margin:0 0 14px;overflow-wrap:anywhere}\n.ethertrust-tlsse-manual .doc-body ul{margin:0 0 18px;padding-left:22px}\n.ethertrust-tlsse-manual .doc-body li{margin:0 0 7px}\n.ethertrust-tlsse-manual .doc-body li p{margin:0}\n.ethertrust-tlsse-manual .manual-heading{scroll-margin-top:22px;color:#1a2731;line-height:1.25;letter-spacing:-.02em}\n.ethertrust-tlsse-manual h2.manual-heading{font-size:1.75rem;margin:44px 0 20px;padding:0 0 12px;border-bottom:2px solid #e6d0a5}\n.ethertrust-tlsse-manual h3.manual-heading{font-size:1.25rem;margin:30px 0 13px}\n.ethertrust-tlsse-manual h4.manual-heading{font-size:1.08rem;margin:24px 0 10px}\n.ethertrust-tlsse-manual h5.manual-heading{font-size:1rem;margin:17px 0 8px}\n.ethertrust-tlsse-manual h2.manual-heading:first-child{margin-top:0}\n.ethertrust-tlsse-manual .section-no{color:#b78636;margin-right:.55em;font-weight:800}\n.ethertrust-tlsse-manual .doc-body blockquote{margin:8px 0 20px 14px;border-left:3px solid #e2c48a;padding:2px 14px;background:#fcfaf5}\n.ethertrust-tlsse-manual .doc-body blockquote p{margin:5px 0}\n.ethertrust-tlsse-manual .table-scroll{overflow-x:auto;margin:22px 0 24px;border:1px solid #d8dfe3;border-radius:10px}\n.ethertrust-tlsse-manual .manual-table{border-collapse:collapse;width:100%;font-size:.83rem;margin:0;color:#1d2c37}\n.ethertrust-tlsse-manual .manual-table th{background:#17232f;color:#fff;text-align:left;padding:10px 12px;border-bottom:1px solid #34404d;white-space:normal;vertical-align:top}\n.ethertrust-tlsse-manual .manual-table td{border-bottom:1px solid #e3e7e9;vertical-align:top;padding:9px 12px;line-height:1.5}\n.ethertrust-tlsse-manual .manual-table tr:nth-child(even) td{background:#f9fafb}\n.ethertrust-tlsse-manual .manual-table tbody tr:last-child td{border-bottom:0}\n.ethertrust-tlsse-manual .command-table{min-width:620px}\n.ethertrust-tlsse-manual .command-table td:first-child{width:23%;white-space:normal;min-width:150px}\n.ethertrust-tlsse-manual .command-table td:nth-child(3),.ethertrust-tlsse-manual .command-table td:nth-child(4){text-align:center}\n.ethertrust-tlsse-manual .command-table th:nth-child(3),.ethertrust-tlsse-manual .command-table th:nth-child(4){text-align:center}\n.ethertrust-tlsse-manual code,.ethertrust-tlsse-manual pre{font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;font-size:.87em}\n.ethertrust-tlsse-manual .command-table code{color:#855419;font-weight:750;font-size:.92em;overflow-wrap:anywhere}\n.ethertrust-tlsse-manual .cell-line{margin:0 0 5px!important}\n.ethertrust-tlsse-manual .shell-code{background:#111b26;color:#e9f0f5;padding:16px 18px;border-radius:9px;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:12px 0 24px;border-left:4px solid var(--gold)}\n.ethertrust-tlsse-manual .shell-code code{color:inherit;font-size:.81rem}\n.ethertrust-tlsse-manual .formula{background:#f1f5f7;color:#142a3b;border-left:3px solid #af8b51;padding:9px 13px;border-radius:4px;font-family:ui-monospace,Consolas,monospace;font-size:.82rem;white-space:pre-wrap;overflow-wrap:anywhere}\n.ethertrust-tlsse-manual .table-hint{font-size:.84rem;color:#697883}\n.ethertrust-tlsse-manual .policy-table{min-width:670px;font-size:.77rem}\n.ethertrust-tlsse-manual .policy-table th,.ethertrust-tlsse-manual .policy-table td{text-align:center;padding:8px 7px}\n.ethertrust-tlsse-manual .policy-table th:first-child,.ethertrust-tlsse-manual .policy-table td:first-child{text-align:left;font-weight:650;min-width:120px}\n.ethertrust-tlsse-manual .protocol-frame th{background:#eaf0f3;color:#243542;text-align:center}\n.ethertrust-tlsse-manual .architecture{background:#f7f9fa;padding:17px;border-radius:10px;border:1px solid #dce2e5;margin:24px 0}\n.ethertrust-tlsse-manual .architecture figcaption{font-weight:750;font-size:.83rem;text-align:center;margin-bottom:15px;color:#293b4a}\n.ethertrust-tlsse-manual .arch-policy{display:grid;grid-template-columns:1fr 1fr;gap:8px}\n.ethertrust-tlsse-manual .arch-policy span{display:block;background:#e5eaf0;border:1px solid #c9d1d7;border-radius:6px;padding:9px;text-align:center;font-size:.81rem;font-weight:600}\n.ethertrust-tlsse-manual .arch-shell{background:#1d354a;color:#fff;text-align:center;padding:11px;border-radius:6px;margin:9px 0 8px;font-weight:750}\n.ethertrust-tlsse-manual .arch-accounts{font-weight:500;font-size:.8rem;margin-left:14px;color:#dbe5ea}\n.ethertrust-tlsse-manual .arch-server{text-align:center;background:#fff4dc;border:1px solid #caa35f;border-radius:6px;padding:12px;font-weight:700}\n.ethertrust-tlsse-manual .arch-server small{color:#654821;font-weight:500}\n.ethertrust-tlsse-manual .arch-metadata{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}\n.ethertrust-tlsse-manual .arch-metadata>div{background:#fff;border:1px solid #dce2e6;border-radius:6px;padding:8px 10px}\n.ethertrust-tlsse-manual .arch-metadata strong,.ethertrust-tlsse-manual .arch-metadata small{display:block}\n.ethertrust-tlsse-manual .arch-metadata strong{font-size:.75rem}.ethertrust-tlsse-manual .arch-metadata small{font-size:.71rem;color:#60707c}\n.ethertrust-tlsse-manual .document-footer{font-size:.8rem;color:#5e6e77;margin:24px auto 0;max-width:1400px;padding:0 28px 35px;text-align:center}\n@media(max-width:960px){.ethertrust-tlsse-manual .manual-layout{grid-template-columns:1fr}.ethertrust-tlsse-manual .sidebar nav{position:static;max-height:none}.ethertrust-tlsse-manual .sidebar .toc-child{display:none}.ethertrust-tlsse-manual .sidebar .toc-main{display:inline-flex;max-width:49%;width:49%;vertical-align:top;font-size:.73rem}.ethertrust-tlsse-manual h2.manual-heading{margin-top:30px}}\n@media(max-width:550px){.ethertrust-tlsse-manual .sidebar .toc-main{display:flex;width:100%;max-width:100%}.ethertrust-tlsse-manual .arch-policy,.ethertrust-tlsse-manual .arch-metadata{grid-template-columns:1fr}.ethertrust-tlsse-manual .manual-layout{padding:12px 9px 36px}.ethertrust-tlsse-manual .doc-body{padding:17px 13px}.ethertrust-tlsse-manual .hero-details{gap:6px}.ethertrust-tlsse-manual .doc-hero{padding:30px 18px}}\n@media print{.ethertrust-tlsse-manual .sidebar{display:none}.ethertrust-tlsse-manual .manual-layout{display:block}.ethertrust-tlsse-manual .doc-body{border:none;box-shadow:none}.ethertrust-tlsse-manual .doc-hero{padding:24px}.ethertrust-tlsse-manual .table-scroll{overflow:visible}.ethertrust-tlsse-manual .command-table{min-width:0}.ethertrust-tlsse-manual h2.manual-heading{break-after:avoid}.ethertrust-tlsse-manual .manual-table tr{break-inside:avoid}}\n<\/style>\n\n\n\n<section class=\"ethertrust-tlsse-manual\" id=\"et-tlsse-manual\">\n<div class=\"manual-layout\"><aside class=\"sidebar\"><nav aria-label=\"Manual contents\"><p class=\"nav-title\">Contents<\/p><a class=\"toc-main\" href=\"#about-tls-for-secure-element-version-3.0.5\"><span class=\"toc-number\">1<\/span>About TLS for Secure Element Version 3.0.5<\/a>\n<a class=\"toc-child\" href=\"#tls-se-components\"><span class=\"toc-number\">1.1<\/span>TLS-SE Components<\/a>\n<a class=\"toc-child\" href=\"#performance\"><span class=\"toc-number\">1.2<\/span>Performance<\/a>\n<a class=\"toc-main\" href=\"#tls-se-command-line-with-openssl\"><span class=\"toc-number\">2<\/span>TLS-SE Command Line with OpenSSL<\/a>\n<a class=\"toc-main\" href=\"#command-formats\"><span class=\"toc-number\">3<\/span>Command Formats<\/a>\n<a class=\"toc-child\" href=\"#text-format\"><span class=\"toc-number\">3.1<\/span>Text Format<\/a>\n<a class=\"toc-child\" href=\"#binary-format\"><span class=\"toc-number\">3.2<\/span>Binary Format<\/a>\n<a class=\"toc-child\" href=\"#command-index-encoding\"><span class=\"toc-number\">3.3<\/span>Command Index Encoding<\/a>\n<a class=\"toc-child\" href=\"#blobs-and-wrap-secrets\"><span class=\"toc-number\">3.4<\/span>Blobs and Wrap Secrets<\/a>\n<a class=\"toc-main\" href=\"#tls-se-app-commands-version-3.05-tls_se_305.cap\"><span class=\"toc-number\">4<\/span>TLS-SE App Commands, Version 3.05 (tls_se_305.cap)<\/a>\n<a class=\"toc-main\" href=\"#special-operation-mode-som\"><span class=\"toc-number\">5<\/span>Special Operation Mode (SOM)<\/a>\n<a class=\"toc-main\" href=\"#access-policy\"><span class=\"toc-number\">6<\/span>Access Policy<\/a>\n<a class=\"toc-main\" href=\"#tls-se-application-certification-procedure-acp\"><span class=\"toc-number\">7<\/span>TLS-SE Application Certification Procedure (ACP)<\/a>\n<a class=\"toc-main\" href=\"#tls-se-session-authentication-procedure-sap\"><span class=\"toc-number\">8<\/span>TLS-SE Session Authentication Procedure (SAP)<\/a>\n<a class=\"toc-main\" href=\"#trait-command\"><span class=\"toc-number\">9<\/span>TRAIT Command<\/a>\n<a class=\"toc-main\" href=\"#tls-se-io\"><span class=\"toc-number\">10<\/span>TLS-SE-IO<\/a><\/nav><\/aside>\n<article class=\"doc-body\"><h2 class=\"manual-heading level-1\" id=\"about-tls-for-secure-element-version-3.0.5\"><span aria-hidden=\"true\" class=\"section-no\">1<\/span>About TLS for Secure Element Version 3.0.5<\/h2>\n<p>TLS-SE version 3.0.5 (TLS for Secure Element) is a Java Card 3.0.5 application designed for personal Network HSM (pNHSM) servers.<\/p>\n<figure aria-label=\"TLS-SE 3.0.5 components diagram\" class=\"architecture\">\n<figcaption>TLS-SE 3.0.5 \u2014 component overview <\/figcaption>\n<div class=\"arch-policy\"><span>Access Control Policy<\/span><span>Key Management Service (Records)<\/span><\/div>\n<div class=\"arch-shell\">Command SHELL <span class=\"arch-accounts\">root &nbsp; | &nbsp; guest<\/span><\/div>\n<div class=\"arch-server\">TLS 1.3 Server<br><small>ECDHE \u00b7 Pre-shared keys (PSK)<\/small><\/div>\n<div class=\"arch-metadata\"><div><strong>PSK identity<\/strong><small>psk_identity \/ pre-shared-key<\/small><\/div><div><strong>Server Name<\/strong><small>In ATR historical bytes (up to 15 bytes)<\/small><\/div><\/div>\n<\/figure>\n<p>TLS-SE is a hardware security module accessed through shell commands over a protected TLS 1.3 connection.<\/p>\n<p>Two accounts are available: root and guest. They use different PSK identities and pre-shared keys. The root account can enable or disable cryptographic features.<\/p>\n<p>The embedded TLS 1.3 server uses pre-shared key (PSK) authentication, a mode resistant to quantum attacks, with an Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) key exchange over the SECP256 prime curve.<\/p>\n<p>A TLS-SE app is associated with a server name stored in the ATR (Answer to Reset) historical bytes (up to 15 bytes).<\/p>\n<p>A TLS-SE app has a public\/private key pair (on the SECP256k1 curve) and a certificate.<\/p>\n<p>The Application Certification Procedure (ACP) verifies that the application is genuine.<\/p>\n<p>TLS-SE provides two kinds of cryptographic services: KEYS associated with persistent cryptographic objects and SECRETS associated with on-demand cryptographic objects.<\/p>\n<p>TLS-SE supports the following cryptographic procedures:<\/p>\n<ul>\n<li><p>RSA-2048 with PKCS #1 v1.5 signature.<\/p><\/li>\n<li><p>RSA-2048 encryption (in raw mode) and decryption.<\/p><\/li>\n<li><p>EC-256 (SECP256r1 and SECP256k1) with ECDSA signatures.<\/p><\/li>\n<li><p>AES-128 encryption and decryption.<\/p><\/li>\n<li><p>HMAC-SHA-256.<\/p><\/li>\n<li><p>HMAC-SHA-512.<\/p><\/li>\n<li><p>BIP32 with hardened keys.<\/p><\/li>\n<li><p>TLS 1.3 PSK binder and key derivation procedures.<\/p><\/li>\n<\/ul>\n<p>Two wrap secrets are available, used to compute AES128 keys. Key blobs are built using AES-CCM authenticated encryption with associated data (AEAD) and a 16-byte tag.<\/p>\n<p>TLS-SE provides four large files (up to 1,280 bytes) that can be used to store certificates and four small files (up to 64 bytes) that can be used to store messages.<\/p>\n<h3 class=\"manual-heading level-2\" id=\"tls-se-components\"><span aria-hidden=\"true\" class=\"section-no\">1.1<\/span>TLS-SE Components<\/h3>\n<h4 class=\"manual-heading level-3\" id=\"keys\"><span aria-hidden=\"true\" class=\"section-no\">1.1.1<\/span>Keys<\/h4>\n<p>Four RSA-2048 keys.<\/p>\n<p>Four EC-256 keys for the SECP256r1 (prime) and SECP256k1 curves.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"secrets\"><span aria-hidden=\"true\" class=\"section-no\">1.1.2<\/span>Secrets<\/h4>\n<p>Four secrets used for AES-128, HMAC-SHA-256, HMAC-SHA-512, and BIP32.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"wrap-secrets\"><span aria-hidden=\"true\" class=\"section-no\">1.1.3<\/span>Wrap Secrets<\/h4>\n<p>Two wrap secrets.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"exportimport-keys\"><span aria-hidden=\"true\" class=\"section-no\">1.1.4<\/span>Export\/Import Keys<\/h4>\n<p>All keys and secret values can be exported or imported as cryptographic blobs built using AES-CCM authenticated encryption with associated data (AEAD) and a 16-byte tag.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"files\"><span aria-hidden=\"true\" class=\"section-no\">1.1.5<\/span>Files<\/h4>\n<p>Four large files, up to 1,280 bytes.<\/p>\n<p>Four small files, up to 64 bytes.<\/p>\n<h3 class=\"manual-heading level-2\" id=\"performance\"><span aria-hidden=\"true\" class=\"section-no\">1.2<\/span>Performance<\/h3>\n<p>Performance is measured over an end-to-end TLS session using a local (127.0.0.1) IoSE server and a J3R180 Java Card:<\/p>\n<ul>\n<li><p>TLS 1.3 session establishment: &lt; 1,000 ms<\/p><\/li>\n<li><p>TLS 1.3 1,000-byte echo: &lt; 1,000 ms<\/p><\/li>\n<li><p>ECDSA signature: 128 ms (x8)<\/p><\/li>\n<li><p>RSA-2048 signature: 300 ms (x4)<\/p><\/li>\n<li><p>RSA-2048 encryption : 500ms (x4)<\/p><\/li>\n<li><p>HMAC-SHA-256: 75 ms (x16)<\/p><\/li>\n<li><p>HMAC-SHA-512: 100 ms (x16)<\/p><\/li>\n<li><p>AES-128: 32 ms (x32)<\/p><\/li>\n<\/ul>\n<h2 class=\"manual-heading level-1\" id=\"tls-se-command-line-with-openssl\"><span aria-hidden=\"true\" class=\"section-no\">2<\/span>TLS-SE Command Line with OpenSSL<\/h2>\n<p>Use the following command:<\/p>\n<pre class=\"shell-code\"><code>openssl s_client -tls1_3 -connect IP:PORT -servername [ SecureElementName ]\n-psk [ pre-shared-key ] -psk_identity [ psk-identity ] -groups P-256 -cipher DHE\n-ciphersuites TLS_AES_128_CCM_SHA256 -no_ticket<\/code><\/pre>\n<p>Example<\/p>\n<pre class=\"shell-code\"><code>openssl s_client -tls1_3 -connect 127.0.0.1:8888 -servername key1.com\n-psk [REDACTED_PSK_HEX]\n-psk_identity Client_identity -groups P-256 -cipher DHE\n-ciphersuites TLS_AES_128_CCM_SHA256 -no_ticket<\/code><\/pre>\n<p>The Uniform Resource Identifier (URI) is defined as as<\/p>\n<p class=\"formula\">shells:\/\/psk_identity@sni.server:port\/path, where path is the command<\/p>\n<h2 class=\"manual-heading level-1\" id=\"command-formats\"><span aria-hidden=\"true\" class=\"section-no\">3<\/span>Command Formats<\/h2>\n<p>A request contains a three-character ASCII header and a payload, followed by carriage-return (CR) and line-feed (LF) characters.<\/p>\n<p>The payload format is text or binary.<\/p>\n<div class=\"table-scroll\"><table class=\"manual-table protocol-frame\">\n\n<thead>\n<tr class=\"header\">\n<th>Prefix: one character<\/th>\n<th>Index: two hex digits<\/th>\n<th>Payload (text or binary)<\/th>\n<th>CR<\/th>\n<th>LF<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<\/tbody>\n<\/table><\/div>\n<p>Request<\/p>\n<p>In text format, CR may be omitted in a UNIX environment. In binary format, however, if the last payload byte is 0x0D, an additional CR character MUST precede LF.<\/p>\n<p>A response contains a payload, followed by carriage-return (CR) and line-feed (LF) characters.<\/p>\n<div class=\"table-scroll\"><table class=\"manual-table protocol-frame\">\n\n<thead>\n<tr class=\"header\">\n<th>Payload (text or binary)<\/th>\n<th>CR<\/th>\n<th>LF<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<\/tbody>\n<\/table><\/div>\n<p>Response<\/p>\n<p><strong>A severe error is indicated by the TLS session closing; no response is returned<\/strong>.<\/p>\n<h3 class=\"manual-heading level-2\" id=\"text-format\"><span aria-hidden=\"true\" class=\"section-no\">3.1<\/span>Text Format<\/h3>\n<h4 class=\"manual-heading level-3\" id=\"request\"><span aria-hidden=\"true\" class=\"section-no\">3.1.1<\/span>Request<\/h4>\n<p>Prefix: 1 character; index: 2 hexadecimal digits (0123456789ABCDEF); payload (up to 1,280 characters); CR LF<\/p>\n<h4 class=\"manual-heading level-3\" id=\"response\"><span aria-hidden=\"true\" class=\"section-no\">3.1.2<\/span>Response<\/h4>\n<p>Payload (up to 1,280 characters); CR LF<\/p>\n<p>or<\/p>\n<p>ERROR CR LF<\/p>\n<h3 class=\"manual-heading level-2\" id=\"binary-format\"><span aria-hidden=\"true\" class=\"section-no\">3.2<\/span>Binary Format<\/h3>\n<h4 class=\"manual-heading level-3\" id=\"request-1\"><span aria-hidden=\"true\" class=\"section-no\">3.2.1<\/span>Request<\/h4>\n<p>Prefix: 1 character; index: 2 hexadecimal digits (0123456789ABCDEF); payload (up to 1,280 bytes); CR LF<\/p>\n<h4 class=\"manual-heading level-3\" id=\"response-1\"><span aria-hidden=\"true\" class=\"section-no\">3.2.2<\/span>Response<\/h4>\n<p>Payload (up to 1,280 bytes); CR LF<\/p>\n<p>or<\/p>\n<p>Disconnection<\/p>\n<h3 class=\"manual-heading level-2\" id=\"command-index-encoding\"><span aria-hidden=\"true\" class=\"section-no\">3.3<\/span>Command Index Encoding<\/h3>\n<p>Commands are identified by a character prefix and divided into three logical groups: administrative (Admin), cryptographic (Crypto), and read\/write (RW) commands.<\/p>\n<p>Every command is associated with an index encoded as two hexadecimal digits.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"administrative-command\"><span aria-hidden=\"true\" class=\"section-no\">3.3.1<\/span>Administrative Command<\/h4>\n<p>An Admin command uses the &lsquo;?&rsquo; prefix. It is identified by a two-hexadecimal-digit index representing an integer from 0 to 255.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"cryptographic-command\"><span aria-hidden=\"true\" class=\"section-no\">3.3.2<\/span>Cryptographic Command<\/h4>\n<p>A cryptographic command has a character prefix. Its index, called KeyIndex, comprises a key identifier (KeyId) and an algorithm identifier (AlgoId).<\/p>\n<p>KeyIndex is a byte denoted by b<sub>7<\/sub>b<sub>6<\/sub>b<sub>5<\/sub>b<sub>4<\/sub>b<sub>3<\/sub>b<sub>2<\/sub>b<sub>1<\/sub>b<sub>0<\/sub>. It is divided into three fields: Mode, AlgoId, and KeyId<\/p>\n<blockquote><p>b<sub>7<\/sub>b<sub>6<\/sub>: Mode<\/p><p>b<sub>7<\/sub>: 1 = binary command; 0 = text command.<\/p><p>b<sub>6<\/sub>: 1 = multiple input; 0 = single input.<\/p><\/blockquote>\n<p>b<sub>5<\/sub>b<sub>4<\/sub>b<sub>3<\/sub>b<sub>2<\/sub>: AlgoId<\/p>\n<blockquote><p>0000 = EC256r1 or implicit; 0100 = EC256k1; 1000 = RSA2048; 1100 = Secret;<\/p><p>1100 = BIP32.<\/p><p>When the cryptographic procedure is identified by the command prefix, AlgoId is ignored and MAY be set to zero.<\/p><\/blockquote>\n<p>b<sub>1<\/sub>b<sub>0<\/sub>: KeyId<\/p>\n<blockquote><p>Values range from 0 to 3.<\/p><\/blockquote>\n<h4 class=\"manual-heading level-3\" id=\"readwrite-command\"><span aria-hidden=\"true\" class=\"section-no\">3.3.3<\/span>Read\/Write Command<\/h4>\n<p>For an RW command, the index is a record identifier (RecId) ranging from 0 to 7.<\/p>\n<p>b<sub>2<\/sub>b<sub>1<\/sub>b<sub>0<\/sub>: RecId<\/p>\n<blockquote><p>For records 0 to 3, the maximum size is 1,280 bytes.<\/p><p>For records 3 to 7, the maximum size is 64 bytes.<\/p><\/blockquote>\n<h3 class=\"manual-heading level-2\" id=\"blobs-and-wrap-secrets\"><span aria-hidden=\"true\" class=\"section-no\">3.4<\/span>Blobs and Wrap Secrets<\/h3>\n<p>Two wrap secrets are available; both are used to compute AES-128 keys. Blobs are built using AES-CCM authenticated encryption with associated data (AEAD) and a 16-byte tag.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"blob-format\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1<\/span>Blob Format<\/h4>\n<p>A blob stores an encrypted key or secret value. Its contents are divided into seven parts: BlobType, KeyIndex, KeyParam, BlobId, BlobRnd, EncryptedValue, and Tag, as shown below.<\/p>\n<p class=\"formula\">Blob: BlobType (1B) || KeyIndex (1B) || KeyParam (1B) || BlobId (4B) || BlobRnd (12B) || EncryptedValue || Tag (16B)<\/p>\n<h5 class=\"manual-heading level-4\" id=\"blobtype\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.1<\/span>BlobType<\/h5>\n<p>BlobType identifies the blob version. It is set to zero or one for this version.<\/p>\n<p>0= WrapSecret #0; WrapSecret #1.<\/p>\n<h5 class=\"manual-heading level-4\" id=\"keyindex\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.2<\/span>KeyIndex<\/h5>\n<p>KeyIndex is the concatenation of AlgoId (4 bits) and KeyId (xy = 2 bits); the two most significant bits are set to zero.<\/p>\n<p>00 0000 xy: SECP256k1<\/p>\n<p>00 0100 xy: SECP256r1 (Prime)<\/p>\n<p>00 1000 xy: RSA2048<\/p>\n<p>00 1100 xy: Secret used for AES-128, HMAC-SHA-256, and HMAC-SHA-512<\/p>\n<p>00 1110 xy: Secret seed used for BIP32<\/p>\n<h5 class=\"manual-heading level-4\" id=\"keyparam\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.3<\/span>KeyParam<\/h5>\n<p>KeyParam identifies a subkey for a cryptographic algorithm.<\/p>\n<p>For SECP256: 0 = public key; 0x80= private key.<\/p>\n<p>For RSA2048: 0 = Modulus; 1 = PublicExponent; 2 = P; 3 = Q; 4 = DP1; 5 = DQ1; 6 = PQ.<\/p>\n<p>For Secret: KeyParam = 0.<\/p>\n<h5 class=\"manual-heading level-4\" id=\"blobrnd\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.4<\/span>BlobRnd<\/h5>\n<p>BlobRnd is a 12-byte random number generated by the TLS-SE application.<\/p>\n<h5 class=\"manual-heading level-4\" id=\"blobid\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.5<\/span>BlobID<\/h5>\n<p>BlobId is a 4-byte value set by the user of the TLS-SE application.<\/p>\n<h5 class=\"manual-heading level-4\" id=\"encryptedvalue\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.6<\/span>EncryptedValue<\/h5>\n<p>EncryptedValue is the result of AES-CCM encryption of a key value.<\/p>\n<p>The authenticated data (AD), a 19-byte field, is defined as follows:<\/p>\n<p class=\"formula\">AD = BlobType (1B) || KeyIndex (1B) || KeyParam (1B) || BlobId (4B) || BlobRnd (12B)<\/p>\n<h5 class=\"manual-heading level-4\" id=\"tag\"><span aria-hidden=\"true\" class=\"section-no\">3.4.1.7<\/span>Tag<\/h5>\n<p>Tag is the 16-byte AES-CCM tag value.<\/p>\n<h4 class=\"manual-heading level-3\" id=\"blob-computation\"><span aria-hidden=\"true\" class=\"section-no\">3.4.2<\/span>Blob Computation<\/h4>\n<p>A wrap key is computed as follows:<\/p>\n<p class=\"formula\">BlobPrefix = \u00ab\u00a0export01\u00a0\u00bb<\/p>\n<p class=\"formula\">Message (24B) = BlobPrefix (8B) || BlobId (4B) || BlobRnd (12B)<\/p>\n<p class=\"formula\">WrapKey = HMAC-SHA-256(Secret, Message)<\/p>\n<p>Secret: up to 64 bytes<\/p>\n<p>The authenticated data (AD), a 19-byte field, is defined as follows:<\/p>\n<p class=\"formula\">AD = BlobType (1B) || KeyIndex (1B) || KeyParam (1B) || BlobId (4B) || BlobRnd (12B)<\/p>\n<p>The key value is encrypted using AES-CCM with the WrapKey.<\/p>\n<p class=\"formula\">EncryptedKey = AES-CCM(WrapKey, KeyValue)<\/p>\n<h2 class=\"manual-heading level-1\" id=\"tls-se-app-commands-version-3.05-tls_se_305.cap\"><span aria-hidden=\"true\" class=\"section-no\">4<\/span>TLS-SE App Commands, Version 3.05 (tls_se_305.cap)<\/h2>\n<p class=\"table-hint\">Commands are listed as documented in TLS-SE 3.05. Index fields contain two hexadecimal digits; some operations depend on the account access policy.<\/p>\n<div class=\"table-scroll\"><table class=\"manual-table command-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Command<\/th>\n<th>Description<\/th>\n<th>G<\/th>\n<th>Policy<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\"><code>?00<\/code><\/td>\n<td class=\"\">Version = 3.05<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">5,01<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?01[text]<\/code><\/td>\n<td class=\"\">Echo text<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">5,02<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?02<\/code><\/td>\n<td class=\"\">Disconnect (invalid command)<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">always<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?05[text]<\/code><\/td>\n<td class=\"\">Set root PSK identity<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">2,04<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?06[text]<\/code><\/td>\n<td class=\"\">Set guest PSK identity<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">2,08<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?0A<\/code><\/td>\n<td class=\"\">Get AppID (a SECP256k1 public key)<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">2,10<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?0B<\/code><\/td>\n<td class=\"\">Get app certificate: ECDSA (R, S) tuple, 64 bytes (128 hex digits)<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">2,20<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?0C[64 hex digits]<\/code><\/td>\n<td class=\"\">Authenticate (32-byte random number)<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">2,40<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?0E[128 hex digits]<\/code><\/td>\n<td class=\"\">Set certificate: ECDSA (R, S) tuple, 64 bytes (128 hex digits)<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">never<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?30[128 hex digits]<\/code><\/td>\n<td class=\"\">Set secret for WrapSecret #0: up to 128 hex digits (64 bytes)<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">3,01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?31[128 hex digits]<\/code><\/td>\n<td class=\"\">Set secret for WrapSecret #1: up to 128 hex digits (64 bytes)<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">3,02<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?33[14 hex digits]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Export key (14 hex digits, 7 bytes)<\/p>\n<p class=\"cell-line\">BlobType (1B), KeyIndex (1B), KeyParam (1B), BlobId (4B)<\/p>\n<p class=\"cell-line\">Return the blob value in hexadecimal, or ERROR<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">3,04<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?34 [hex digits]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Import key<\/p>\n<p class=\"cell-line\">BlobType (1B), KeyIndex (1B), KeyParam (1B), BlobId (4B)<\/p>\n<p class=\"cell-line\">BlobRnd (12B), EncryptedValue, Tag (16B)<\/p>\n<p class=\"cell-line\">Return OK or ERROR<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">3,08<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?A0[64 hex digits]<\/code><\/td>\n<td class=\"\">Set PSK2 (used with the guest account); return the PSK2 value<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">4,01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?A1<\/code><\/td>\n<td class=\"\">Get PSK2 (used with the guest account)<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">4,04<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?A2[64 hex digits]<\/code><\/td>\n<td class=\"\">Set PSK3 for the TLS-SE Binder and Derive procedures<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">4,02<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?D0[64 hex digits]<\/code><\/td>\n<td class=\"\">Compute the Binder procedure using PSK3 and a 32-byte inputvalue<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">4,10<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?D1[64 hex digits]<\/code><\/td>\n<td class=\"\">Compute the Derive procedure using PSK3 and a 32-byte input value<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">4,20<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?D2[64 hex digits]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Compute the Derive procedure using PSK3 and a 32-byte input value<\/p>\n<p class=\"cell-line\">Request an ACK<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">4,40<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>?A5[2 hex digits]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Bit 0 (0x01): enable the guest PSK identity<\/p>\n<p class=\"cell-line\">Bit 7 (0x80): check the server name<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">never<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>?A8[2 hex digits]<\/code><\/p>\n<p class=\"cell-line\"><code>[2 hex digits]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set access policy<\/p>\n<p class=\"cell-line\">First byte: block number; second byte: block value<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">never<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>?AA<\/code><\/p>\n<p class=\"cell-line\"><code>[OldPSK,NewPSK]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set root PSK: OldPSK = 64 hex digits; NewPSK = 64 hex digits<\/p>\n<p class=\"cell-line\">Return the NewPSK value<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">never<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>?FF[hex digits]<\/code><\/td>\n<td class=\"\">Echo a hexadecimal input value<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">5,04<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>c[KeyIndex]<\/code><\/td>\n<td class=\"\">Clear Key KeyIndex= AlgoId || KeyId<\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>C[KeyIndex]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Clear Key<\/p>\n<p class=\"cell-line\">KeyIndex= AlgoId || KeyId, for AlgoId=0000 use SECP256P<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,01<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>g[KeyIndex]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Generate a key pair (SECP256P, SECP256k1, or RSA2048 only)<\/p>\n<p class=\"cell-line\">KeyIndex= AlgoId || KeyId<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,02<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>G[keyIndex]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Generate a key pair (SECP256P, SECP256k1, or RSA2048 only)<\/p>\n<p class=\"cell-line\">KeyIndex= AlgoId || KeyId, for AlgoId=0000 use SECP256P<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,02<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>*s[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[data]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Sign a value (up to 32 bytes); KeyIndex = Mode || AlgoId || KeyId<\/p>\n<p class=\"cell-line\">SECP256P, SECP256k1, and RSA2048 only<\/p>\n<p class=\"cell-line\">AlgoId may be 0000 for SECP256P and SECP256k1<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>p[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[KeyParam]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Get public key; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">SECP256P, SECP256k1, and RSA2048 only.<\/p>\n<p class=\"cell-line\">AlgoId may be 0000 for SECP256P and SECP256k1<\/p>\n<p class=\"cell-line\">For RSA2048, KeyParam is mandatory,<\/p>\n<p class=\"cell-line\">0 = Modulus; 1 = PublicExpo<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,04<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>r[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[Optional KeyParam]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Get private key; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">SECP256P, SECP256k1, and RSA2048 only<\/p>\n<p class=\"cell-line\">AlgoId may be 0000 for SECP256P and SECP256k1<\/p>\n<p class=\"cell-line\">For RSA2048, KeyParam is mandatory:<\/p>\n<p class=\"cell-line\">2 = P; 3 = Q; 4 = DP1; 4 = DQ1; 5 = PQ<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,08<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>P[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[Optional KeyParam]<\/code><\/p>\n<p class=\"cell-line\"><code>[hex digits]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set public key; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">SECP256P, SECP256k1, and RSA2048 only<\/p>\n<p class=\"cell-line\">AlgoId may be 0000 for SECP256P and SECP256k1 (65B key)<\/p>\n<p class=\"cell-line\">For RSA2048, KeyParam is mandatory:<\/p>\n<p class=\"cell-line\">0 = Modulus (256B); 1 = PublicExpo (4B)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,10<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>R[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[Optional KeyParam] [hex digits]<\/code><\/p>\n<p class=\"cell-line\"><code>X<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set private key; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">SECP256P, SECP256k1, and RSA2048 only<\/p>\n<p class=\"cell-line\">AlgoId may be 0000 for SECP256P and SECP256k1 (32B key)<\/p>\n<p class=\"cell-line\">For RSA2048, KeyParam is mandatory:<\/p>\n<p class=\"cell-line\">2 = P; 3 = Q; 4 = DP1; 4 = DQ1; 5 = PQ<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">0,20<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>t[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[hex digits]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set secret; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">Secrets only (AlgoId = 1100 or 1110)<\/p>\n<p class=\"cell-line\">Secrets are used by BIP32, HMAC-SHA-256, HMAC-SHA-512, or AES procedures<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,02<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>T[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[hex digits]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Set secret; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">BIP32 secret only; up to 64 bytes (128 hex digits)<\/p>\n<p class=\"cell-line\">AlgoId is ignored<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,02<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>b[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[Path hex digits]<\/code><\/p>\n<p class=\"cell-line\"><code>k<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Compute a BIP32 tree; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">AlgoId is ignored<\/p>\n<p class=\"cell-line\">Path is a sequence of 32-bit values with the MSB set (hardened key)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,04<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>v[KeyIndex]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">Get secret; KeyIndex = AlgoId || KeyId<\/p>\n<p class=\"cell-line\">AlgoId is ignored<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,08<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>*h[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[message]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Compute HMAC-SHA-256(secret, message)<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">0,80<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>*H[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[message]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Compute HMAC-SHA-512(secret, message)<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">0,80<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><p class=\"cell-line\"><code>m[KeyIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[message]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Compute HMAC-SHA-256(secret, message)<\/p>\n<p class=\"cell-line\">KeyIndex = KeyId, Mode and AlgoId are ignored<\/p>\n<p class=\"cell-line\">Message is text format, response is hexadecimal text<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">0,80<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>*Axy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">AES encryption; KeyIndex = Mode || AlgoId || KeyId<\/p>\n<p class=\"cell-line\">AES128(Secret, data); secret MUST be 16 bytes long<\/p>\n<p class=\"cell-line\">AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">0,40<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>*axy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">AES decryption; KeyIndex = Mode || AlgoId || KeyId<\/p>\n<p class=\"cell-line\">AES128(Secret, data); secret MUST be 16 bytes long<\/p>\n<p class=\"cell-line\">AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">0,40<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>*Exy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">RSA2048 raw private encryption;<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId, AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>*Dxy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">RSA2048 raw private decryption<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId, AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1.01<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><code>*exy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">RSA2048 raw public encryption<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId, AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1.01<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>*dxy[data]<\/code><\/td>\n<td class=\"\"><p class=\"cell-line\">RSA2048 raw public deryption<\/p>\n<p class=\"cell-line\">KeyIndex = Mode || AlgoId || KeyId, AlgoId is ignored<\/p>\n<p class=\"cell-line\">Mode = b7b6; b7 = 0\/1 (text\/binary); b6 = 0\/1 (single\/multiple)<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1.01<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\"><p class=\"cell-line\"><code>Z[RecIndex]<\/code><\/p>\n<p class=\"cell-line\"><code>[hex digits]<\/code><\/p><\/td>\n<td class=\"\"><p class=\"cell-line\">Write a value to record RecIndex<\/p>\n<p class=\"cell-line\">0&#8230;3: 1,280-byte maximum; 4&#8230;7: 64-byte maximum<\/p><\/td>\n<td class=\"\">N<\/td>\n<td class=\"\">1,10<\/td>\n<\/tr>\n<tr class=\"odd\">\n<td class=\"\"><code>Ixy<\/code><\/td>\n<td class=\"\">Read a value from record RecIndex<\/td>\n<td class=\"\">Y<\/td>\n<td class=\"\">1,20<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>* The s, h, H, A, a, E, D, e, d commands use Special <em>Operation Mode<\/em> (SOM); see the next section.<\/p>\n<p>Policy &#8211; A policy element consists of a block number (one byte) and a value (one byte) that identifies a command.<\/p>\n<h2 class=\"manual-heading level-1\" id=\"special-operation-mode-som\"><span aria-hidden=\"true\" class=\"section-no\">5<\/span>Special Operation Mode (SOM)<\/h2>\n<p>For the s, h, H, a, A, E, D, e, d commands, the KeyIndex parameter uses a dedicated format to support binary commands and\/or multiple-input (pipeline) operations.<\/p>\n<p>KeyIndex= Mode || AlgoId || KeyId<\/p>\n<p>Mode= b<sub>7<\/sub>b<sub>6<\/sub><\/p>\n<ul>\n<li><p>b<sub>7<\/sub> selects binary format instead of hexadecimal format.<\/p><\/li>\n<\/ul>\n<blockquote><p>A binary command is encoded with a three-character prefix, a binary payload, and a two-character suffix (CR, LF).<\/p><p>The response contains a binary payload and a two-character suffix (CR, LF).<\/p><p>In the event of a fatal error, the connection is closed and no data is returned.<\/p><p>An error MAY be indicated by an empty payload followed by a two-character suffix (CR, LF).<\/p><\/blockquote>\n<ul>\n<li><p>b<sub>6<\/sub> indicates a multiple-input (pipeline) command. The payload is divided into 32-byte blocks for HMAC, 16-byte blocks for AES-128, 32-byte blocks for ECDSA and RSA-2048 signatures, and 256-byte blocks for RSA-2048 encryption\/decryption. Each block is used as input to the corresponding operation.<\/p><\/li>\n<\/ul>\n<p>In summary:<\/p>\n<ul>\n<li><p>KeyIndex = 00 || AlgoId || KeyId identifies a single command using a hexadecimal payload and key KeyId.<\/p><\/li>\n<li><p>KeyIndex = 10 || AlgoId || KeyId identifies a single command using a binary payload and key KeyId.<\/p><\/li>\n<li><p>KeyIndex = 01 || AlgoId || KeyId identifies a multiple-block command using a hexadecimal payload and key KeyId. HMAC uses 32-byte blocks, AES uses 16-byte blocks, and signatures use 32-byte blocks.<\/p><\/li>\n<li><p>KeyIndex = 11 || AlgoId || KeyId identifies a multiple-block command using a binary payload and key KeyId.<\/p><\/li>\n<\/ul>\n<h2 class=\"manual-heading level-1\" id=\"access-policy\"><span aria-hidden=\"true\" class=\"section-no\">6<\/span>Access Policy<\/h2>\n<p>The root account has access to all commands.<\/p>\n<p>For the guest account, access policy is controlled by six one-byte blocks. The root account can enable or disable individual commands using the ?A8[block#][value] command.<\/p>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 0\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 0<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\">h, H, m<\/td>\n<td class=\"\">a, A<\/td>\n<td class=\"\">R, X<\/td>\n<td class=\"\">P<\/td>\n<td class=\"\">r<\/td>\n<td class=\"\">p<\/td>\n<td class=\"\">g, G<\/td>\n<td class=\"\">c, C<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0xC4<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 1\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 1<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\">I<\/td>\n<td class=\"\">Z<\/td>\n<td class=\"\">v<\/td>\n<td class=\"\">k, b<\/td>\n<td class=\"\">t, T<\/td>\n<td class=\"\">s, E,D,e,d<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0x25<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 2\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 2<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\"><\/td>\n<td class=\"\">?0C<\/td>\n<td class=\"\">?0B<\/td>\n<td class=\"\">?0A<\/td>\n<td class=\"\">?06<\/td>\n<td class=\"\">?05<\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0x70<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 3\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 3<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\">?34<\/td>\n<td class=\"\">?33<\/td>\n<td class=\"\">?31<\/td>\n<td class=\"\">?30<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0x00<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 4\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 4<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\"><\/td>\n<td class=\"\">?D2<\/td>\n<td class=\"\">?D1<\/td>\n<td class=\"\">?D0<\/td>\n<td class=\"\"><\/td>\n<td class=\"\">?A1<\/td>\n<td class=\"\">?A2<\/td>\n<td class=\"\">?A0<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0x70<\/td>\n<td class=\"\"><\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<div class=\"table-scroll\"><table aria-label=\"Access policy Block 5\" class=\"manual-table policy-table\">\n\n<thead>\n<tr class=\"header\">\n<th>Block 5<\/th>\n<th>b7<\/th>\n<th>b6<\/th>\n<th>b5<\/th>\n<th>b4<\/th>\n<th>b3<\/th>\n<th>b2<\/th>\n<th>b1<\/th>\n<th>b0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"odd\">\n<td class=\"\">cmd<\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\"><\/td>\n<td class=\"\">?FF<\/td>\n<td class=\"\">?01<\/td>\n<td class=\"\">?00<\/td>\n<\/tr>\n<tr class=\"even\">\n<td class=\"\">Default: 0x07<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">0<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<td class=\"\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h2 class=\"manual-heading level-1\" id=\"tls-se-application-certification-procedure-acp\"><span aria-hidden=\"true\" class=\"section-no\">7<\/span>TLS-SE Application Certification Procedure (ACP)<\/h2>\n<p>Upon instantiation, TLS-SE creates a public\/private key pair on the SECP256k1 elliptic curve. The <em>Application Certification Procedure<\/em> (ACP) reads the public key and writes a certificate: an ECDSA signature of the public key consisting of two 32-byte values, R and S.<\/p>\n<pre class=\"shell-code transcript\"><code>\/\/ GetID = Get Application Public Key (on the SECP256k1 elliptic curve)\n?0A\n043288117A7871F1CC92E3204D444BD9E656C2047D4FCE189F2F3F22AF01B07D2665F0C533206333E37454A8D00A2803E07BFF7356ED6AE74D94D874334A022AEF\n\/\/ Set Certificate= ECDSA CAPrivKey (SHA2(AppPubKey))= 64 bytes= R || S\n?0E 55D20B301E6E6A543B8FF2DA1F7C42371042A88A556CF4ECD0E76BF9740C51C5D0CF97412BA12B6A8640BA48A90D3B6CA18C87981D7E95E0B7D3FEDEE068D2CF\nOK<\/code><\/pre>\n<h2 class=\"manual-heading level-1\" id=\"tls-se-session-authentication-procedure-sap\"><span aria-hidden=\"true\" class=\"section-no\">8<\/span>TLS-SE Session Authentication Procedure (SAP)<\/h2>\n<p>The <em>Session Authentication Procedure<\/em> proves that the remote node knows the TLS-SE private key (TLS-SE-PrivKey) and the TLS handshake secret.<\/p>\n<pre class=\"shell-code transcript\"><code>\/\/ GetID = Application Public Key\n? 0A\n&gt;&gt;043288117A7871F1CC92E3204D444BD9E656C2047D4FCE189F2F3F22AF01B07D2665F0C533206333E37454A8D00A2803E07BFF7356ED6AE74D94D874334A022AEF\n\/\/ Get TLS-SE Certificate\n?0B\n&gt;&gt;55D20B301E6E6A543B8FF2DA1F7C42371042A88A556CF4ECD0E76BF9740C51C5D0CF97412BA12B6A8640BA48A90D3B6CA18C87981D7E95E0B7D3FEDEE068D2CF\n\/\/ Authenticated Session Procedure\n\/\/ Sign = Authenticate using a 32-byte random value\n\/\/ return ECDSA TLS-SE-PrivKey (SHA2(HandshakeSecret || Random))\n?0C 7F69B857C6C2675BC8D5238E3E8BFC4C633FB5E39DD07F4760F508084FD1B482\n&gt;&gt;304402206D2E688731C2673F977BD49B37D6CEC966323E966E34DE426D424AC5506F4A4B02203F5462E3D0AA7A1ED410ADDB29AE7C980EFC0136028FDF8533843D6A3C854ABF<\/code><\/pre>\n<h2 class=\"manual-heading level-1\" id=\"trait-command\"><span aria-hidden=\"true\" class=\"section-no\">9<\/span>TRAIT Command<\/h2>\n<p>A trait command has an extra &lsquo;<strong>.<\/strong>&lsquo; character at the beginning of the three-character prefix.<\/p>\n<p>A trait command returns a response after execution and then closes the TLS session.<\/p>\n<p>A trait command can be used with OpenSSL to print the hexadecimal response payload, as shown below:<\/p>\n<p>For Windows:<\/p>\n<p class=\"formula\">echo .command| openssl s_client -quiet other_parameters\u2026 2&gt;nul<\/p>\n<p>For Linux:<\/p>\n<p class=\"formula\">echo -ne \u00ab\u00a0.command\\r\\n\u00a0\u00bb | openssl s_client -quiet other_parameters 2&gt;\/dev\/null<\/p>\n<h2 class=\"manual-heading level-1\" id=\"tls-se-io\"><span aria-hidden=\"true\" class=\"section-no\">10<\/span>TLS-SE-IO<\/h2>\n<p>TLS-SE input\/output is an OPTIONAL feature for Internet of Things (IoT) applications.<\/p>\n<p>A TLS-SE-IO command has a &lsquo;#&rsquo; prefix.<\/p>\n<p>It is exported in cleartext in a decrypted TLS record packet, with the first three bytes set to zero (PTCOL, Version_Major, Version_Minor).<\/p>\n<p>The exported packet has the following format:<\/p>\n<p class=\"formula\">00 00 00 Length_MSB Length_LSB Output-Message TLS-Type=0x17<\/p>\n<p>The input message, ending with TLS-Type = 0x17, is encoded in one or more RECV ISO 7816 APDUs according to the IETF TLS-SE-IO draft.<\/p>\n<p>The Derive command requiring an ACK (?D2) requires the TLS-SE-IO feature. The output message is \u00ab\u00a0ASKCrLf\u00a0\u00bb, and the input message MUST be \u00ab\u00a0OKCrLf0x17\u00a0\u00bb for further processing.<\/p><\/article><\/div>\n<footer class=\"document-footer\">EtherTrust \u00b7 TLS-SE 3.05 Shell<\/footer>\n<\/section>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Contents 1About TLS for Secure Element Version 3.0.5 1.1TLS-SE Components 1.2Performance 2TLS-SE Command Line with OpenSSL 3Command Formats 3.1Text Format 3.2Binary Format 3.3Command Index Encoding 3.4Blobs and Wrap Secrets 4TLS-SE App Commands, Version 3.05 (tls_se_305.cap) 5Special Operation Mode (SOM) 6Access Policy 7TLS-SE Application Certification Procedure (ACP) 8TLS-SE Session Authentication Procedure (SAP) 9TRAIT Command 10TLS-SE-IO 1About [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-246","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":5,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/246\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/246\/revisions\/256"}],"wp:attachment":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/media?parent=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}