Instance Methodswift-crypto 3.9.1CryptoBoringWrapper
withUnsafeBignumPointer(_:)
ArbitraryPrecisionInteger.swift:141func withUnsafeBignumPointer<T>(_ body: (UnsafePointer<BIGNUM>) throws -> T) rethrows -> T
Other members in extension
Typealiases
Type members
init(
) init(ArbitraryPrecisionInteger
) throws init<Bytes>(bytes: Bytes
) throws init(copying: UnsafePointer<BIGNUM>
) throws init?<T>(exactly: T
) init(hexString: String
) throws Create an
ArbitraryPrecisionInteger
from a hex string.init(integerLiteral: Int64
) static var zero: ArbitraryPrecisionInteger
static func gcd(ArbitraryPrecisionInteger, ArbitraryPrecisionInteger
) throws -> ArbitraryPrecisionInteger static func inverse(lhs: ArbitraryPrecisionInteger, modulo: ArbitraryPrecisionInteger
) throws -> ArbitraryPrecisionInteger static func random(inclusiveMin: UInt, exclusiveMax: ArbitraryPrecisionInteger
) throws -> ArbitraryPrecisionInteger static func * (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> ArbitraryPrecisionInteger static func *= (lhs: inout ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) static func + (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> ArbitraryPrecisionInteger static func += (lhs: inout ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) static func - (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> ArbitraryPrecisionInteger static func -= (lhs: inout ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) static func / (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> ArbitraryPrecisionInteger static func < (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> Bool static func <= (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> Bool static func == (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> Bool static func > (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> Bool static func >= (lhs: ArbitraryPrecisionInteger, rhs: ArbitraryPrecisionInteger
) -> Bool static func >> (lhs: ArbitraryPrecisionInteger, rhs: Int32
) -> ArbitraryPrecisionInteger
Instance members
var byteCount: Int
var debugDescription: String
var isEven: Bool
var magnitude: Magnitude
var trailingZeroBitCount: Int32
func add(ArbitraryPrecisionInteger, modulo: ArbitraryPrecisionInteger?
) throws -> ArbitraryPrecisionInteger func inverse(modulo: ArbitraryPrecisionInteger
) throws -> ArbitraryPrecisionInteger func isCoprime(with: ArbitraryPrecisionInteger
) throws -> Bool func modulo(ArbitraryPrecisionInteger, nonNegative: Bool
) throws -> ArbitraryPrecisionInteger func mul(ArbitraryPrecisionInteger, modulo: ArbitraryPrecisionInteger?
) throws -> ArbitraryPrecisionInteger func negate(
) func positiveSquareRoot(
) throws -> ArbitraryPrecisionInteger func squared(
) -> ArbitraryPrecisionInteger func sub(ArbitraryPrecisionInteger, modulo: ArbitraryPrecisionInteger?
) throws -> ArbitraryPrecisionInteger func withUnsafeMutableBignumPointer<T>((UnsafeMutablePointer<BIGNUM>) throws -> T
) rethrows -> T