lib/rbnacl/hash/blake2b.rb in rbnacl-7.0.0 vs lib/rbnacl/hash/blake2b.rb in rbnacl-7.1.0
- old
+ new
@@ -168,17 +168,12 @@
raise(CryptoError, "Hash finalization failed!")
@digest
end
# The crypto_generichash_blake2b_state struct representation
- # ref: jedisct1/libsodium/src/libsodium/include/sodium/crypto_generichash_blake2b.h#L23
+ # ref: jedisct1/libsodium/blob/c87df74c7b5969f4/src/libsodium/include/sodium/crypto_generichash_blake2b.h#L23-L25
class State < FFI::Struct
- layout :h, [:uint64, 8],
- :t, [:uint64, 2],
- :f, [:uint64, 2],
- :buf, [:uint8, 2 * 128],
- :buflen, :size_t,
- :last_node, :uint8
+ layout :opaque, [:uint8, 384]
end
end
end
end