#!/usr/bin/perl package Crypt::Random::Source::SSLeay; use Squirrel; extends qw(Crypt::Random::Source::Base); use Net::SSLeay (); our $VERSION = "0.01"; sub rank { 200 } sub available { 1 } sub seed { # RAND_add is documented but not implemented #my ( $self, @stuff ) = @_; #NET::SSLeay::RAND_add($_, length, 0) for @stuff; } __END__ =pod =head1 NAME Crypt::Random::Source::SSLeay - L support for L =head1 SYNOPSIS use Crypt::Random::Source::Strong::SSLeay; my $src = Crypt::Random::Source::Strong::SSLeay->new; my $random = $src->get(1024); =head1 DESCRIPTION This module implements L based random number generation for L. L does not wrap the SSL api, and C is documented as being cryptographically strong, so L is also provided (as opposed to the other OpenSSL based sources). =head1 METHODS =over 4 =item get Get 10 random or pseudorandom bytes (depending on strength) from L. =item seed Currently unimplemented, but L documents C. Might be added in the future. =back =head1 VERSION CONTROL This module is maintained using Darcs. You can get the latest version from L, and use C to commit changes. =head1 AUTHOR Yuval Kogman Enothingmuch@woobling.orgE =head1 COPYRIGHT Copyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut