22
22
#include "crypto/crypto.h"
23
23
24
24
#if CONFIG_SSL_USING_MBEDTLS
25
-
26
25
/**
27
26
* fast_hmac_sha256_vector - HMAC-SHA256 over data vector (RFC 2104)
28
27
* @key: Key for HMAC operations
@@ -165,54 +164,4 @@ fast_sha256_prf(const uint8_t *key, size_t key_len, const char *label,
165
164
counter ++ ;
166
165
}
167
166
}
168
- #else
169
- /**
170
- * fast_hmac_sha256_vector - HMAC-SHA256 over data vector (RFC 2104)
171
- * @key: Key for HMAC operations
172
- * @key_len: Length of the key in bytes
173
- * @num_elem: Number of elements in the data vector
174
- * @addr: Pointers to the data areas
175
- * @len: Lengths of the data blocks
176
- * @mac: Buffer for the hash (32 bytes)
177
- */
178
- void
179
- fast_hmac_sha256_vector (const uint8_t * key , size_t key_len , size_t num_elem ,
180
- const uint8_t * addr [], const size_t * len , uint8_t * mac )
181
- {
182
- }
183
-
184
-
185
- /**
186
- * fast_hmac_sha256 - HMAC-SHA256 over data buffer (RFC 2104)
187
- * @key: Key for HMAC operations
188
- * @key_len: Length of the key in bytes
189
- * @data: Pointers to the data area
190
- * @data_len: Length of the data area
191
- * @mac: Buffer for the hash (20 bytes)
192
- */
193
- void
194
- fast_hmac_sha256 (const uint8_t * key , size_t key_len , const uint8_t * data ,
195
- size_t data_len , uint8_t * mac )
196
- {
197
- }
198
-
199
-
200
- /**
201
- * fast_sha256_prf - SHA256-based Pseudo-Random Function (IEEE 802.11r, 8.5.1.5.2)
202
- * @key: Key for PRF
203
- * @key_len: Length of the key in bytes
204
- * @label: A unique label for each purpose of the PRF
205
- * @data: Extra data to bind into the key
206
- * @data_len: Length of the data
207
- * @buf: Buffer for the generated pseudo-random key
208
- * @buf_len: Number of bytes of key to generate
209
- *
210
- * This function is used to derive new, cryptographically separate keys from a
211
- * given key.
212
- */
213
- void
214
- fast_sha256_prf (const uint8_t * key , size_t key_len , const char * label ,
215
- const uint8_t * data , size_t data_len , uint8_t * buf , size_t buf_len )
216
- {
217
- }
218
167
#endif
0 commit comments