Discussion:
PHP's "openssl_seal" equivalent in BouncyCastle (C#)?
Alex Mirzayanov
2013-03-08 02:15:07 UTC
Permalink
Greetings all,

Can anyone shed some light if BouncyCastle (C#) provides support to the
equivalent of "openssl_seal" command in PHP (
http://php.net/manual/en/function.openssl-seal.php) ? I tried using
RC4Engine but it doesn't seem to do the trick. Many thanks in advance!

Cheers,
-A
Peter Dettman
2013-03-10 04:18:47 UTC
Permalink
There is no specific implementation of openssl_seal in the library, but
all the machinery you would need to do it is there. At your provided
link is another link to a (half-)example in Java using BC
(http://blog.local.ch/en/2007/10/29/openssl-php-to-java/), so a C#
equivalent should be pretty straightforward. Of course RC4Engine is not
sufficient by itself because RSA has been used to wrap the key.

Regards,
Pete Dettman
Post by Alex Mirzayanov
Greetings all,
Can anyone shed some light if BouncyCastle (C#) provides support to
the equivalent of "openssl_seal" command in PHP
(http://php.net/manual/en/function.openssl-seal.php) ? I tried using
RC4Engine but it doesn't seem to do the trick. Many thanks in advance!
Cheers,
-A
Loading...