lib/Encoding/BER/DER.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Encoding/BER/Dumper.pm ↑ Summary
1 # -*- perl -*-
2  
3 # Copyright (c) 2007 by Jeff Weisberg
4 # Author: Jeff Weisberg <jaw+pause @ tcp4me.com>
5 # Created: 2007-Feb-04 16:35 (EST)
6 # Function: DER
7 #
8 # $Id: DER.pm,v 1.5 2007/03/06 02:50:10 jaw Exp $
9  
10 package Encoding::BER::DER;
11 1 ▶use Encoding::BER;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use vars qw($VERSION @ISA);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 $VERSION = '1.00';
14 1 @ISA = qw(Encoding::BER);
15 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 23 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
18 23 my $cl = shift;
19  
20 23 $cl->SUPER::new( @_, flavor => 'DER' );
21 }
22  
23 =head1 NAME
24  
25 Encoding::BER::DER - Perl module for encoding/decoding data using ASN.1 Distinguished Encoding Rules (DER)
26  
27 =head1 SYNOPSIS
28  
29 use Encoding::BER::DER;
30 my $enc = Encoding::BER::DER->new();
31 my $der = $enc->encode( $data );
32 my $xyz = $enc->decode( $der );
33  
34 =head1 BUGS
35  
36 Items with a length larger than can fit in 32 bits, will be encoded using
37 the indefinite form.
38
39 =head1 SEE ALSO
40  
41 Encoding::BER, Encoding::BER::CER
42  
43 =head1 AUTHOR
44  
45 Jeff Weisberg - http://www.tcp4me.com/
46  
47 =cut
48 ;
49  
50  
51 1 1;
52  
« lib/Encoding/BER/Dumper.pm ↑ Summary