<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Age Encryption on Late Night Thinking</title>
    <link>https://kula.tproa.net/tags/age-encryption/</link>
    <description>Recent content in Age Encryption on Late Night Thinking</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; 2020-2025. All rights reserved.</copyright>
    <lastBuildDate>Mon, 20 Jul 2020 20:55:02 -0400</lastBuildDate><atom:link href="https://kula.tproa.net/tags/age-encryption/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HKDF Salt in Key Expansion</title>
      <link>https://kula.tproa.net/lnt/2020/07/hkdf-salt-in-key-expansion/</link>
      <pubDate>Mon, 20 Jul 2020 20:55:02 -0400</pubDate>
      
      <guid>https://kula.tproa.net/lnt/2020/07/hkdf-salt-in-key-expansion/</guid>
      <description>This weekend I made another addition to age-pkcs11, to follow best practices for HKDF key expansion from the shared secret at the core of the program. I&amp;rsquo;d been wanting to do this for a while, after reviewing some stuff I wrote about age and looking at the new V1 API there.
If you recall back in June when I went into detail on the X25519 cryptography in Age, near the end Age builds up a salt which, when combined with a label and supplied to the HKDF function ties the derived key to a specific context.</description>
    </item>
    
    <item>
      <title>X25519 Encryption in Age</title>
      <link>https://kula.tproa.net/lnt/2020/06/x25519-encryption-in-age/</link>
      <pubDate>Thu, 18 Jun 2020 20:55:34 -0400</pubDate>
      
      <guid>https://kula.tproa.net/lnt/2020/06/x25519-encryption-in-age/</guid>
      <description>I&amp;rsquo;ve been dealing a lot with the age encryption protocol lately, and had a rough idea of how the scheme worked, but I finally wanted to sit down and work it out until it actually made sense.
As background, we have two parties, a sender, someone who wants to encrypt and send a file. We denote that party as U. Second, we have the recipient, that will receive that file and be able to decrypt it.</description>
    </item>
    
    <item>
      <title>Age Encryption with PKCS11 tokens update, again</title>
      <link>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens-update-again/</link>
      <pubDate>Tue, 16 Jun 2020 21:04:34 -0400</pubDate>
      
      <guid>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens-update-again/</guid>
      <description>I came across this pull request in rage, the Rust implementation of age. There&amp;rsquo;s been some discussion of building a plugin system for age, and the rage implementer has started work for using a PIV device to store an age-compatible key. When the plugin system for age is decided, this will likely be the first implementation.
Looking at it, parts of it are remarkably similar to what I came up with, which is reassuring to me, as I was at least heading down a similar path.</description>
    </item>
    
    <item>
      <title>Age Encryption with PKCS11 tokens update</title>
      <link>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens-update/</link>
      <pubDate>Tue, 16 Jun 2020 08:31:12 -0400</pubDate>
      
      <guid>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens-update/</guid>
      <description>My code to use age encryption with a PKCS11 token has drastically improved in the past couple days. Fewer things hardcoded, although it still assumes you have a NIST P-256 curve on both sides of the exchange. But it derives a shared secret, passes that through a HKDF to make it a reliable key, and can output an age-formatted private or public key. It&amp;rsquo;s rapidly approaching rough usability.
Some TODO items remain:</description>
    </item>
    
    <item>
      <title>Age Encryption with PKCS11 tokens</title>
      <link>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens/</link>
      <pubDate>Sun, 14 Jun 2020 19:33:28 -0400</pubDate>
      
      <guid>https://kula.tproa.net/lnt/2020/06/age-encryption-with-pkcs11-tokens/</guid>
      <description>I&amp;rsquo;ve got a handful of the sub-50 Euro USB-based HSM tokens, the Smartcard-HSM 4K and the Nitrokey HSM. I&amp;rsquo;ve also started using age encryption for file encryption.
I&amp;rsquo;d like to merge the two. Using a PKCS11 token is something (reluctantly) on the age wishlist, but I got bored this weekend and decided to poke at it.
The stock AGE key, if you&amp;rsquo;re not deriving it from something like an SSH key or typing in a password, is an X25519 key, which none of my tokens support.</description>
    </item>
    
  </channel>
</rss>
