started to implements the integration tests

This commit is contained in:
didier.amyot committed 2014-10-18 11:06:37 -04:00
1 parent 0186c30750
commit b52129817e
5 files changed
+110 -37

No files matched your search

+11
View File
@@ -3,6 +3,7 @@ package payload
import (
"archive/zip"
"crypto/cipher"
"crypto/rand"
"encoding/json"
"io"
)
@@ -21,6 +22,16 @@ type Payload struct {
Hash []byte
}
func GetDefaultPayload(dataSource io.Reader) *Payload {
return &Payload{
DataSource: dataSource,
Random: rand.Reader,
HashMethod: SHA512,
Block: AES256,
BlockMode: OFB,
}
}
type payloadWriter struct {
Reader io.Reader
Pipewriter io.WriteCloser