Home
last modified time | relevance | path

Searched refs:olen (Results 1 – 25 of 25) sorted by relevance

/openssl/providers/implementations/kdfs/
H A Dtls1_prf.c89 unsigned char *out, size_t olen);
500 if (olen > chunk) { in tls1_prf_P_hash()
507 if (olen <= chunk) { in tls1_prf_P_hash()
511 memcpy(out, Ai, olen); in tls1_prf_P_hash()
514 if (!EVP_MAC_final(ctx, out, NULL, olen)) in tls1_prf_P_hash()
519 olen -= chunk; in tls1_prf_P_hash()
552 unsigned char *out, size_t olen) in tls1_prf_alg() argument
566 if ((tmp = OPENSSL_malloc(olen)) == NULL) in tls1_prf_alg()
571 OPENSSL_clear_free(tmp, olen); in tls1_prf_alg()
574 for (i = 0; i < olen; i++) in tls1_prf_alg()
[all …]
H A Dkrb5kdf.c436 int olen; in KRB5KDF() local
438 ret = EVP_EncryptUpdate(ctx, cipherblock, &olen, in KRB5KDF()
442 cipherlen = olen; in KRB5KDF()
443 ret = EVP_EncryptFinal_ex(ctx, cipherblock, &olen); in KRB5KDF()
446 if (olen != 0) { in KRB5KDF()
/openssl/crypto/comp/
H A Dc_zlib.c35 size_t olen, unsigned char *in,
173 state->ostream.avail_out = olen; in zlib_stateful_compress_block()
178 if (state->ostream.avail_out > olen) in zlib_stateful_compress_block()
180 return (ossl_ssize_t)(olen - state->ostream.avail_out); in zlib_stateful_compress_block()
196 state->istream.avail_out = olen; in zlib_stateful_expand_block()
201 if (state->istream.avail_out > olen) in zlib_stateful_expand_block()
203 return (ossl_ssize_t)(olen - state->istream.avail_out); in zlib_stateful_expand_block()
227 if (olen > ULONG_MAX) in zlib_oneshot_compress_block()
229 out_size = (uLongf)olen; in zlib_oneshot_compress_block()
249 if (olen > ULONG_MAX) in zlib_oneshot_expand_block()
[all …]
H A Dcomp_lib.c64 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_compress_block() argument
71 ret = ctx->meth->compress(ctx, out, olen, in, ilen); in COMP_compress_block()
79 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, in COMP_expand_block() argument
87 ret = ctx->meth->expand(ctx, out, olen, in, ilen); in COMP_expand_block()
H A Dc_brotli.c156 size_t out_avail = olen; in brotli_stateful_compress_block()
158 if (state == NULL || olen > OSSL_SSIZE_MAX) in brotli_stateful_compress_block()
179 if (out_avail > olen) in brotli_stateful_compress_block()
181 return (ossl_ssize_t)(olen - out_avail); in brotli_stateful_compress_block()
191 size_t out_avail = olen; in brotli_stateful_expand_block()
193 if (state == NULL || olen > OSSL_SSIZE_MAX) in brotli_stateful_expand_block()
207 if (out_avail > olen) in brotli_stateful_expand_block()
209 return (ossl_ssize_t)(olen - out_avail); in brotli_stateful_expand_block()
234 size_t out_size = olen; in brotli_oneshot_compress_block()
254 size_t olen, unsigned char *in, in brotli_oneshot_expand_block() argument
[all …]
H A Dcomp_local.h16 unsigned char *out, size_t olen,
19 unsigned char *out, size_t olen,
H A Dc_zstd.c186 size_t olen, unsigned char *in, in zstd_stateful_compress_block() argument
199 outbuf.size = olen; in zstd_stateful_compress_block()
245 size_t olen, unsigned char *in, in zstd_stateful_expand_block() argument
258 outbuf.size = olen; in zstd_stateful_expand_block()
306 size_t olen, unsigned char *in, in zstd_oneshot_compress_block() argument
316 out_size = ZSTD_compress(out, olen, in, ilen, ZSTD_CLEVEL_DEFAULT); in zstd_oneshot_compress_block()
329 size_t olen, unsigned char *in, in zstd_oneshot_expand_block() argument
339 out_size = ZSTD_decompress(out, olen, in, ilen); in zstd_oneshot_expand_block()
/openssl/crypto/cms/
H A Dcms_pwri.c262 size_t olen; in kek_wrap_key() local
272 olen = (inlen + 4 + blocklen - 1) / blocklen; in kek_wrap_key()
273 olen *= blocklen; in kek_wrap_key()
274 if (olen < 2 * blocklen) { in kek_wrap_key()
290 if (olen > inlen + 4 in kek_wrap_key()
292 olen - 4 - inlen, 0) <= 0) in kek_wrap_key()
295 if (!EVP_EncryptUpdate(ctx, out, &dummy, out, olen) in kek_wrap_key()
296 || !EVP_EncryptUpdate(ctx, out, &dummy, out, olen)) in kek_wrap_key()
300 *outlen = olen; in kek_wrap_key()
/openssl/providers/implementations/ciphers/
H A Dciphercommon_gcm.c112 static int getivgen(PROV_GCM_CTX *ctx, unsigned char *out, size_t olen) in getivgen() argument
118 if (olen == 0 || olen > ctx->ivlen) in getivgen()
119 olen = ctx->ivlen; in getivgen()
120 memcpy(out, ctx->iv + ctx->ivlen - olen, olen); in getivgen()
418 size_t olen = 0; in gcm_cipher_internal() local
464 olen = len; in gcm_cipher_internal()
468 *padlen = olen; in gcm_cipher_internal()
H A Dciphercommon_ccm.c340 size_t olen = 0; in ccm_tls_cipher() local
369 olen = len + EVP_CCM_TLS_EXPLICIT_IV_LEN + ctx->m; in ccm_tls_cipher()
374 olen = len; in ccm_tls_cipher()
378 *padlen = olen; in ccm_tls_cipher()
387 size_t olen = 0; in ccm_cipher_internal() local
437 olen = len; in ccm_cipher_internal()
441 *padlen = olen; in ccm_cipher_internal()
H A Dcipher_chacha20_poly1305_hw.c274 size_t olen = 0; in chacha20_poly1305_aead_cipher() local
394 olen = inl; in chacha20_poly1305_aead_cipher()
397 *outl = olen; in chacha20_poly1305_aead_cipher()
/openssl/include/openssl/
H A Dcomp.h.in42 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
44 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
H A Dtls1.h260 __owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
273 size_t olen, const char *label,
H A Dasn1.h.in700 int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);
/openssl/doc/man3/
H A DSSL_export_keying_material.pod13 int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,
18 int SSL_export_keying_material_early(SSL *s, unsigned char *out, size_t olen,
46 For a given SSL connection B<s>, B<olen> bytes of data will be written to
H A DCOMP_CTX_new.pod35 int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,
37 int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,
68 buffer b<out> of size I<olen> using the algorithm specified by I<ctx>.
71 buffer I<out> of size I<olen> using the algorithm specified by I<ctx>.
/openssl/ssl/
H A Dt1_enc.c32 unsigned char *out, size_t olen, int fatal) in tls1_PRF() argument
74 if (EVP_KDF_derive(kctx, out, olen, params)) { in tls1_PRF()
423 size_t olen, const char *label, size_t llen, in tls1_export_keying_material() argument
499 out, olen, 0); in tls1_export_keying_material()
H A Dtls13_enc.c831 unsigned char *out, size_t olen, in tls13_export_keying_material() argument
861 out, olen, 0)) in tls13_export_keying_material()
871 unsigned char *out, size_t olen, in tls13_export_keying_material_early() argument
923 out, olen, 0)) in tls13_export_keying_material_early()
H A Dssl_local.h2767 unsigned char *out, size_t olen,
2772 unsigned char *out, size_t olen,
2777 unsigned char *out, size_t olen,
H A Dssl_lib.c3785 int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, in SSL_export_keying_material() argument
3799 return sc->ssl.method->ssl3_enc->export_keying_material(sc, out, olen, label, in SSL_export_keying_material()
3805 int SSL_export_keying_material_early(SSL *s, unsigned char *out, size_t olen, in SSL_export_keying_material_early() argument
3818 return tls13_export_keying_material_early(sc, out, olen, label, llen, in SSL_export_keying_material_early()
/openssl/crypto/asn1/
H A Da_object.c51 int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num) in a2d_ASN1_OBJECT() argument
156 if (len + i > olen) { in a2d_ASN1_OBJECT()
H A Dtasn_dec.c42 static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass,
1141 static int asn1_check_tlen(long *olen, int *otag, unsigned char *oclass, in asn1_check_tlen() argument
1213 if (olen != NULL) in asn1_check_tlen()
1214 *olen = plen; in asn1_check_tlen()
/openssl/crypto/property/
H A Dproperty_parse.c622 size_t olen, len, i; in put_str() local
626 len = olen = strlen(str); in put_str()
665 if (len < olen && *remain == 1) { in put_str()
/openssl/test/
H A Dbad_dtls_test.c68 unsigned char *out, int olen) in do_PRF() argument
71 size_t outlen = olen; in do_PRF()
H A Dacvp_test.c1015 int olen, len; in aes_gcm_enc_dec() local
1043 if (!TEST_int_eq(EVP_CipherFinal_ex(ctx, out + len, &olen), pass)) in aes_gcm_enc_dec()
1049 olen += len; in aes_gcm_enc_dec()
1051 if ((ct != NULL && !TEST_mem_eq(out, olen, ct, ct_len)) in aes_gcm_enc_dec()
1053 tag_len, out + olen), 0) in aes_gcm_enc_dec()
1055 && !TEST_mem_eq(out + olen, tag_len, tag, tag_len))) in aes_gcm_enc_dec()
1058 if (ct != NULL && !TEST_mem_eq(out, olen, ct, ct_len)) in aes_gcm_enc_dec()
1082 *out_len = olen; in aes_gcm_enc_dec()

Completed in 118 milliseconds