[client.keyset] renamed 'Write(io.Writer)' to 'Store(io.Writer)' and 'Read(io.Reader)' to 'Fetch(io.Reader)'

This commit is contained in:
xdrm-brackets 2018-04-21 16:10:06 +02:00
parent b5c8477582
commit 938df1b63c
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ type Set struct {
func Create(ctx *context.Context, max uint16) (*Set, error) { func Create(ctx *context.Context, max uint16) (*Set, error) {
/* (1) Fail if min+thre >= max */ /* (1) Fail if min+thre >= max */
if ctx.MinDepth()+ctx.DepthThreshold() >= max { if max < ctx.MinDepth()+ctx.DepthThreshold() {
return nil, errors.New("Maximum depth must be greater than Min+threshold (from given Context)") return nil, errors.New("Maximum depth must be greater than Min+threshold (from given Context)")
} }
@ -143,7 +143,7 @@ func (s *Set) Decrement() uint16 {
* network endianness -> big-endian * network endianness -> big-endian
* *
---------------------------------------------------------*/ ---------------------------------------------------------*/
func (s *Set) Write(writer io.Writer) error { func (s *Set) Store(writer io.Writer) error {
var err error; var err error;
@ -177,7 +177,7 @@ func (s *Set) Write(writer io.Writer) error {
* | 16 bits | hsize bits | 16 bits | * | 16 bits | hsize bits | 16 bits |
* *
---------------------------------------------------------*/ ---------------------------------------------------------*/
func (s *Set) Read(reader io.Reader) error { func (s *Set) Fetch(reader io.Reader) error {
var err error var err error
var secretLength uint16 var secretLength uint16