Skip to content
  • Olaf Bergmann's avatar
    UTF8-encode psk_identity for transfer · 9af0527c
    Olaf Bergmann authored
    RFC 7925 recommends that DTLS implementations should treat the
    contents of psk_identity as opaque data whereas TLS originally
    defined this as UTF8 encoded data and check for correct encoding.
    To support implementations that treat psk_identity as UTF8, this
    change encodes access tickets in UTF8 for transfer and decodes
    upon receipt. For encrypted data, the average growth for this
    encoding would be 25 % as in average half of the input bytes would
    be greater than 127 and thus required an additional byte for
    UTF8-encoding.
    9af0527c