summaryrefslogtreecommitdiffstats
path: root/libmincrypt
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-01-29 10:47:38 -0800
committerDoug Zongker <dougz@android.com>2010-01-29 10:47:38 -0800
commit5e12d739c6b86b79d761f45a1c0399e0d42d1cb5 (patch)
tree5d8ec38472e39022b12b5efbb1bdb31cc410ba91 /libmincrypt
parent2f3d96ee5b6ba43b49d0e08c75b9a74b05f37b8b (diff)
downloadsystem_core-5e12d739c6b86b79d761f45a1c0399e0d42d1cb5.zip
system_core-5e12d739c6b86b79d761f45a1c0399e0d42d1cb5.tar.gz
system_core-5e12d739c6b86b79d761f45a1c0399e0d42d1cb5.tar.bz2
make DumpPublicKeys write 32-bit values as unsigned
Write the 32-bit chunks of N and RR as unsigned, so we get: {64,0xc926ad21,{1795090719,2141396315,950055447,2581568430,4268923165,... instead of: {64,0xc926ad21,{1795090719,2141396315,950055447,-1713398866,-26044131,... Change-Id: I575224fd7f7c34e06a1b6ae976eaa0bef41d2942
Diffstat (limited to 'libmincrypt')
-rw-r--r--libmincrypt/tools/DumpPublicKey.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmincrypt/tools/DumpPublicKey.java b/libmincrypt/tools/DumpPublicKey.java
index c9e7e4d..d2935e0 100644
--- a/libmincrypt/tools/DumpPublicKey.java
+++ b/libmincrypt/tools/DumpPublicKey.java
@@ -77,7 +77,7 @@ class DumpPublicKey {
// Write out modulus as little endian array of integers.
result.append(",{");
for (int i = 0; i < nwords; ++i) {
- int n = N.mod(B).intValue();
+ long n = N.mod(B).longValue();
result.append(n);
if (i != nwords - 1) {
@@ -91,7 +91,7 @@ class DumpPublicKey {
// Write R^2 as little endian array of integers.
result.append(",{");
for (int i = 0; i < nwords; ++i) {
- int rr = RR.mod(B).intValue();
+ long rr = RR.mod(B).longValue();
result.append(rr);
if (i != nwords - 1) {