Add tls12_prf_read for the new API

Technically we could have reused the old one for the new API, but then
we had to set an extra field during setup. The new version works when
all the fields that haven't been set explicitely are zero-initialised.
This commit is contained in:
Janos Follath 2019-06-19 12:10:49 +01:00
parent 7742feea53
commit 844eb0e5fa
2 changed files with 42 additions and 3 deletions

View file

@ -250,8 +250,8 @@ typedef struct psa_tls12_prf_key_derivation_s
#endif
/* Indicates how many bytes in the current HMAC block have
* already been read by the user. */
uint8_t offset_in_block;
* not yet been read by the user. */
uint8_t left_in_block;
/* The 1-based number of the block. */
uint8_t block_number;