cms: `OtherRevocationInfoFormat.other_format` should be an OBJECT IDENTIFIER
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- cryptography
Línea de trabajo
Empieza leyendo la definición de OtherRevocationInfoFormat y sus pruebas de decodificación en el crate cms; el issue indica el campo público que hay que cambiar e incluye un caso reproducible en DER para RevocationInfoChoice::Other. Confirma que el caso reproducible falla con la etiqueta inesperada indicada, luego cambia el tipo del campo a ObjectIdentifier y verifica que el ejemplo se decodifica correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
OtherRevocationInfoFormat declares other_format: AlgorithmIdentifierOwned, but
RFC 5652 §10.2.1 defines it as
OtherRevocationInfoFormat ::= SEQUENCE {
otherRevInfoFormat OTHER-REVOK-INFO.&id({SupportedOtherRevokInfo}),
otherRevInfo OTHER-REVOK-INFO.&Type({SupportedOtherRevokInfo}{@otherRevInfoFormat}) }
i.e. an OBJECT IDENTIFIER followed by the value, as RFC 5940 §3 uses it for
id-ri-ocsp-response and id-ri-scvp. So a RevocationInfoChoice::Other holding an
OCSP response does not decode:
use cms::revocation::RevocationInfoChoice;
use der::Decode;
// [1] { id-ri-ocsp-response, OCSPResponse { responseStatus tryLater } }
let der = hex_literal::hex!("a10f" "06082b06010505071002" "3003" "0a0103");
RevocationInfoChoice::from_der(&der).unwrap();
// Err: TagUnexpected { expected: SEQUENCE, actual: OBJECT IDENTIFIER }
Versions: cms 0.3.0-rc.2 and master 715d277d. Since this changes a public field's
type, it would be good to fix before 0.3.0 (#2430). The fix is to make other_format an ObjectIdentifier.
Found and analyzed with AI assistance; the reproducers and results above were run on the versions stated.
- Lenguaje dominante
- Rust
- Estrellas
- 347
- Forks
- 200
- Merge medio
- 15 h 53 min
- PR fusionados (30 d)
- 34
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RustCrypto/formats
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RustCrypto/formats#2544 ·
Los mantenedores suelen responder en 1 día
-
cms: CHOICE types in `SET OF` are ordered as `SEQUENCE OF INTEGER`, not by their bytesPosiblemente ocupada @brother-z la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RustCrypto/formats#2538 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
pem-rfc7468: a lone CR before -----BEGIN is refused as Error::Preamble, so a CR-terminated multi-certificate PEM fails load_pem_chain (RFC 7468 eol = CRLF / CR / LF)Posiblemente ocupada @choksi2212 la tomó hace 25 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
RustCrypto/formats#2486 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
IssuingDistributionPoint has the wrong AssociatedOid (id-pe-subjectInfoAccess)Posiblemente ocupada @eyusd la tomó hace 103 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
RustCrypto/formats#2389 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
RustCrypto/formats#2366 ·
Los mantenedores suelen responder en 1 día
Todos los issues de RustCrypto/formats
Issues similares
-
priority middle
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
KATO-Hiro/AtCoderClans#13029 ·
Los mantenedores suelen responder en 1 día
-
bug ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
userFRM/egui-charts#3363 ·
Los mantenedores suelen responder en 1 día
-
ada documentation mobile report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
physicsdolphin/nv-uefi-unlocker#254 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
kindraywind/rustnarok-client#1382 ·
Los mantenedores suelen responder en 1 día
-
area:accessibility bug good first issue help wanted priority:p3-low size:small
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NecturaLabs/Canopy#209 ·