use bi, call >string on c-strings from tar
parent
097ce4c6dd
commit
6913653d62
|
@ -31,8 +31,8 @@ MEMO: opad ( -- seq ) 64 HEX: 5c <array> ;
|
|||
|
||||
: init-hmac ( K -- o i )
|
||||
64 0 pad-tail
|
||||
[ opad seq-bitxor ] keep
|
||||
ipad seq-bitxor ;
|
||||
[ opad seq-bitxor ]
|
||||
[ ipad seq-bitxor ] bi ;
|
||||
|
||||
PRIVATE>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ ERROR: checksum-error header ;
|
|||
: trim-string ( seq -- newseq ) [ "\0 " member? ] trim ;
|
||||
|
||||
: read-c-string ( n -- str/f )
|
||||
read [ zero? ] trim-tail [ f ] when-empty ;
|
||||
read [ zero? ] trim-tail [ f ] when-empty >string ;
|
||||
|
||||
: read-tar-header ( -- obj )
|
||||
\ tar-header new
|
||||
|
|
Loading…
Reference in New Issue