Errors are like this:
gost_pmeth.c(188): warning C4702: unreachable code
gost_grasshopper_cipher.c(909): warning C4702: unreachable code
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
return gost2015_process_unprotected_attributes(x, arg, KUZNYECHIK_MAC_MAX_SIZE, c->tag);
}
- return 1;
case EVP_CTRL_COPY: {
EVP_CIPHER_CTX *out = ptr;
return gost_kimp15(cctx->wrapped, cctx->wrap_count, NID_magma_ctr,
cctx->key+GOSTKEYLEN, NID_magma_mac, cctx->key, cctx->iv, 4, out) > 0 ? GOSTKEYLEN : 0;
}
- return 1;
}
static int kuznyechik_wrap_init(EVP_CIPHER_CTX *ctx, const unsigned char *key,
GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_BAD_ORDER);
return 0;
}
- return 0;
#endif
default:
return 0;
pctx->cipher_nid = p1;
return 1;
}
- return 1;
case EVP_PKEY_CTRL_PEER_KEY:
if (p1 == 0 || p1 == 1) /* call from EVP_PKEY_derive_set_peer */
return 1;