Onion Authenticate Cell Utilities.
Authors: Alexander Færøy (ahf@0x90.dk
).
config() = #{client_identity_public_key => onion_rsa:public_key(), server_identity_public_key => onion_rsa:public_key(), server_log => binary(), client_log => binary(), server_certificate => public_key:der_encoded(), ssl_session => onion_ssl_session:t(), authentication_secret_key => onion_rsa:secret_key()}
create/1 | Create an authenticate cell from the given configuration. |
create_payload/2 | Create the authenticate payload to be signed with the key from the auth cert. |
create(Config) -> onion_cell:t()
Config = config()
Create an authenticate cell from the given configuration.
create_payload(Config, RandomBytes) -> <<_:224>>
Config = config()
RandomBytes = <<_:24>>
Create the authenticate payload to be signed with the key from the auth cert.