asn_add

dgd/doc/kfun/asn_add · 557 B

From the archive dgd-1.4.1.tar.gz

Download the archive   « Back to the archive contents

NAME
	asn_add - add two arbitrary size numbers

SYNOPSIS
	string asn_add(string a, string b, string m)


DESCRIPTION
	Compute the sum of a and b modulo m.  The modulus must be larger than
	zero.
	Arbitrary size numbers are encoded as strings, most significant byte
	first.  The most significant bit in the first byte, when set, indicates
	that the number is negative and encoded in two's complement.

ERRORS
	An error will result if the modulus is less than or equal to zero.

SEE ALSO
	kfun/asn_div, kfun/asn_mod, kfun/asn_mult, kfun/asn_pow, kfun/asn_sub

Site Stats

Snippets: 1791
Codebases: 571