Home
last modified time | relevance | path

Searched refs:BigNum (Results 1 - 15 of 15) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
H A Dbn.rs0 //! BigNum implementation
4 //! of BigNum uses dynamically assigned memory to store an array of bit chunks. This
12 //! use openssl::bn::BigNum;
16 //! let a = BigNum::new()?; // a = 0
17 //! let b = BigNum::from_dec_str("1234567890123456789012345")?;
67 /// Options for the most significant bits of a randomly generated `BigNum`.
90 /// BigNum values are stored dynamically and therefore can be expensive
92 /// internally when passing BigNum values between subroutines.
129 /// Perform large number mathematics. Create a new BigNum
135 /// [`new`]: struct.BigNum
150 pub struct BigNum; global() structure names
930 impl BigNum { global() impls
[all...]
H A Ddsa.rs16 use crate::bn::{BigNum, BigNumRef};
197 pub fn from_pqg(p: BigNum, q: BigNum, g: BigNum) -> Result<Dsa<Params>, ErrorStack> { in from_pqg()
252 p: BigNum, in from_private_components()
253 q: BigNum, in from_private_components()
254 g: BigNum, in from_private_components()
255 priv_key: BigNum, in from_private_components()
256 pub_key: BigNum, in from_private_components()
294 p: BigNum, in from_public_components()
[all...]
H A Drsa.rs33 use crate::bn::{BigNum, BigNumRef};
377 pub fn from_public_components(n: BigNum, e: BigNum) -> Result<Rsa<Public>, ErrorStack> { in from_public_components()
437 pub fn new(n: BigNum, e: BigNum, d: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in new()
453 pub fn set_factors(self, p: BigNum, q: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in set_factors()
469 dmp1: BigNum, in set_crt_params()
470 dmq1: BigNum, in set_crt_params()
[all...]
H A Ddh.rs8 use crate::bn::{BigNum, BigNumRef};
55 pub fn from_params(p: BigNum, g: BigNum, q: BigNum) -> Result<Dh<Params>, ErrorStack> { in from_params()
62 prime_p: BigNum, in from_pqg()
63 prime_q: Option<BigNum>, in from_pqg()
64 generator: BigNum, in from_pqg()
80 pub fn set_public_key(self, pub_key: BigNum) -> Result<Dh<Public>, ErrorStack> { in set_public_key()
90 pub fn set_private_key(self, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_private_key()
103 pub fn set_key(self, pub_key: BigNum, priv_ke
[all...]
H A Decdsa.rs9 use crate::bn::{BigNum, BigNumRef};
47 pub fn from_private_components(r: BigNum, s: BigNum) -> Result<EcdsaSig, ErrorStack> { in from_private_components()
H A Dec.rs24 use crate::bn::{BigNum, BigNumContextRef, BigNumRef};
151 p: BigNum, in from_components()
152 a: BigNum, in from_components()
153 b: BigNum, in from_components()
169 /// Places the components of a curve over a prime field in the provided `BigNum`s.
191 /// Places the components of a curve over a binary field in the provided `BigNum`s.
218 /// Places the cofactor of the group in the provided `BigNum`.
262 order: BigNum, in set_generator()
263 cofactor: BigNum, in set_generator()
276 /// Places the order of the curve in the provided `BigNum`
[all...]
H A Dasn1.rs39 use crate::bn::{BigNum, BigNumRef};
490 /// Integers in ASN.1 may include BigNum, int64 or uint64. BigNum implementation
539 /// Converts the integer to a `BigNum`.
541 pub fn to_bn(&self) -> Result<BigNum, ErrorStack> { in to_bn()
544 .map(|p| BigNum::from_ptr(p)) in to_bn()
781 use crate::bn::BigNum;
784 /// Tests conversion between BigNum and Asn1Integer.
787 fn roundtrip(bn: BigNum) { in bn_cvt()
792 roundtrip(BigNum in bn_cvt()
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_enum.py10 class BigNum(IntEnum): class
53 for enum in BigNum:
59 self.assertEqual(self.dumps(list(BigNum)),
61 self.assertEqual(self.loads(self.dumps(list(BigNum))),
62 list(BigNum))
74 s, b, h, r = BigNum
96 tiny=BigNum.small,
97 large=BigNum.big,
98 larger=BigNum.huge,
99 largest=BigNum
[all...]
/third_party/rust/crates/rust-openssl/openssl/examples/
H A Dmk_certs.rs7 use openssl::bn::{BigNum, MsbOption};
33 let mut serial = BigNum::new()?; in mk_ca_cert()
96 let mut serial = BigNum::new()?; in mk_ca_signed_cert()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
H A DMCAsmMacro.h33 BigNum, // larger than 64 bits enumerator
121 assert((Kind == Integer || Kind == BigNum) && in getAPIntVal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp61 case AsmToken::BigNum: OS << "BigNum"; break; in dump()
H A DAsmLexer.cpp276 return AsmToken(AsmToken::BigNum, Ref, Value); in intToken()
H A DAsmParser.cpp1181 case AsmToken::BigNum: in parsePrimaryExpr()
3065 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dtests.rs4 use crate::bn::{BigNum, MsbOption};
234 let expected = BigNum::from_u32(3).unwrap(); in test_authority_issuer_and_serial()
307 let mut serial = BigNum::new().unwrap(); in x509_builder()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp527 case AsmToken::BigNum: in parseOperand()

Completed in 20 milliseconds