Issues with RSA public key
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- gcp, rust
- Ambito
- cloud, cryptography, security
Direzione di ricerca
Inizia con attributes.rs e la conversione della chiave pubblica RSA mostrata nel report, quindi riproduci gli avvisi con pkcs11-tool rispetto al modulo GCP KMS. Traccia C_GetAttributeValue insieme a C_GetFunctionList e agli altri punti di ingresso C_* menzionati; il lavoro è completato quando si determina se gli attributi richiesti e i punti di ingresso necessari sono supportati e si interviene sul comportamento segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
Thank yoy soo much for your time spent on this project, looking forward exploring it some more.
I had a quick question regarding the use of this library and it's something I've been struggeling with for a while now.
let rsa_pub = RsaPublicKey::from_public_key_pem(&response.pem)
.map_err(|e| format!("RSA PEM parse error: {:?}", e))
.unwrap();
let pkcs1_der_document = rsa_pub
.to_pkcs1_der()
.map_err(|e| anyhow::anyhow!("PKCS#1 DER encode error: {}", e))?;
let result = KSMPublicKey {
id: Sha256::digest(response.name.as_bytes()).to_vec(),
label: response.name,
algorithm: KeyAlgorithm::Rsa,
der: pkcs1_der_document.into_vec(),
};
Is this correct?
Getting weird error message when using pkcs11-tool
warning: PKCS11 function C_GetAttributeValue(MODULUS_BITS) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12)
warning: PKCS11 function C_GetAttributeValue(ENCRYPT) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12)
warning: PKCS11 function C_GetAttributeValue(VERIFY) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12)
warning: PKCS11 function C_GetAttributeValue(VERIFY_RECOVER) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12)
warning: PKCS11 function C_GetAttributeValue(WRAP) failed: rv = CKR_ATTRIBUTE_TYPE_INVALID (0x12)
Based on the info I can see in the attributes.rs file these values should be injected automatically but maybe I'm missing something?
Should I also implement any more C_* functions other than C_GetFunctionList ?
Currently building a GCP KMS module that is mostly working but there are still some weird edge cases I need to solve.
Thank you
- Lingua principale
- Rust
- Stelle
- 75
- Fork
- 25
- Merge medio
- 14h 16m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google/native-pkcs11
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
google/native-pkcs11#492 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
google/native-pkcs11#470 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
google/native-pkcs11#417 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
google/native-pkcs11#392 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
google/native-pkcs11#303 ·
Tutte le issue di google/native-pkcs11
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Test connection's password prompt says the password is never saved, also for a keychain profileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
area: settings bug Haiku review: no-score ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MMFoundation/WallpaperMachine#346 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubys/roundhouse#2473 ·
-
bug mod: quantum info
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Qiskit/qiskit#17699 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno