parallaxsecond / rust-cryptoki

Rust wrapper for the PKCS #11 API, Cryptoki
https://docs.rs/cryptoki/
Apache License 2.0
71 stars 60 forks source link

PkcsOaepParams #195

Open salih-okur opened 9 months ago

salih-okur commented 9 months ago

I need to get PkcsOaepParams hash algorithm but it is not pub and it has not try_from CK_RSA_PKCS_OAEP_PARAMS. Is there any work you will do on this in the near future?

tgonzalezorlandoarm commented 8 months ago

Hello @salih-okur , I see that there is a new function defined. Is this not suitable for your needs?

salih-okur commented 8 months ago

Hi @tgonzalezorlandoarm , Actually ı need to access the hash_alg parameter of PkcsOaepParams. I am using from trait for Mechanism and ı am getting Mechanism::RsaPkcsOaep(params). But I want to perform different operations according to hash_alg type of PkcsOaepParams.Because of that ı need to access hash_alg value directly or by functions of impl.

tgonzalezorlandoarm commented 6 months ago

Hi @salih-okur , is this what you were looking for? #207