blib/lib/Encoding/BER/DER.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
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 use Encoding::BER;
12 use vars qw($VERSION @ISA);
13 $VERSION = '1.00';
14 @ISA = qw(Encoding::BER);
15 use strict;
16  
17 sub new {
18 my $cl = shift;
19  
20 $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;
52