Rosetta
Functions | Variables
pyrosetta.distributed.cluster.hkdf Namespace Reference

Functions

bool compare_digest (bytes a, bytes b)
 
bytes hmac_digest (Union[bytes, bytearray] key, Union[bytes, bytearray] data)
 
bytes hkdf_extract (bytes ikm, Optional[bytes] salt)
 
bytes hkdf_expand (bytes prk, bytes info)
 
bytes derive_task_key (bytes passkey, str task_id)
 

Variables

string __author__ = "Jason C. Klima"
 
 BuiltinFunctionType
 
 int
 
 bytes
 

Function Documentation

◆ compare_digest()

bool pyrosetta.distributed.cluster.hkdf.compare_digest ( bytes  a,
bytes  b 
)

◆ derive_task_key()

bytes pyrosetta.distributed.cluster.hkdf.derive_task_key ( bytes  passkey,
str  task_id 
)
Derive a per-task secret key using the extract-and-expand hash-based message
authentication code (HMAC)-based key derivation function (HKDF).

References pyrosetta.distributed.cluster.hkdf.hkdf_expand(), and pyrosetta.distributed.cluster.hkdf.hkdf_extract().

Referenced by pyrosetta.distributed.cluster.core.PyRosettaCluster._create_future(), and pyrosetta.distributed.cluster.logging_listeners.LogRecordRequestHandler.unPickle().

◆ hkdf_expand()

bytes pyrosetta.distributed.cluster.hkdf.hkdf_expand ( bytes  prk,
bytes  info 
)
Expand method for hash-based message authentication code (HMAC)-based key derivation
function (HKDF), taking a pseudorandom key (PRK) and application-specific info.

References pyrosetta.distributed.cluster.hkdf.hmac_digest(), and range.

Referenced by pyrosetta.distributed.cluster.hkdf.derive_task_key().

◆ hkdf_extract()

bytes pyrosetta.distributed.cluster.hkdf.hkdf_extract ( bytes  ikm,
Optional[bytes salt 
)
Extract method for hash-based message authentication code (HMAC)-based key derivation
function (HKDF), taking input keying material (IKM) and optional salt.

References pyrosetta.distributed.cluster.hkdf.hmac_digest().

Referenced by pyrosetta.distributed.cluster.hkdf.derive_task_key().

◆ hmac_digest()

bytes pyrosetta.distributed.cluster.hkdf.hmac_digest ( Union[bytes, bytearray]  key,
Union[bytes, bytearray]  data 
)

Variable Documentation

◆ __author__

string pyrosetta.distributed.cluster.hkdf.__author__ = "Jason C. Klima"
private

◆ BuiltinFunctionType

pyrosetta.distributed.cluster.hkdf.BuiltinFunctionType

◆ bytes

pyrosetta.distributed.cluster.hkdf.bytes

◆ int

pyrosetta.distributed.cluster.hkdf.int