Ruby: ext/openssl/ossl_bn.h Source File

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

ossl_bn.h
Go to the documentation of this file.
1/*
2 * 'OpenSSL for Ruby' project
3 * Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
4 * All rights reserved.
5 */
6/*
7 * This program is licensed under the same licence as Ruby.
8 * (See the file 'LICENCE'.)
9 */
10#if !defined(_OSSL_BN_H_)
11#define _OSSL_BN_H_
12
13extern VALUE cBN;
14extern VALUE eBNError;
15
16BN_CTX *ossl_bn_ctx_get(void);
17#define ossl_bn_ctx ossl_bn_ctx_get()
18
19#define GetBNPtr(obj) ossl_bn_value_ptr(&(obj))
20
21 VALUE ossl_bn_new(const BIGNUM *);
22BIGNUM *ossl_bn_value_ptr(volatile VALUE *);
23void Init_ossl_bn(void);
24
25
26#endif /* _OSS_BN_H_ */
cBN
VALUE cBN
Definition: ossl_bn.c:50
eBNError
VALUE eBNError
Definition: ossl_bn.c:56
ossl_bn_value_ptr
BIGNUM * ossl_bn_value_ptr(volatile VALUE *)
Definition: ossl_bn.c:140
ossl_bn_new
VALUE ossl_bn_new(const BIGNUM *)
Definition: ossl_bn.c:62
ossl_bn_ctx_get
BN_CTX * ossl_bn_ctx_get(void)
Definition: ossl_bn.c:192
Init_ossl_bn
void Init_ossl_bn(void)
Definition: ossl_bn.c:1148
VALUE
unsigned long VALUE
Definition: value.h:38