Skip to content

Commit

Permalink
Also clean up header
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart committed Feb 27, 2025
1 parent 4708378 commit 7838593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tls/s2n_prf.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

union p_hash_state {
struct s2n_hmac_state s2n_hmac;
struct s2n_evp_hmac_state evp_hmac;
};

struct s2n_prf_working_space {
Expand All @@ -41,8 +40,9 @@ struct s2n_prf_working_space {
uint8_t digest1[S2N_MAX_DIGEST_LEN];
};

/* The s2n p_hash implementation is abstracted to allow for separate implementations, using
* either s2n's formally verified HMAC or OpenSSL's EVP HMAC, for use by the TLS PRF. */
/* The s2n p_hash implementation is abstracted to allow for separate implementations.
* Currently the only implementation uses s2n-tls's custom HMAC implementation.
*/
struct s2n_p_hash_hmac {
int (*alloc)(struct s2n_prf_working_space *ws);
int (*init)(struct s2n_prf_working_space *ws, s2n_hmac_algorithm alg, struct s2n_blob *secret);
Expand Down

0 comments on commit 7838593

Please sign in to comment.