Skip to content
  • Nick Mathewson's avatar
    Key-pinning back-end for directory authorities. · eacbe03c
    Nick Mathewson authored
    This module implements a key-pinning mechanism to ensure that it's
    safe to use RSA keys as identitifers even as we migrate to Ed25519
    keys.  It remembers, for every Ed25519 key we've seen, what the
    associated Ed25519 key is.  This way, if we see a different Ed25519
    key with that RSA key, we'll know that there's a mismatch.
    
    We persist these entries to disk using a simple format, where each
    line has a base64-encoded RSA SHA1 hash, then a base64-endoded
    Ed25519 key.  Empty lines, misformed lines, and lines beginning with
    a # are ignored. Lines beginning with @ are reserved for future
    extensions.
    eacbe03c