Frees the given key and/or key info.
Before freeing, this function will zero out the key buffers to avoid leaking any confidential data.