[][src]Module static_dh_ecdh::dh::dh

A module for a static DH implementation

Structs

DH5

A data struct to hold state for DH_GROUP_ID 5 as per RFC - https://tools.ietf.org/html/rfc3526

DH14

A data struct to hold state for DH_GROUP_ID 14 as per RFC - https://tools.ietf.org/html/rfc3526

DH15

A data struct to hold state for DH_GROUP_ID 15 as per RFC - https://tools.ietf.org/html/rfc3526

DH16

A data struct to hold state for DH_GROUP_ID 16 as per RFC - https://tools.ietf.org/html/rfc3526

DH17

A data struct to hold state for DH_GROUP_ID 17 as per RFC - https://tools.ietf.org/html/rfc3526

DH18

A data struct to hold state for DH_GROUP_ID 18 as per RFC - https://tools.ietf.org/html/rfc3526

Enums

DH

Only DH5 and DH15 are supported as per the RFC

Functions

get_dh

Returns supported DH_GROUPS or an 'Unsupported' error string.

unhexlify_to_bytearray

A function to convert (i.e. unhexlify) a hex-string to a byte array. (Didnt want to use a full-blown crate for this.)