CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/perl5/x86_64-linux-thread-multi/Crypt/
Upload File :
Current File : //proc/2/root/usr/share/perl5/x86_64-linux-thread-multi/Crypt/Mac.pm

package Crypt::Mac;

use strict;
use warnings;
our $VERSION = '0.050';

require Exporter; our @ISA = qw(Exporter); ### use Exporter 'import';
our %EXPORT_TAGS = ( all => [qw( mac mac_hex )] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw();

sub add {
  my $self = shift;
  $self->_add_single($_) for (@_);
  return $self;
}

sub addfile {
  my ($self, $file) = @_;

  my $handle;
  if (ref(\$file) eq 'SCALAR') {
    #filename
    open($handle, "<", $file) || die "FATAL: cannot open '$file': $!";
    binmode($handle);
  }
  else {
    #handle
    $handle = $file
  }
  die "FATAL: invalid handle" unless defined $handle;

  my $n;
  my $buf = "";
  while (($n = read($handle, $buf, 32*1024))) {
    $self->_add_single($buf)
  }
  die "FATAL: read failed: $!" unless defined $n;

  return $self;
}

sub CLONE_SKIP { 1 } # prevent cloning

1;

__END__
 
=head1 NAME

Crypt::mode - [internal only]

=cut

Copyright 2K16 - 2K18 Indonesian Hacker Rulez