Skip to main content

Module phcrypto

Module phcrypto 

Source
Expand description

Pubhubs specific crypto

Functions§

attr_id
Derives an Id for an Attr.
attr_signing_key
Computes the jwt::HS256 key used to sign Attr from the secret shared between the authentication server and pubhubs central.
auths_attr_keys
Derives attribute keys for a given attr::Attribute and a list of timestamps.
combine_master_enc_key_parts
Computes the x B from x_T * B and x_PHC, used by PHC to create the constellation
constellation_id
Derives an id::Id for a constellation::Inner.
jwt_id
Derives an id::Id for a jwt::JWT.
phc_user_object_hmac
Derives an hmac for a user object stored at pubhubs central.
pseud_factor_for_hub
Computes the pseudonymisation factor $g_H$ for the hub identified by hub_id, from the transcryptor’s pseud_factor_secret. See crate::api::sso for the exact formula.
sealing_secret
Computes the crypto::SealingKey used to seal messages between servers shared a secret.
t_encrypted_hub_pseudonym
Turns the given polymorphic pseudonym pp (which should be Id_U elgamal encrypted for x) into an encrypted hub pseudonym (which should be g_H Id_U elgamal encrypted for x_PHC).