Vipul Ved Prakash > Crypt-RSA-1.50 > Crypt::RSA::DataFormat

Download:
Crypt-RSA-1.50.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  9
Open  6
View/Report Bugs
Source   Latest Release: Crypt-RSA-1.99

NAME ^

Crypt::RSA::DataFormat - Data creation, conversion and reporting primitives.

DESCRIPTION ^

This module implements several data creation, conversion and reporting primitives used throughout the Crypt::RSA implementation. Primitives are available as exportable functions.

FUNCTIONS ^

i2osp Integer, Length

Integer To Octet String Primitive. Converts an integer into its equivalent octet string representative of length Length. If necessary, the resulting string is prefixed with nulls.

os2ip String

Octet String to Integer Primitive. Converts an octet string into its equivalent integer representative.

generate_random_octet Length, Strength

Generates a random octet string of length Length. Strength specifies the degree of randomness. See Crypt::Random(3) for an explanation of the Strength parameter.

bitsize Integer

Returns the length of the Integer in bits.

octet_len Integer

Returns the octet length of the integer. If the length is not a whole number, the fractional part is dropped to make it whole.

octet_xor String1, String2

Returns the result of String1 XOR String2.

steak String, Length

Returns an array of segments of length Length from String. The final segment can be smaller than Length.

AUTHOR ^

Vipul Ved Prakash, <mail@vipul.net>

syntax highlighting: