/openssl/providers/implementations/kdfs/ |
H A D | tls1_prf.c | 89 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 D | krb5kdf.c | 436 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 D | c_zlib.c | 35 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 D | comp_lib.c | 64 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 D | c_brotli.c | 156 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 D | comp_local.h | 16 unsigned char *out, size_t olen, 19 unsigned char *out, size_t olen,
|
H A D | c_zstd.c | 186 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 D | cms_pwri.c | 262 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 D | ciphercommon_gcm.c | 112 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 D | ciphercommon_ccm.c | 340 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 D | cipher_chacha20_poly1305_hw.c | 274 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 D | comp.h.in | 42 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 D | tls1.h | 260 __owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, 273 size_t olen, const char *label,
|
H A D | asn1.h.in | 700 int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);
|
/openssl/doc/man3/ |
H A D | SSL_export_keying_material.pod | 13 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 D | COMP_CTX_new.pod | 35 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 D | t1_enc.c | 32 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 D | tls13_enc.c | 831 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 D | ssl_local.h | 2767 unsigned char *out, size_t olen, 2772 unsigned char *out, size_t olen, 2777 unsigned char *out, size_t olen,
|
H A D | ssl_lib.c | 3785 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 D | a_object.c | 51 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 D | tasn_dec.c | 42 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 D | property_parse.c | 622 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 D | bad_dtls_test.c | 68 unsigned char *out, int olen) in do_PRF() argument 71 size_t outlen = olen; in do_PRF()
|
H A D | acvp_test.c | 1015 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()
|