23 #ifndef MBEDTLS_ASN1_WRITE_H 24 #define MBEDTLS_ASN1_WRITE_H 28 #define MBEDTLS_ASN1_CHK_ADD(g, f) do { if( ( ret = f ) < 0 ) return( ret ); else \ 29 g += ret; } while( 0 ) 72 const unsigned char *
buf,
size_t size );
74 #if defined(MBEDTLS_BIGNUM_C) 111 const char *
oid,
size_t oid_len );
127 const char *
oid,
size_t oid_len,
167 const char *text,
size_t text_len );
182 const char *text,
size_t text_len );
197 const unsigned char *
buf,
size_t bits );
212 const unsigned char *
buf,
size_t size );
231 const char *
oid,
size_t oid_len,
232 const unsigned char *
val,
int mbedtls_asn1_write_int(unsigned char **p, unsigned char *start, int val)
Write an int tag (MBEDTLS_ASN1_INTEGER) and value in ASN.1 format Note: function works backwards in d...
Definition: asn1write.c:230
int mbedtls_asn1_write_raw_buffer(unsigned char **p, unsigned char *start, const unsigned char *buf, size_t size)
Write raw buffer data Note: function works backwards in data buffer.
Definition: asn1write.c:112
GLuint GLfloat * val
Definition: glext.h:7847
static const unsigned char tag[MAX_TESTS *3][16]
Definition: gcm.c:696
GLuint start
Definition: glext.h:6292
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:8418
GLenum GLsizei len
Definition: glext.h:7389
GLsizeiptr size
Definition: glext.h:6559
int mbedtls_asn1_write_oid(unsigned char **p, unsigned char *start, const char *oid, size_t oid_len)
Write an OID tag (MBEDTLS_ASN1_OID) and data in ASN.1 format Note: function works backwards in data b...
Definition: asn1write.c:178
int mbedtls_asn1_write_ia5_string(unsigned char **p, unsigned char *start, const char *text, size_t text_len)
Write an IA5 string tag (MBEDTLS_ASN1_IA5_STRING) and value in ASN.1 format Note: function works back...
Definition: asn1write.c:275
int mbedtls_asn1_write_octet_string(unsigned char **p, unsigned char *start, const unsigned char *buf, size_t size)
Write an octet string tag (MBEDTLS_ASN1_OCTET_STRING) and value in ASN.1 format Note: function works ...
Definition: asn1write.c:317
int mbedtls_asn1_write_tag(unsigned char **p, unsigned char *start, unsigned char tag)
Write a ASN.1 tag in ASN.1 format Note: function works backwards in data buffer.
Definition: asn1write.c:102
mbedtls_asn1_buf oid
Definition: asn1.h:152
int mbedtls_asn1_write_algorithm_identifier(unsigned char **p, unsigned char *start, const char *oid, size_t oid_len, size_t par_len)
Write an AlgorithmIdentifier sequence in ASN.1 format Note: function works backwards in data buffer.
Definition: asn1write.c:192
int mbedtls_asn1_write_mpi(unsigned char **p, unsigned char *start, const mbedtls_mpi *X)
Write a big number (MBEDTLS_ASN1_INTEGER) in ASN.1 format Note: function works backwards in data buff...
Definition: asn1write.c:128
int mbedtls_asn1_write_len(unsigned char **p, unsigned char *start, size_t len)
Write a length field in ASN.1 format Note: function works backwards in data buffer.
Definition: asn1write.c:42
int mbedtls_asn1_write_printable_string(unsigned char **p, unsigned char *start, const char *text, size_t text_len)
Write a printable string tag (MBEDTLS_ASN1_PRINTABLE_STRING) and value in ASN.1 format Note: function...
Definition: asn1write.c:260
GLfloat GLfloat p
Definition: glext.h:9809
int mbedtls_asn1_write_bool(unsigned char **p, unsigned char *start, int boolean)
Write a boolean tag (MBEDTLS_ASN1_BOOLEAN) and value in ASN.1 format Note: function works backwards i...
Definition: asn1write.c:213
mbedtls_asn1_named_data * mbedtls_asn1_store_named_data(mbedtls_asn1_named_data **list, const char *oid, size_t oid_len, const unsigned char *val, size_t val_len)
Create or find a specific named_data entry for writing in a sequence or list based on the OID....
Definition: asn1write.c:331
MPI structure.
Definition: bignum.h:179
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Definition: glext.h:11836
int mbedtls_asn1_write_bitstring(unsigned char **p, unsigned char *start, const unsigned char *buf, size_t bits)
Write a bitstring tag (MBEDTLS_ASN1_BIT_STRING) and value in ASN.1 format Note: function works backwa...
Definition: asn1write.c:290
#define X(a, b)
Definition: bba.c:185
int mbedtls_asn1_write_null(unsigned char **p, unsigned char *start)
Write a NULL tag (MBEDTLS_ASN1_NULL) with zero data in ASN.1 format Note: function works backwards in...
Definition: asn1write.c:165