From f3f1d2f98de26e8180c56d87aaad0e4e98fb4e47 Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Wed, 19 Jul 2017 15:40:35 -0700 Subject: Various small nits a helper functions for PAM --- crypto/key.go | 1 - 1 file changed, 1 deletion(-) (limited to 'crypto/key.go') 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) -- cgit v1.2.3