geitda
geitda
https://github.com/wbond/asn1crypto/pull/238 added the algorithms, but didn't update the docstrings to reflect what could now be returned in several places.
The notes for CCM explain the tradeoff between nonce size and maximum message length, but the programming doesn't enforce it. See at https://github.com/Legrandin/pycryptodome/blob/a6b6ecd8959d155eeec46db664c6817359d50ac7/lib/Crypto/Cipher/_mode_ccm.py#L72 for the details. If n is the...
If you pass ASN.1 bytes that look too much like a PrivateKeyInfo structure (but aren't) to `oscrypto.asymmetric.load_private_key`, then you may end up with a `KeyError` that passes through everything. `load_private_key`...