DO NOT MERGE bouncycastle: limit input length as specified by the NIST spec

Bug: 24106146

Adapted from commit 9462245630b2913830b63310aa0d40a0901ccae5

Change-Id: Ic3cb8d87ac86700cab15c553e9cc638b55d92df4
(cherry picked from commit a657c1de21d7741c1e93c623d7b8d00f8883aff7)
2 files changed