2003-07-23 12:12:24 -04:00
|
|
|
/*
|
|
|
|
* 'OpenSSL for Ruby' project
|
|
|
|
* Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
/*
|
2015-04-19 23:55:09 -04:00
|
|
|
* This program is licensed under the same licence as Ruby.
|
2003-07-23 12:12:24 -04:00
|
|
|
* (See the file 'LICENCE'.)
|
|
|
|
*/
|
|
|
|
#if !defined(_OSSL_BN_H_)
|
|
|
|
#define _OSSL_BN_H_
|
|
|
|
|
|
|
|
extern VALUE cBN;
|
|
|
|
extern VALUE eBNError;
|
|
|
|
|
2020-12-18 04:19:33 -05:00
|
|
|
BN_CTX *ossl_bn_ctx_get(void);
|
|
|
|
#define ossl_bn_ctx ossl_bn_ctx_get()
|
2007-04-03 03:02:44 -04:00
|
|
|
|
2016-12-10 03:12:02 -05:00
|
|
|
#define GetBNPtr(obj) ossl_bn_value_ptr(&(obj))
|
|
|
|
|
2007-04-03 03:02:44 -04:00
|
|
|
VALUE ossl_bn_new(const BIGNUM *);
|
2016-12-10 03:12:02 -05:00
|
|
|
BIGNUM *ossl_bn_value_ptr(volatile VALUE *);
|
2003-07-23 12:12:24 -04:00
|
|
|
void Init_ossl_bn(void);
|
|
|
|
|
2007-04-03 03:02:44 -04:00
|
|
|
|
2003-07-23 12:12:24 -04:00
|
|
|
#endif /* _OSS_BN_H_ */
|