Skip to main content

Module util

Module util 

Source
Expand description

Utilities for cryptographic purposes

For now, this module is just contains a couple of workarounds for the limitations of other libraries.

Re-exportsยง

use der_parser::ber::BerObject; ๐Ÿ”’
use der_parser::ber::BerObjectContent; ๐Ÿ”’
use der_parser::der::parse_der; ๐Ÿ”’

Modulesยง

ct
Define helpers for working with types in constant time.
rng
Prng utilities.

Structsยง

Asn1 ๐Ÿ”’
Helper to wrap a simple_asn1::Asn1Block and add more methods to it.

Functionsยง

x509_extract_rsa_subject_kludge
Given an X.509 certificate in DER, return its SubjectPublicKey if that key is an RSA key.