diff options
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/key.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/key.go b/crypto/key.go index 656e6dc..497a0ef 100644 --- a/crypto/key.go +++ b/crypto/key.go @@ -175,7 +175,6 @@ func (key *Key) resize(requestedSize int) (*Key, error) { // string allocated by C. Note that this method is unsafe as this C copy has no // locking or wiping functionality. The key shouldn't contain any `\0` bytes. func (key *Key) UnsafeToCString() unsafe.Pointer { - // Memory for the key must be moved into a C string allocated by C. size := C.size_t(key.Len()) data := C.calloc(size+1, 1) C.memcpy(data, util.Ptr(key.data), size) |