hcrypto_rsa(3)
π hcrypto_rsa(3) β Heimdal crypto library π
okay bestie, welcome to the RSA corner of the Heimdal crypto library β¨ this is hcrypto_rsa, and it's giving "let's handle RSA objects together" energy. no cap.
π NAME π
hcrypto_rsa β RSA functions π¦
β¨ SYNOPSIS β¨
the functions, slay π
RSA *RSA_new (void)
RSA *RSA_new_method (ENGINE *engine)
void RSA_free (RSA *rsa)
int RSA_up_ref (RSA *rsa)
const RSA_METHOD *RSA_get_method (const RSA *rsa)
int RSA_set_method (RSA *rsa, const RSA_METHOD *method)
int RSA_set_app_data (RSA *rsa, void *arg)
void *RSA_get_app_data (const RSA *rsa)
πΈ Detailed Description πΈ
lowkey just go look at RSA - public-key cryptography for the description and the examples, bestie β that's where the real tea is π
π Function Documentation π
π void RSA_free (RSA * rsa)
frees an allocated RSA object. it's done, it's over, we're releasing it π«Ά
Parameters
rsaβ the RSA object to free.
π void* RSA_get_app_data (const RSA * rsa)
gets the application data for the RSA object. it's literally right there, come get it β¨
Parameters
rsaβ the rsa object to get the parameter for
Returns
the data object
π§ const RSA_METHOD* RSA_get_method (const RSA * rsa)
returns the RSA_METHOD used for this RSA object. iykyk, the method is the whole vibe π
Parameters
rsaβ the object to get the method from.
Returns
the method used for this RSA object.
β RSA* RSA_new (void)
same as RSA_new_method() but using NULL as the engine. simple, iconic, no drama.
Returns
a newly allocated RSA object. free it with RSA_free() π
π RSA* RSA_new_method (ENGINE * engine)
allocates a new RSA object using the engine. if NULL is specified as the engine, it uses the default RSA engine as returned by ENGINE_get_default_RSA(). bestie said "default it is" and honestly? valid π
Parameters
engineβ specifies whatENGINERSA provider should be used.
Returns
a newly allocated RSA object. free it with RSA_free() π
π int RSA_set_app_data (RSA * rsa, void * arg)
sets the application data for the RSA object. dropping your lil data object in there, so cute π₯°
Parameters
rsaβ the rsa object to set the parameter forargβ the data object to store
Returns
1 on success.
π int RSA_set_method (RSA * rsa, const RSA_METHOD * method)
sets a new method for the RSA keypair. glow-up for your RSA, periodt π₯
Parameters
rsaβ rsa parameter.methodβ the new method for the RSA parameter.
Returns
1 on success.
π¦ int RSA_up_ref (RSA * rsa)
adds an extra reference to the RSA object. the object should be freed with RSA_free() to drop the reference β don't leave it hanging, bestie π
Parameters
rsaβ the object to add reference counting to.
Returns
the current reference count. β οΈ heads up: it can't safely be used except for debug printing, so no funny business with it, okay?
βοΈ Author βοΈ
generated automatically by Doxygen for Heimdal crypto library from the source code. not me getting written by a robot π iconic behavior fr fr.
and that's the whole page, bestie!! this was hcrypto_rsa from the Heimdal crypto library β Version 7.8.0, dated Tue Nov 15 2022. mwah, go free your RSA objects π«Άπβ¨
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- epel 10: heimdal-devel 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-devel 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms