You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2006/10/17 01:24:37 UTC

[jira] Commented: (CODEC-40) [codec] Patch to add crypto-compatible BigInteger encoding support to Base64

    [ http://issues.apache.org/jira/browse/CODEC-40?page=comments#action_12442748 ] 
            
Gary Gregory commented on CODEC-40:
-----------------------------------

I think it would be nice to have the tests and unit tests cover some simple and edge cases: null, -1, 0, 1 as well as bogus byte arrays. A senisble error should be throws NullArgumentException, Illegal ArgumentException, etc.

> [codec] Patch to add crypto-compatible BigInteger encoding support to Base64
> ----------------------------------------------------------------------------
>
>                 Key: CODEC-40
>                 URL: http://issues.apache.org/jira/browse/CODEC-40
>             Project: Commons Codec
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>         Environment: Operating System: All
> Platform: All
>            Reporter: Chris Black
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: addCryptoIntegerCoding
>
>
> There are crypto standards that require large integers for keys to be encoded in
> base64 with some special caveats (no sign bit, padding, etc). One of the
> standards that requires this is the w3c's XML-Signature standard. This patch
> adds this support along with junit tests. This code is taken from the Apache XML
> Security project's own Base64 class and changed to be more readable and add
> junit tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org