Module fcp_cryptoauth::cryptography
[−]
[src]
Modules
crypto_box |
|
scalarmult |
|
sha256 |
|
Structs
PrecomputedKey |
Applications that send several messages to the same receiver can gain speed by
splitting |
PublicKey |
|
SecretKey |
|
Constants
PASSWORD_DIGEST_BYTES |
Number of bytes in a password digest. |
Functions
gen_keypair |
Randomly generates a secret key and a corresponding public key. |
open_packet_end |
unseals the concatenation of fields msg_auth_code, sender_encrypted_temp_pk, and encrypted_data of a packet. If authentication was successful, returns the sender's temp_pk and the data, unencrypted. |
shared_secret_from_keys |
AuthNone Hello packets: my_sk and their_pk are permanent keys Key packets: my_sk is permanent, their_pk is temporary data packets: my_sk and their_pk are temporary keys |
shared_secret_from_password |
Implements the fancy password hashing used by the FCP, decribed in paragraph 4 of https://github.com/fc00/spec/blob/10b349ab11/cryptoauth.md#hello-repeathello |