@Test public void testEncryptAndDecrypt() throws Exception { checkString(""); checkString("a"); checkString("ab"); checkString("dfkljdasklsdfklasdjfklajsdfkljasdklfjasdkljfaskldjf"); checkString(Crypto.getRandomString(500)); checkString("foo bar baz"); checkString("foo\nbar\nbaz"); }
@Test public void testDecryptGarbage() throws Exception { StringBuilder sb = new StringBuilder(); for (int i=0; i < 100; ++i) { assertThrowsBlobCrypterException(sb.toString()); sb.append('a'); } }
@Test public void testDecryptGarbage() throws Exception { StringBuilder sb = new StringBuilder(); for (int i=0; i < 100; ++i) { assertThrowsBlobCrypterException(sb.toString()); sb.append('a'); } }
@Test public void testEncryptAndDecrypt() throws Exception { checkString(""); checkString("a"); checkString("ab"); checkString("dfkljdasklsdfklasdjfklajsdfkljasdklfjasdkljfaskldjf"); checkString(Crypto.getRandomString(500)); checkString("foo bar baz"); checkString("foo\nbar\nbaz"); }
@Test public void testDecryptGarbage() throws Exception { StringBuilder sb = new StringBuilder(); for (int i=0; i < 100; ++i) { assertThrowsBlobCrypterException(sb.toString()); sb.append('a'); } }
@Test public void testEncryptAndDecrypt() throws Exception { checkString(""); checkString("a"); checkString("ab"); checkString("dfkljdasklsdfklasdjfklajsdfkljasdklfjasdkljfaskldjf"); checkString(Crypto.getRandomString(500)); checkString("foo bar baz"); checkString("foo\nbar\nbaz"); }
@Test public void testDecryptGarbage() throws Exception { StringBuilder sb = new StringBuilder(); for (int i=0; i < 100; ++i) { assertThrowsBlobCrypterException(sb.toString()); sb.append('a'); } }
@Test public void testEncryptAndDecrypt() throws Exception { checkString(""); checkString("a"); checkString("ab"); checkString("dfkljdasklsdfklasdjfklajsdfkljasdklfjasdkljfaskldjf"); checkString(Crypto.getRandomString(500)); checkString("foo bar baz"); checkString("foo\nbar\nbaz"); }
@Test public void testDecryptGarbage() throws Exception { StringBuilder sb = new StringBuilder(); for (int i=0; i < 100; ++i) { assertThrowsBlobCrypterException(sb.toString()); sb.append('a'); } }
@Test public void testEncryptAndDecrypt() throws Exception { checkString(""); checkString("a"); checkString("ab"); checkString("dfkljdasklsdfklasdjfklajsdfkljasdklfjasdkljfaskldjf"); checkString(Crypto.getRandomString(500)); checkString("foo bar baz"); checkString("foo\nbar\nbaz"); }