diff options
author | Kenny Root <kroot@google.com> | 2016-09-22 15:53:30 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2016-09-22 15:53:41 -0700 |
commit | 02fa18e3caefb812a3611bffbc32f8589c717d42 (patch) | |
tree | 9d7a3b564cb3e8636e957dd327342243beec640a /annotations/generate_annotated_java_files.py | |
parent | 3a72ee28ffce06bfb16cf86ef3feeac2a8ba6f9b (diff) |
GCM ciphers should not allow key and nonce re-use
Re-using a key and IV combination with different data leaks the key in
GCM mode, so we should get IllegalStateException when trying to do this.
Change the tests to make sure we don't try to do this for GCM ciphers
and make sure that there is a test that makes sure this behavior is
enforced.
Test: make -j32 build-art-host vogar && vogar --mode host --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-support-hostdex_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes.jack libcore/luni/src/test/java/libcore/javax/crypto/CipherTest.java
Bug: 30231101
Change-Id: I161665d5bded10092b6028d1cde5ad9c712b2cc0
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions