Skip to content

Latest commit

 

History

History
62 lines (32 loc) · 2.04 KB

onion_authenticate_cell.md

File metadata and controls

62 lines (32 loc) · 2.04 KB

Module onion_authenticate_cell

Onion Authenticate Cell Utilities.

Authors: Alexander Færøy (ahf@0x90.dk).

Data Types


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()}

Function Index

create/1Create an authenticate cell from the given configuration.
create_payload/2Create the authenticate payload to be signed with the key from the auth cert.

Function Details

create/1


create(Config) -> onion_cell:t()

Create an authenticate cell from the given configuration.

create_payload/2


create_payload(Config, RandomBytes) -> <<_:224>>

Create the authenticate payload to be signed with the key from the auth cert.