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

NAME

6       Crypt::RSA::DataFormat - Data creation, conversion and reporting
7       primitives.
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
18           necessary, the resulting string is prefixed with nulls. If Length
19           is not provided, returns an octet string of shortest possible
20           length.
21
22       h2osp Hex String
23           Hex To Octet String Primitive. Converts a hex string into its
24           equivalent octet string representation and returns an octet string
25           of shortest possible length. The hex string is not prefixed with
26           "0x", etc.
27
28       os2ip String
29           Octet String to Integer Primitive. Converts an octet string into
30           its equivalent integer representation.
31
32       generate_random_octet Length, Strength
33           Generates a random octet string of length Length. Strength
34           specifies the degree of randomness. See Crypt::Random(3) for an
35           explanation of the Strength parameter.
36
37       bitsize Integer
38           Returns the length of the Integer in bits.
39
40       octet_len Integer
41           Returns the octet length of the integer. If the length is not a
42           whole number, the fractional part is dropped to make it whole.
43
44       octet_xor String1, String2
45           Returns the result of String1 XOR String2.
46
47       steak String, Length
48           Returns an array of segments of length Length from String. The
49           final segment can be smaller than Length.
50

AUTHOR

52       Vipul Ved Prakash, <mail@vipul.net>
53
54
55
56perl v5.32.0                      2020-07-28         Crypt::RSA::DataFormat(3)
Impressum