Lines Matching refs:out_len

157 static int tls1_P_hash(uint8_t *out, size_t out_len, const EVP_MD *md,  in tls1_P_hash()  argument
187 (out_len > chunk && !HMAC_CTX_copy_ex(&ctx_tmp, &ctx)) || in tls1_P_hash()
197 if (len > out_len) { in tls1_P_hash()
198 len = out_len; in tls1_P_hash()
205 out_len -= len; in tls1_P_hash()
207 if (out_len == 0) { in tls1_P_hash()
227 int tls1_prf(const EVP_MD *digest, uint8_t *out, size_t out_len, in tls1_prf() argument
231 if (out_len == 0) { in tls1_prf()
235 OPENSSL_memset(out, 0, out_len); in tls1_prf()
241 if (!tls1_P_hash(out, out_len, EVP_md5(), secret, secret_half, in tls1_prf()
254 if (!tls1_P_hash(out, out_len, digest, secret, secret_len, in tls1_prf()
263 static int ssl3_prf(uint8_t *out, size_t out_len, const uint8_t *secret, in ssl3_prf() argument
276 for (i = 0; i < out_len; i += MD5_DIGEST_LENGTH) { in ssl3_prf()
309 if (i + MD5_DIGEST_LENGTH > out_len) { in ssl3_prf()
311 OPENSSL_memcpy(out, smd, out_len - i); in ssl3_prf()
450 int SSL_generate_key_block(const SSL *ssl, uint8_t *out, size_t out_len) { in SSL_generate_key_block() argument
452 return ssl3_prf(out, out_len, SSL_get_session(ssl)->master_key, in SSL_generate_key_block()
465 return tls1_prf(digest, out, out_len, SSL_get_session(ssl)->master_key, in SSL_generate_key_block()
509 int SSL_export_keying_material(SSL *ssl, uint8_t *out, size_t out_len, in SSL_export_keying_material() argument
523 return tls13_export_keying_material(ssl, out, out_len, label, label_len, in SSL_export_keying_material()
556 int ret = tls1_prf(digest, out, out_len, SSL_get_session(ssl)->master_key, in SSL_export_keying_material()