Skip to content
1 viewer

rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off

crates/cre8-util-webpush/src/body.rs

cre8-util-webpush · module body · src · 264 lines (205 code, 25 comment) · sha 0b4b54a5f53ea52f

Items

const RECORD_SIZE const SEC1_UNCOMPRESSED_LEN struct SubscriberKeys struct EphemeralKeyPair struct ContentKeys struct EncryptionMaterial struct EncryptedBody impl EncryptedBody

Functions

By call-graph weight (PageRank; 1.0 is the average function). 21 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
single_record_padded_plaintextsrc/body.rs:204fn61101.3
hkdf_sha256src/body.rs:216fn61301.3
ephemeral_public_key_bytessrc/body.rs:188fn71101.1
encrypt_bodysrc/body.rs:79fn111231
encrypt_single_recordsrc/body.rs:147fn151211
aes128gcm_nonce_arraysrc/body.rs:211fn31200.9
EncryptedBody::to_http_bodysrc/body.rs:65method91100.8
decode_p256dhsrc/body.rs:163fn92200.8
decode_auth_secretsrc/body.rs:173fn92200.8
parse_ua_public_keysrc/body.rs:183fn41200.8
encryption_materialsrc/body.rs:91fn141140.8
subscriber_keyssrc/body.rs:106fn61130.8
webpush_prk_infosrc/body.rs:196fn71100.8
fake_subscribersrc/body.rs:229fn61110.7
ephemeral_key_pairsrc/body.rs:113fn51110.7
derive_prk_keysrc/body.rs:119fn51120.7
random_saltsrc/body.rs:125fn142100.7
derive_content_keyssrc/body.rs:140fn61120.7
encrypts_with_expected_shapesrc/body.rs:237fn81020.5
body_validation_helpers_reject_bad_inputssrc/body.rs:247fn101040.5
body_crypto_helpers_report_bad_key_lengths_and_hkdf_limitssrc/body.rs:259fn51020.5

Source not readable from this process.