parallaxsecond / rust-cryptoki

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

PkcsOaepParams #195

Closed salih-okur closed 1 week ago

salih-okur commented 11 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 10 months ago

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

salih-okur commented 10 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 8 months ago

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

hug-dev commented 1 week ago

Closing as #207 is merged. Feel free to re-open if not