···139139140140 @param password The shared password
141141 @param role Either [`A] or [`B]
142142- @return [(state, message)] where [message] is the public share to send *)
142142+ @return [(state, message)] where [message] is the public share to send. *)
143143144144val finish :
145145 ?context:string ->
···155155 @param id_b Optional identity of party B
156156 @param state The state from {!init}
157157 @param peer_message The message received from the peer
158158- @return [Ok shared_secret] (32 bytes) or [Error msg] *)
158158+ @return [Ok shared_secret] (32 bytes) or [Error msg]. *)
159159160160(** {1 SPAKE2+ (Augmented PAKE)} *)
161161
···11(** Unit tests for SPAKE2 password-authenticated key exchange. *)
2233-val suite : (string * unit Alcotest.test_case list) list
33+val suite : string * unit Alcotest.test_case list