RDF::Crypt::Role::DoesEncrypt
scrambling methods
- Provided by: librdf-crypt-perl (Version: 0.002-2)
- Report a bug
scrambling methods
The encryption works by serialising the data as RDF/XML, then encrypting it with "encrypt_text".
Options:
Returns a the message's Message-ID, or undef if unsuccessful.
The return value is a base64-encoded string. The base64-decoded value consists of: (1) an initialisation vector, sixteen bytes shorter than the size of the key; (2) a 16-bit big-endian signed integer indicating the length of padding which was added to the payload of the message during encryption; (3) the payload, encrypted using cipher-block chaining with OAEP, with block length sixteen bytes shorter than the key size. These three parts are concatenated together in that order.
This role does not implement these methods, but requires classes to implement them instead:
RDF::Crypt, RDF::Crypt::Encrypter, RDF::Crypt::Decrypter.
Please report any bugs to <http://rt.cpan.org/>.
Toby Inkster <tobyink@cpan.org>.
Copyright 2010, 2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.