crypto-native: fix issues detected by coiverity