Lines Matching defs:out
17 static int ccm_cipher_internal(PROV_CCM_CTX *ctx, unsigned char *out,
266 int ossl_ccm_stream_update(void *vctx, unsigned char *out, size_t *outl,
277 if (!ccm_cipher_internal(ctx, out, outl, in, inl)) {
284 int ossl_ccm_stream_final(void *vctx, unsigned char *out, size_t *outl,
293 i = ccm_cipher_internal(ctx, out, outl, NULL, 0);
301 int ossl_ccm_cipher(void *vctx, unsigned char *out, size_t *outl, size_t outsize,
314 if (ccm_cipher_internal(ctx, out, outl, in, inl) <= 0)
333 unsigned char *out, size_t *padlen,
343 if (in == NULL || out != in || len < EVP_CCM_TLS_EXPLICIT_IV_LEN + ctx->m)
348 memcpy(out, ctx->buf, EVP_CCM_TLS_EXPLICIT_IV_LEN);
362 out += EVP_CCM_TLS_EXPLICIT_IV_LEN;
364 if (!ctx->hw->auth_encrypt(ctx, in, out, len, out + len, ctx->m))
368 if (!ctx->hw->auth_decrypt(ctx, in, out, len,
379 static int ccm_cipher_internal(PROV_CCM_CTX *ctx, unsigned char *out,
392 return ccm_tls_cipher(ctx, out, padlen, in, len);
395 if (in == NULL && out != NULL)
401 if (out == NULL) {
418 if (!hw->auth_encrypt(ctx, in, out, len, NULL, 0))
426 if (!hw->auth_decrypt(ctx, in, out, len, ctx->buf, ctx->m))