Ruby: ext/openssl/ossl_cipher.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Functions | Variables
ossl_cipher.h File Reference

Go to the source code of this file.

## Functions
const EVP_CIPHER * | ossl_evp_get_cipherbyname (VALUE)
VALUE | ossl_cipher_new (const EVP_CIPHER *)
void | Init_ossl_cipher (void)

## Variables
VALUE | cCipher
VALUE | eCipherError

## Function Documentation

## ◆ Init_ossl_cipher()

void Init_ossl_cipher | ( | void |  | ) |

Definition at line 845 of file ossl_cipher.c.

References cCipher, eCipherError, eOSSLError, mOSSL, rb_cObject, rb_define_alloc_func(), rb_define_class_under(), rb_define_method, rb_define_module(), rb_define_module_function, and rb_eStandardError.

Referenced by Init_openssl().

## ◆ ossl_cipher_new()

VALUE ossl_cipher_new | ( | const EVP_CIPHER * | cipher | ) |

Definition at line 75 of file ossl_cipher.c.

References AllocCipher, cCipher, eCipherError, NULL, and ossl_raise().

## ◆ ossl_evp_get_cipherbyname()

const EVP_CIPHER * ossl_evp_get_cipherbyname | ( | VALUE | obj | ) |

Definition at line 52 of file ossl_cipher.c.

References cCipher, GetCipher, ossl_raise(), PRIsVALUE, rb_eArgError, rb_obj_is_kind_of(), RSTRING_PTR, and StringValueCStr.

## Variable Documentation

## ◆ cCipher

VALUE cCipher
| extern

Definition at line 33 of file ossl_cipher.c.

Referenced by Init_ossl_cipher(), ossl_cipher_new(), and ossl_evp_get_cipherbyname().

## ◆ eCipherError

VALUE eCipherError
| extern

Definition at line 34 of file ossl_cipher.c.

Referenced by Init_ossl_cipher(), and ossl_cipher_new().