diff options
Diffstat (limited to 'src/gnunet/crypto/gns_pkey.go')
-rw-r--r-- | src/gnunet/crypto/gns_pkey.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gnunet/crypto/gns_pkey.go b/src/gnunet/crypto/gns_pkey.go index e9fdfb5..13925d4 100644 --- a/src/gnunet/crypto/gns_pkey.go +++ b/src/gnunet/crypto/gns_pkey.go | |||
@@ -121,13 +121,13 @@ func (pk *PKEYPublicImpl) BlockKey(label string, expires util.AbsoluteTime) (ske | |||
121 | 121 | ||
122 | // assemble initialization vector | 122 | // assemble initialization vector |
123 | iv := &struct { | 123 | iv := &struct { |
124 | Nonce []byte `size:"4"` // 32 bit Nonce | 124 | Nonce []byte `size:"4"` // 32 bit Nonce |
125 | Expiration util.AbsoluteTime `` // Expiration time of block | 125 | Expire util.AbsoluteTime `` // Expiration time of block |
126 | Counter uint32 `order:"big"` // Block counter | 126 | Counter uint32 `order:"big"` // Block counter |
127 | }{ | 127 | }{ |
128 | Nonce: make([]byte, 4), | 128 | Nonce: make([]byte, 4), |
129 | Expiration: expires, | 129 | Expire: expires, |
130 | Counter: 1, | 130 | Counter: 1, |
131 | } | 131 | } |
132 | prk = hkdf.Extract(sha512.New, kd, []byte("gns-aes-ctx-iv")) | 132 | prk = hkdf.Extract(sha512.New, kd, []byte("gns-aes-ctx-iv")) |
133 | rdr = hkdf.Expand(sha256.New, prk, []byte(label)) | 133 | rdr = hkdf.Expand(sha256.New, prk, []byte(label)) |