• sergeyu's avatar
    Simplify AuthenticationMethod type and PIN hash handling. · 3c759246
    sergeyu authored
    1 Previously AuthenticationMethod was a class. Replaced
      it with a simple enum.
    2 Removed SharedSecretHash struct and simplified the code
      that passes around PIN hash.
    3 If the host config contains PIN in plain text then now
      the host hashes it instead of using spake2_plain
      authenticator method. This means that spake2_hmac is
      always used for Me2Me even when the PIN is not hashed
      in the config.
    
    This change will make it easier to add new authentication
    methods.
    
    BUG=589698
    
    Review URL: https://codereview.chromium.org/1755273003
    
    Cr-Commit-Position: refs/heads/master@{#379365}
    3c759246
me2me_host_authenticator_factory.h 2.55 KB