Home | History | Annotate | Download | only in testserver

Lines Matching full:data

18 def Data(tag, data):
23 data: the data for the given tag.
27 if len(data) == 0:
29 assert len(data) <= 0xffff;
30 return struct.pack(">BBH", tag, 0x82, len(data)) + data;
40 data = '%x' % value
41 return Data(INTEGER, binascii.unhexlify('00' + '0' * (len(data) % 2) + data))
47 value: a string holding the binary data.
51 return Data(BIT_STRING, '\x00' + value)
57 values: the list of values, must be strings holding already encoded data.
61 return Data(SEQUENCE, ''.join(values))