1Crypt::RSA::DataFormat(U3s)er Contributed Perl DocumentatCiroynpt::RSA::DataFormat(3)
2
3
4

NAME

6       Crypt::RSA::DataFormat - Data creation, conversion and reporting primi‐
7       tives.
8

DESCRIPTION

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

FUNCTIONS

15       i2osp Integer, Length
16           Integer To Octet String Primitive. Converts an integer into its
17           equivalent octet string representation of length Length. If neces‐
18           sary, the resulting string is prefixed with nulls. If Length is not
19           provided, returns an octet string of shortest possible length.
20
21       h2osp Hex String
22           Hex To Octet String Primitive. Converts a hex string into its
23           equivalent octet string representation and returns an octet string
24           of shortest possible length. The hex string is not prefixed with
25           "0x", etc.
26
27       os2ip String
28           Octet String to Integer Primitive. Converts an octet string into
29           its equivalent integer representation.
30
31       generate_random_octet Length, Strength
32           Generates a random octet string of length Length. Strength speci‐
33           fies the degree of randomness. See Crypt::Random(3) for an explana‐
34           tion of the Strength parameter.
35
36       bitsize Integer
37           Returns the length of the Integer in bits.
38
39       octet_len Integer
40           Returns the octet length of the integer. If the length is not a
41           whole number, the fractional part is dropped to make it whole.
42
43       octet_xor String1, String2
44           Returns the result of String1 XOR String2.
45
46       steak String, Length
47           Returns an array of segments of length Length from String. The
48           final segment can be smaller than Length.
49

AUTHOR

51       Vipul Ved Prakash, <mail@vipul.net>
52
53
54
55perl v5.8.8                       2007-04-17         Crypt::RSA::DataFormat(3)
Impressum