/openssl/providers/implementations/kdfs/ |
H A D | tls1_prf.c | 87 const unsigned char *sec, size_t slen, 104 unsigned char *sec; member 144 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_reset() 163 if (!ossl_prov_memdup(src->sec, src->seclen, &dest->sec, &dest->seclen)) in kdf_tls1_prf_dup() 259 if (ctx->sec == NULL) { in kdf_tls1_prf_derive() 278 ctx->sec, ctx->seclen, in kdf_tls1_prf_derive() 344 OPENSSL_clear_free(ctx->sec, ctx->seclen); in kdf_tls1_prf_set_ctx_params() 345 ctx->sec = NULL; in kdf_tls1_prf_set_ctx_params() 474 if (!EVP_MAC_init(ctx_init, sec, sec_len, NULL)) in tls1_prf_P_hash() 550 const unsigned char *sec, size_t slen, in tls1_prf_alg() argument [all …]
|
/openssl/test/ |
H A D | time_offset_test.c | 72 int day, sec; in test_offset() local 79 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { in test_offset() 87 else if (sec > 0) in test_offset() 89 else if (sec < 0) in test_offset() 95 TEST_info("ASN1_TIME_diff() test failed for %s day=%d sec=%d\n", at.data, day, sec); in test_offset()
|
H A D | asn1_time_test.c | 167 int day, sec; in test_table() local 186 if (!TEST_true(ASN1_TIME_diff(&day, &sec, &atime, &atime))) { in test_table() 190 if (!TEST_int_eq(day, 0) || !TEST_int_eq(sec, 0)) { in test_table() 195 if (!TEST_true(ASN1_TIME_diff(&day, &sec, >ime, &atime))) { in test_table() 198 } else if (!((td->cmp_result == 0 && TEST_true((day == 0 && sec == 0))) || in test_table() 199 (td->cmp_result == -1 && TEST_true((day < 0 || sec < 0))) || in test_table() 200 (td->cmp_result == 1 && TEST_true((day > 0 || sec > 0))))) { in test_table() 248 day = sec = 0; in test_table() 249 …if (!TEST_true(ASN1_TIME_diff(&day, &sec, ptime, &atime)) || !TEST_int_eq(day, 0) || !TEST_int_eq(… in test_table() 272 day = sec = 0; in test_table() [all …]
|
H A D | evp_pkey_dhkem_test.c | 209 unsigned char sec[256]; in test_input_size_small() local 211 size_t seclen = sizeof(sec); in test_input_size_small() 222 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), in test_input_size_small() 228 if (!TEST_int_eq(EVP_PKEY_encapsulate(ctx, enc, &enclen, sec, &seclen), 0)) in test_input_size_small() 235 if (!TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0)) in test_input_size_small() 240 ret = TEST_int_eq(EVP_PKEY_decapsulate(ctx, sec, &seclen, enc, enclen), 0); in test_input_size_small()
|
/openssl/crypto/asn1/ |
H A D | a_utctm.c | 78 int day, sec; in ASN1_UTCTIME_cmp_time_t() local 86 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_UTCTIME_cmp_time_t() 89 if (day > 0 || sec > 0) in ASN1_UTCTIME_cmp_time_t() 91 if (day < 0 || sec < 0) in ASN1_UTCTIME_cmp_time_t()
|
H A D | a_time.c | 554 int day, sec; in ASN1_TIME_cmp_time_t() local 562 if (!OPENSSL_gmtime_diff(&day, &sec, &ttm, &stm)) in ASN1_TIME_cmp_time_t() 565 if (day > 0 || sec > 0) in ASN1_TIME_cmp_time_t() 567 if (day < 0 || sec < 0) in ASN1_TIME_cmp_time_t() 584 int day, sec; in ASN1_TIME_compare() local 586 if (!ASN1_TIME_diff(&day, &sec, b, a)) in ASN1_TIME_compare() 588 if (day > 0 || sec > 0) in ASN1_TIME_compare() 590 if (day < 0 || sec < 0) in ASN1_TIME_compare()
|
/openssl/crypto/ec/ |
H A D | ec_kmeth.c | 154 unsigned char *sec = NULL; in ECDH_compute_key() local 164 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key() 167 KDF(sec, seclen, out, &outlen); in ECDH_compute_key() 171 memcpy(out, sec, outlen); in ECDH_compute_key() 173 OPENSSL_clear_free(sec, seclen); in ECDH_compute_key()
|
/openssl/doc/man3/ |
H A D | OSSL_CRMF_pbmp_new.pod | 16 const unsigned char *sec, size_t seclen, 26 parameters I<pbmp>, message I<msg>, and secret I<sec>, along with the respective 66 unsigned char *sec = "SeCrEt"; 72 if (!OSSL_CRMF_pbm_new(pbm, msg, 5, sec, 6, &mac, &maclen))
|
H A D | EVP_PKEY_CTX_set_tls1_prf_md.pod | 15 unsigned char *sec, int seclen); 30 to B<seclen> bytes of the buffer B<sec>. Any existing secret value is replaced
|
H A D | ASN1_TIME_set.pod | 253 int day, sec; 255 if (!ASN1_TIME_diff(&day, &sec, NULL, to)) 258 if (day > 0 || sec > 0) 260 else if (day < 0 || sec < 0)
|
H A D | OCSP_resp_find_status.pod | 52 long sec, long maxsec); 111 OCSP_single_get0_status(). If I<sec> is nonzero it indicates how many seconds 175 values and the current time + I<sec> is not before I<thisupd> and,
|
H A D | OSSL_CMP_CTX_new.pod | 125 const unsigned char *sec, int len); 530 OSSL_CMP_CTX_set1_secretValue() sets in I<ctx> the byte string I<sec> of length 531 I<len> to use as pre-shared secret, or clears it if the I<sec> argument is NULL. 804 OSSL_CMP_CTX_set1_secretValue(cmp_ctx, sec, sec_len);
|
/openssl/crypto/crmf/ |
H A D | crmf_pbm.c | 130 const unsigned char *sec, size_t seclen, in OSSL_CRMF_pbm_new() argument 145 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new() 170 if (!EVP_DigestUpdate(ctx, sec, seclen)) in OSSL_CRMF_pbm_new()
|
/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 25 static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec); 63 long *sec, long *usec) in def_time_cb() argument 77 *sec = (long int)tv.tv_sec; in def_time_cb() 532 long sec, usec; in ts_RESP_create_tst_info() local 548 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info() 550 TS_RESP_set_genTime_with_precision(NULL, sec, usec, in ts_RESP_create_tst_info() 816 ASN1_GENERALIZEDTIME *asn1_time, long sec, long usec, in TS_RESP_set_genTime_with_precision() argument 819 time_t time_sec = (time_t)sec; in TS_RESP_set_genTime_with_precision()
|
/openssl/apps/include/ |
H A D | cmp_mock_srv.h | 37 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
|
H A D | opt.h | 390 #define OPT_SECTION(sec) { OPT_SECTION_STR, 1, '-', sec " options:\n" } argument
|
/openssl/include/openssl/ |
H A D | kdf.h | 100 const unsigned char *sec, int seclen);
|
H A D | crmf.h.in | 93 const unsigned char *sec, size_t seclen,
|
H A D | ts.h | 256 typedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,
|
/openssl/ssl/ |
H A D | t1_enc.c | 31 const unsigned char *sec, size_t slen, in tls1_PRF() argument 61 (unsigned char *)sec, in tls1_PRF()
|
/openssl/apps/lib/ |
H A D | cmp_mock_srv.c | 190 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec) in ossl_cmp_mock_srv_set_checkAfterTime() argument 198 ctx->checkAfterTime = sec; in ossl_cmp_mock_srv_set_checkAfterTime()
|
/openssl/doc/internal/man3/ |
H A D | ossl_cmp_mock_srv_new.pod | 40 int ossl_cmp_mock_srv_set_checkAfterTime(OSSL_CMP_SRV_CTX *srv_ctx, int sec);
|
/openssl/doc/man1/ |
H A D | openssl-sess_id.pod.in | 92 Timeout : 300 (sec)
|
/openssl/crypto/cmp/ |
H A D | cmp_ctx.c | 436 const unsigned char *sec, int len) in OSSL_CMP_CTX_set1_secretValue() argument 444 if (ossl_cmp_asn1_octet_string_set1_bytes(&secretValue, sec, len) != 1) in OSSL_CMP_CTX_set1_secretValue()
|
/openssl/crypto/x509/ |
H A D | x509_vfy.c | 1139 int day, sec; in get_crl_sk() local 1141 if (ASN1_TIME_diff(&day, &sec, X509_CRL_get0_lastUpdate(best_crl), in get_crl_sk() 1148 if (day <= 0 && sec <= 0) in get_crl_sk() 1944 int i, day, sec, ret = 0; in X509_cmp_time() local 1995 if (ASN1_TIME_diff(&day, &sec, ctm, asn1_cmp_time) == 0) in X509_cmp_time() 2002 ret = (day >= 0 && sec >= 0) ? -1 : 1; in X509_cmp_time()
|