Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
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
16extern BN_CTX *ossl_bn_ctx;
17
18#define GetBNPtr(obj) ossl_bn_value_ptr(&(obj))
19
20VALUE ossl_bn_new(const BIGNUM *);
21BIGNUM *ossl_bn_value_ptr(volatile VALUE *);
22void Init_ossl_bn(void);
23
24
25#endif /* _OSS_BN_H_ */
VALUE cBN
Definition: ossl_bn.c:46
VALUE eBNError
Definition: ossl_bn.c:52
BN_CTX * ossl_bn_ctx
Definition: ossl_bn.c:158
BIGNUM * ossl_bn_value_ptr(volatile VALUE *)
Definition: ossl_bn.c:136
VALUE ossl_bn_new(const BIGNUM *)
Definition: ossl_bn.c:58
void Init_ossl_bn(void)
Definition: ossl_bn.c:1095
unsigned long VALUE