formats
formats copied to clipboard
Cryptography-related format encoders/decoders: DER, PEM, PKCS, PKIX
`str` does not implement `Tagged` despite implementing `FixedTag` because the blanket impl implicitly requires `Sized`: ```rust impl Tagged for T { fn tag(&self) -> Tag { T::TAG } } ```...
```text RecipientEncryptedKey ::= SEQUENCE { rid KeyAgreeRecipientIdentifier, encryptedKey EncryptedKey } KeyAgreeRecipientIdentifier ::= CHOICE { issuerAndSerialNumber IssuerAndSerialNumber, rKeyId [0] IMPLICIT RecipientKeyIdentifier } RecipientKeyIdentifier ::= SEQUENCE { subjectKeyIdentifier SubjectKeyIdentifier, date GeneralizedTime OPTIONAL,...
I'd like to start a release train for x509-cert v0.3 and here is a list of things I'd like to fix/merge: - redesign of the `x509_cert::builder::Profile` to account for https://github.com/RustCrypto/formats/issues/1281...
Hi! I'm currently running into these errors when targeting WASM (wasm32-unknown-unknown) with x509-cert: ``` error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type --> /home/otak/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x509-cert-0.2.5/src/ext/pkix/constraints/basic.rs:17:22 |...
As part of [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280#appendix-A.1), there are a few types that are essentially aliases for `OBJECT IDENTIFIER`. One example is the `AttributeType` used in the x509 subject name: ``` AttributeType...
This is tracking a regression from #1112, where `slice::deserialize_hex_or_bin` was changed to return `Result` instead of `Result`. Notably this API is intended for use cases where the amount of deserialized...
Continuation from https://github.com/RustCrypto/formats/issues/1228 `Reader` trait contains too many methods. All reader methods should return bytes for interoperability and ease of implementation. Currently `peek_header` returns `der::Header` which is a library struct...
https://github.com/RustCrypto/formats/blob/fdb711e56e8139c57284ce06329033e467c5a0c4/x509-cert/src/builder.rs#L199 Is there any special reason to enable it by default? I understand that the ETSI advises against combining the Non-Repudiation and other key usages. In section 4.3.2 Key usage...
#1212 switched from derived `PartialEq`/`Eq` impls on `ObjectIdentifier` to handwritten ones which are generic and allow two `ObjectIdentifier`s with different backing storage to be compared, which makes it possible to...
Hi, im recently working on authenticode, and i have read https://github.com/RustCrypto/formats/pull/723 and https://github.com/RustCrypto/formats/pull/813, so im just wondering if there's some guide for creating a authenticode signatrue using this library :_)...