Skip to content

Commit

Permalink
zuse: fix blake3 jet registration
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Dec 9, 2023
1 parent 7d01ee0 commit f1154a7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pkg/arvo/sys/zuse.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -2361,12 +2361,13 @@
=<
=< hash :: cuter API
=+ [cv=iv flags=0b0]
^? |%
^? ~% %blake3 ..output ~
|%
::
++ keyed |=(key=octs hash(cv q.key, flags f-keyedhash))
::
++ hash
~% %hash ..blake3 ~
~% %hash ..hash ~
|= [out=@ud msg=octs]
^- @ux
=/ root (root-output (turn (split-octs 13 msg) chunk-output))
Expand Down Expand Up @@ -2394,7 +2395,7 @@
[cv 0 (rep 8 ~[l r]) 64 flags]
::
++ chunk-output
~% %chunk-output ..blake3 ~
~% %chunk-output ..chunk-output ~
|= [counter=@ chunk=octs]
^- output
%+ set-flag f-chunkend
Expand All @@ -2403,6 +2404,7 @@
?: =(0 i) [cv counter q.block p.block (con flags f-chunkstart)]
[(output-cv prev) counter q.block p.block flags]
--
~% %blake3-impl ..blake3 ~
|%
::
+$ output
Expand All @@ -2414,7 +2416,7 @@
==
::
++ compress
~% %compress ..blake3 ~
~% %compress ..compress ~
|= output
^- @
|^
Expand Down Expand Up @@ -2488,6 +2490,7 @@
++ split-octs
|= [a=bloq msg=octs]
^- (list [i=@ octs])
?> ?=(@ q.msg) :: simplfy jet logic
=/ per (bex (sub a 3))
=| chunk-octs=(list [i=@ octs])
=| i=@
Expand Down

0 comments on commit f1154a7

Please sign in to comment.