lib/noise/protocol.rb in noise-ruby-0.9.4 vs lib/noise/protocol.rb in noise-ruby-0.10.0

- old
+ new

@@ -19,10 +19,11 @@ HASH = { 'BLAKE2b': Noise::Functions::Hash::Blake2b, 'BLAKE2s': Noise::Functions::Hash::Blake2s, 'SHA256': Noise::Functions::Hash::Sha256, - 'SHA512': Noise::Functions::Hash::Sha512 + 'SHA512': Noise::Functions::Hash::Sha512, + 'BLAKE3': Noise::Functions::Hash::Blake3, }.stringify_keys.freeze def self.create(name) prefix, pattern_name, dh_name, cipher_name, hash_name = name.split('_') raise Noise::Exceptions::ProtocolNameError if prefix != 'Noise'