my computer will still die soon
This commit is contained in:
1 parent
e80f2601ab
commit
52a13b9cab
7 files changed
+62
-6
No files matched your search
+8
-1
@@ -8,6 +8,7 @@ import (
|
||||
"io"
|
||||
|
||||
"github.com/didiercrunch/filou/contract"
|
||||
"github.com/didiercrunch/filou/helper"
|
||||
)
|
||||
|
||||
type BlockModeStream func(block cipher.Block, iv []byte) cipher.Stream
|
||||
@@ -41,8 +42,14 @@ func GetPayload(dataSource io.Reader, acceptedContract *contract.AcceptedContrac
|
||||
if ret.HashMethod, err = GetHashByHashName(acceptedContract.Hash); err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
if ret.Block, err = GetBlockByBlockName(acceptedContract.BlockCipher); err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
if ret.BlockMode, err = GetBlockModeByName(acceptedContract.BlockCipherMode); err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
|
||||
return ret, nil
|
||||
return ret, helper.JoinErrors(errs)
|
||||
}
|
||||
|
||||
type payloadWriter struct {
|
||||
|
||||
Reference in new issue
Block a user