Lines Matching defs:bytes

271 /* In case of 'tls-unique' it will be 12 bytes for TLS, 36 bytes for
1258 /* GENERAL_NAME_print() doesn't handle NULL bytes in ASN1_string
1748 /* this is actually an immutable bytes sequence */
1971 /* Downcast to avoid a warning. Safe since buf is always 512 bytes */
2329 Writes the bytes-like object b into the SSL object.
2331 Returns the number of bytes written.
2436 Returns the number of already decrypted bytes available for read, pending on the connection.
2466 Read up to size bytes from the SSL socket.
2725 Raise ValueError if the requested `cb_type` is not supported. Return bytes
3367 "protocols longer than %u bytes", UINT_MAX);
3743 from a unicode, bytes, or byte array object.
3770 "password cannot be longer than %d bytes", INT_MAX);
3824 "password cannot be longer than %d bytes", size);
4129 "bytes-like object");
4230 as IDN A-label (ASCII str) without NULL bytes. */
4268 as IDN A-label (ASCII str) without NULL bytes. */
4838 "The number of bytes pending in the memory BIO.");
4855 Read up to size bytes from the memory BIO.
4858 If the return value is an empty bytes instance, this means either
4899 Writes the bytes b into the memory BIO.
4901 Returns the number of bytes written.
4912 "string longer than %d bytes", INT_MAX);
5201 PyObject *bytes;
5211 bytes = PyBytes_FromStringAndSize(NULL, len);
5212 if (bytes == NULL)
5215 ok = RAND_bytes((unsigned char*)PyBytes_AS_STRING(bytes), len);
5217 return Py_BuildValue("NO", bytes, ok == 1 ? Py_True : Py_False);
5220 ok = RAND_bytes((unsigned char*)PyBytes_AS_STRING(bytes), len);
5222 return bytes;
5224 Py_DECREF(bytes);
5241 Generate n cryptographically strong pseudo-random bytes.
5256 Generate n pseudo-random bytes.
5258 Return a pair (bytes, is_cryptographic). is_cryptographic is True
5259 if the bytes generated are cryptographically strong.
5542 more cert storages, too. The function returns a list of (bytes,
5641 more cert storages, too. The function returns a list of (bytes,