{"id":876,"date":"2017-04-07T07:42:05","date_gmt":"2017-04-07T11:42:05","guid":{"rendered":"http:\/\/www.rfdm.com\/blog\/?p=876"},"modified":"2017-04-26T22:03:48","modified_gmt":"2017-04-27T02:03:48","slug":"refactoring-and-adding-to-libdwmauth","status":"publish","type":"post","link":"https:\/\/www.rfdm.com\/blog\/?p=876","title":{"rendered":"Refactoring and adding to libDwmAuth"},"content":{"rendered":"<p>I&#8217;ve been working on some changes and additions to libDwmAuth.<\/p>\n<p>I had started a round of changes to the behind-the-scenes parts of the highest-level APIs to make managing authorized users and MitM prevention easier.  However, in the end I felt like I was following the wrong course because my first solution involved too many round trips between client and server and some significant key generation overhead since I was using ephemeral 2048-bit RSA keys.<\/p>\n<p>I&#8217;m now using ECDH for the first step.  I have a working implementation with unit tests, using Crypto++.  Unfortunately I&#8217;m still waiting for curve25519 to show up in Crypto++, but in the meantime I&#8217;m using secp256r1 despite its vulnerabilities.<\/p>\n<p>I also have a rudimentary scheme for MitM prevention that is very similar to that used by OpenSSH, and client and server authentication based on RSA keys (2048 bits at the moment).  I have a known_services file that&#8217;s similar to OpenSSH&#8217;s known_hosts, and an authorized_keys file that&#8217;s similar to the same for OpenSSH.  This allows fairly easy management on both client and server side for my applications.<\/p>\n<p>Obviously I also have a public\/private key generator application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on some changes and additions to libDwmAuth. I had started a round of changes to the behind-the-scenes parts of the highest-level APIs to make managing authorized users and MitM prevention easier. However, in the end I felt like I was following the wrong course because my first solution involved too many round &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.rfdm.com\/blog\/?p=876\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Refactoring and adding to libDwmAuth&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82,85,12],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","hentry","category-freebsd-computing","category-network-security","category-software-development"],"_links":{"self":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=876"}],"version-history":[{"count":5,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}