File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,6 @@ struct s2n_evp_digest {
26
26
EVP_MD_CTX * ctx ;
27
27
};
28
28
29
- struct s2n_evp_hmac_state {
30
- struct s2n_evp_digest evp_digest ;
31
- union {
32
- HMAC_CTX * hmac_ctx ;
33
- EVP_PKEY * evp_pkey ;
34
- } ctx ;
35
- };
36
-
37
29
/* Define API's that change based on the OpenSSL Major Version. */
38
30
#if S2N_OPENSSL_VERSION_AT_LEAST (1 , 1 , 0 ) && !defined(LIBRESSL_VERSION_NUMBER )
39
31
#define S2N_EVP_MD_CTX_NEW () (EVP_MD_CTX_new())
Original file line number Diff line number Diff line change @@ -244,24 +244,6 @@ struct s2n_evp_digest* cbmc_allocate_s2n_evp_digest()
244
244
return evp_digest ;
245
245
}
246
246
247
- void cbmc_populate_s2n_evp_hmac_state (struct s2n_evp_hmac_state * evp_hmac_state )
248
- {
249
- CBMC_ENSURE_REF (evp_hmac_state );
250
- cbmc_populate_s2n_evp_digest (& (evp_hmac_state -> evp_digest ));
251
- if (s2n_libcrypto_is_awslc () || s2n_libcrypto_is_boringssl ()) {
252
- evp_hmac_state -> ctx .hmac_ctx = malloc (sizeof (* (evp_hmac_state -> ctx .hmac_ctx )));
253
- } else {
254
- evp_hmac_state -> ctx .evp_pkey = malloc (sizeof (* (evp_hmac_state -> ctx .evp_pkey )));
255
- }
256
- }
257
-
258
- struct s2n_evp_hmac_state * cbmc_allocate_s2n_evp_hmac_state ()
259
- {
260
- struct s2n_evp_hmac_state * evp_hmac_state = malloc (sizeof (* evp_hmac_state ));
261
- cbmc_populate_s2n_evp_hmac_state (evp_hmac_state );
262
- return evp_hmac_state ;
263
- }
264
-
265
247
void cbmc_populate_s2n_hash_state (struct s2n_hash_state * state )
266
248
{
267
249
CBMC_ENSURE_REF (state );
@@ -716,7 +698,6 @@ void cbmc_populate_s2n_prf_working_space(struct s2n_prf_working_space *s2n_prf_w
716
698
* If required, this initialization should be done in the validation function.
717
699
*/
718
700
cbmc_populate_s2n_hmac_state (& (s2n_prf_working_space -> p_hash .s2n_hmac ));
719
- cbmc_populate_s2n_evp_hmac_state (& (s2n_prf_working_space -> p_hash .evp_hmac ));
720
701
}
721
702
722
703
struct s2n_prf_working_space * cbmc_allocate_s2n_prf_working_space ()
You can’t perform that action at this time.
0 commit comments