aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/LargeConstraints.py
diff options
context:
space:
mode:
authorGustav Simonsson <[email protected]>2012-08-15 17:03:28 +0200
committerGustav Simonsson <[email protected]>2012-08-15 17:03:28 +0200
commit80cada1182d0a1a8afc84e3c3fa316bcf5649736 (patch)
tree02ed79c00de04fa227f2512fee014908ffa306b1 /lib/asn1/test/asn1_SUITE_data/LargeConstraints.py
parent89dbbd069886869ab7797ca938fb54d152cd77d4 (diff)
parent49a4c58106ca913328b5f28e7124e820b15e4b43 (diff)
downloadotp-80cada1182d0a1a8afc84e3c3fa316bcf5649736.tar.gz
otp-80cada1182d0a1a8afc84e3c3fa316bcf5649736.tar.bz2
otp-80cada1182d0a1a8afc84e3c3fa316bcf5649736.zip
Merge branch 'gustav/asn1/per_integer_ranges/OTP-10128' into maint
* gustav/asn1/per_integer_ranges/OTP-10128: Keep encoded octets of constrained whole number value and range as binaries and use erlang:byte_size to get length of octets and range. For speed. Add support for larger integer ranges in per encode/decode
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/LargeConstraints.py')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/LargeConstraints.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/LargeConstraints.py b/lib/asn1/test/asn1_SUITE_data/LargeConstraints.py
new file mode 100644
index 0000000000..68c7616b62
--- /dev/null
+++ b/lib/asn1/test/asn1_SUITE_data/LargeConstraints.py
@@ -0,0 +1,9 @@
+LargeConstraints DEFINITIONS ::=
+BEGIN
+
+-- Maximum number that can be encoded as a constrained whole number: 1 bsl (255*8)
+-- The number of octets needed to represent a number cannot be more than 255
+-- As the length field is encoded as a 8-bit bitfield.
+RangeMax ::= INTEGER (1..126238304966058622268417487065116999845484776053576109500509161826268184136202698801551568013761380717534054534851164138648904527931605160527688095259563605939964364716019515983399209962459578542172100149937763938581219604072733422507180056009672540900709554109516816573779593326332288314873251559077853068444977864803391962580800682760017849589281937637993445539366428356761821065267423102149447628375691862210717202025241630303118559188678304314076943801692528246980959705901641444238894928620825482303431806955690226308773426829503900930529395181208739591967195841536053143145775307050594328881077553168201547776)
+
+END