Home
last modified time | relevance | path

Searched refs:BigNum (Results 1 – 20 of 20) sorted by relevance

/external/rust/crates/openssl/src/
Dbn.rs150 pub struct BigNum;
304 pub fn to_owned(&self) -> Result<BigNum, ErrorStack> { in to_owned() argument
305 unsafe { cvt_p(ffi::BN_dup(self.as_ptr())).map(|b| BigNum::from_ptr(b)) } in to_owned()
896 impl BigNum { impl
899 pub fn new() -> Result<BigNum, ErrorStack> { in new()
903 Ok(BigNum::from_ptr(v)) in new()
910 pub fn new_secure() -> Result<BigNum, ErrorStack> { in new_secure()
914 Ok(BigNum::from_ptr(v)) in new_secure()
920 pub fn from_u32(n: u32) -> Result<BigNum, ErrorStack> { in from_u32() argument
921 BigNum::new().and_then(|v| unsafe { in from_u32()
[all …]
Ddsa.rs15 use crate::bn::{BigNum, BigNumRef};
220 p: BigNum, in from_private_components() argument
221 q: BigNum, in from_private_components() argument
222 g: BigNum, in from_private_components() argument
223 priv_key: BigNum, in from_private_components() argument
224 pub_key: BigNum, in from_private_components() argument
262 p: BigNum, in from_public_components() argument
263 q: BigNum, in from_public_components() argument
264 g: BigNum, in from_public_components() argument
265 pub_key: BigNum, in from_public_components() argument
[all …]
Dec.rs23 use crate::bn::{BigNum, BigNumContextRef, BigNumRef};
143 p: BigNum, in from_components() argument
144 a: BigNum, in from_components() argument
145 b: BigNum, in from_components() argument
254 order: BigNum, in set_generator() argument
255 cofactor: BigNum, in set_generator() argument
996 use crate::bn::{BigNum, BigNumContext};
1013 let p = BigNum::from_hex_str( in ec_group_from_components()
1017 let a = BigNum::from_hex_str( in ec_group_from_components()
1021 let b = BigNum::from_hex_str( in ec_group_from_components()
[all …]
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() argument
437 pub fn new(n: BigNum, e: BigNum, d: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in new() argument
453 pub fn set_factors(self, p: BigNum, q: BigNum) -> Result<RsaPrivateKeyBuilder, ErrorStack> { in set_factors() argument
469 dmp1: BigNum, in set_crt_params() argument
470 dmq1: BigNum, in set_crt_params() argument
471 iqmp: BigNum, in set_crt_params() argument
508 n: BigNum, in from_private_components() argument
509 e: BigNum, in from_private_components() argument
510 d: BigNum, in from_private_components() argument
[all …]
Ddh.rs8 use crate::bn::{BigNum, BigNumRef};
45 pub fn from_params(p: BigNum, g: BigNum, q: BigNum) -> Result<Dh<Params>, ErrorStack> { in from_params() argument
52 prime_p: BigNum, in from_pqg() argument
53 prime_q: Option<BigNum>, in from_pqg() argument
54 generator: BigNum, in from_pqg() argument
70 pub fn set_private_key(self, priv_key: BigNum) -> Result<Dh<Private>, ErrorStack> { in set_private_key()
305 use crate::bn::BigNum;
322 let prime_p = BigNum::from_hex_str( in test_dh_params()
330 let prime_q = BigNum::from_hex_str( in test_dh_params()
338 let generator = BigNum::from_hex_str( in test_dh_params()
Dasn1.rs39 use crate::bn::{BigNum, BigNumRef};
523 pub fn to_bn(&self) -> Result<BigNum, ErrorStack> { in to_bn() argument
526 .map(|p| BigNum::from_ptr(p)) in to_bn()
668 use crate::bn::BigNum;
674 fn roundtrip(bn: BigNum) { in bn_cvt() argument
679 roundtrip(BigNum::from_dec_str("1000000000000000000000000000000000").unwrap()); in bn_cvt()
680 roundtrip(-BigNum::from_dec_str("1000000000000000000000000000000000").unwrap()); in bn_cvt()
681 roundtrip(BigNum::from_u32(1234).unwrap()); in bn_cvt()
682 roundtrip(-BigNum::from_u32(1234).unwrap()); in bn_cvt()
Decdsa.rs9 use crate::bn::{BigNum, BigNumRef};
47 pub fn from_private_components(r: BigNum, s: BigNum) -> Result<EcdsaSig, ErrorStack> { in from_private_components() argument
/external/python/cpython3/Lib/test/test_json/
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.really_huge,
/external/rust/beto-rust/nearby/crypto/crypto_provider_openssl/src/
Dp256.rs17 use openssl::bn::{BigNum, BigNumContext};
79 let bn_x = BigNum::from_slice(x)?;
80 let bn_y = BigNum::from_slice(y)?;
90 let mut p256x = BigNum::new()?;
91 let mut p256y = BigNum::new()?;
155 let private_key_bn = BigNum::from_slice(private_bytes)?;
/external/rust/crates/openssl/examples/
Dmk_certs.rs5 use openssl::bn::{BigNum, MsbOption};
31 let mut serial = BigNum::new()?; in mk_ca_cert()
94 let mut serial = BigNum::new()?; in mk_ca_signed_cert()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCAsmMacro.h33 BigNum, // larger than 64 bits enumerator
121 assert((Kind == Integer || Kind == BigNum) && in getAPIntVal()
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h37 BigNum, // larger than 64 bits enumerator
117 assert((Kind == Integer || Kind == BigNum) && in getAPIntVal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DMCAsmLexer.cpp61 case AsmToken::BigNum: OS << "BigNum"; break; in dump()
DAsmLexer.cpp276 return AsmToken(AsmToken::BigNum, Ref, Value); in intToken()
DAsmParser.cpp1181 case AsmToken::BigNum: in parsePrimaryExpr()
3065 Asm.getTok().isNot(AsmToken::BigNum)) in parseHexOcta()
/external/rust/crates/openssl/src/x509/
Dtests.rs4 use crate::bn::{BigNum, MsbOption};
232 let mut serial = BigNum::new().unwrap(); in x509_builder()
/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp247 return AsmToken(AsmToken::BigNum, Ref, Value); in intToken()
DAsmParser.cpp972 case AsmToken::BigNum: in parsePrimaryExpr()
2700 Lexer.getKind() != AsmToken::BigNum) in parseDirectiveOctaValue()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/AsmParser/
DAVRAsmParser.cpp527 case AsmToken::BigNum: in parseOperand()
/external/rust/crates/openssl/
DCHANGELOG.md110 * Added `BigNum::new_secure`, `BigNumReef::set_const_time`, `BigNumref::is_const_time`, and `BigNum…