diff options
author | Scott <scott@paragonie.com> | 2016-03-12 17:39:28 -0500 |
---|---|---|
committer | Scott <scott@paragonie.com> | 2016-03-12 17:39:28 -0500 |
commit | 6709366e81deae25c770e52211e04e2afc88d01c (patch) | |
tree | 709b5b168bf5a686d24a68b0c5ff7020a573cf9d /src/Base64DotSlashOrdered.php | |
parent | 0ed01f67e5a3837f3e8b52c2072127d429b3459a (diff) | |
download | constant_time_encoding-0.3.0.zip constant_time_encoding-0.3.0.tar.gz constant_time_encoding-0.3.0.tar.bz2 |
Add Base32Hex, completing RFC 4648 coverage.v0.3.0
Diffstat (limited to 'src/Base64DotSlashOrdered.php')
-rw-r--r-- | src/Base64DotSlashOrdered.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Base64DotSlashOrdered.php b/src/Base64DotSlashOrdered.php index 797cba5..3057738 100644 --- a/src/Base64DotSlashOrdered.php +++ b/src/Base64DotSlashOrdered.php @@ -1,14 +1,20 @@ <?php namespace ParagonIE\ConstantTime; +/** + * Class Base64DotSlashOrdered + * ./[0-9][A-Z][a-z] + * + * @package ParagonIE\ConstantTime + */ abstract class Base64DotSlashOrdered extends Base64 { /** * Base64 character set: - * [A-Z] [a-z] [0-9] + / - * 0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2b, 0x2f + * [.-9] [A-Z] [a-z] + * 0x2e-0x39, 0x41-0x5a, 0x61-0x7a * - * @param $src + * @param int $src * @return int */ protected static function decode6Bits($src) @@ -28,7 +34,7 @@ abstract class Base64DotSlashOrdered extends Base64 } /** - * @param $src + * @param int $src * @return string */ protected static function encode6Bits($src) |