Lines Matching defs:len
145 return 1 /* FIX: public key len > 512 bits */;
155 * @len: Length of the buffer
163 int tls_parse_cert(const u8 *buf, size_t len, struct crypto_public_key **pk)
168 buf, len);
170 *pk = crypto_public_key_from_cert(buf, len);
174 cert = x509_certificate_parse(buf, len);
239 size_t len)
242 crypto_hash_update(verify->md5_client, buf, len);
243 crypto_hash_update(verify->sha1_client, buf, len);
246 crypto_hash_update(verify->md5_server, buf, len);
247 crypto_hash_update(verify->sha1_server, buf, len);
250 crypto_hash_update(verify->md5_cert, buf, len);
251 crypto_hash_update(verify->sha1_cert, buf, len);
255 crypto_hash_update(verify->sha256_client, buf, len);
257 crypto_hash_update(verify->sha256_server, buf, len);
259 crypto_hash_update(verify->sha256_cert, buf, len);
403 const u8 *pos, size_t len, u8 *alert)
406 const u8 *end = pos + len;