Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
20b2bcb8
Commit
20b2bcb8
authored
9 years ago
by
str4d
Browse files
Options
Downloads
Patches
Plain Diff
Expand JavaDocs for AuthenticatedCipher
parent
3f58af3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
briar-core/src/org/briarproject/crypto/AuthenticatedCipher.java
+25
-3
25 additions, 3 deletions
...core/src/org/briarproject/crypto/AuthenticatedCipher.java
with
25 additions
and
3 deletions
briar-core/src/org/briarproject/crypto/AuthenticatedCipher.java
+
25
−
3
View file @
20b2bcb8
package
org.briarproject.crypto
;
import
java.security.GeneralSecurityException
;
import
org.briarproject.api.crypto.SecretKey
;
import
java.security.GeneralSecurityException
;
interface
AuthenticatedCipher
{
/**
* Initializes this cipher for encryption or decryption with a key and an
* initialisation vector (IV).
*
* @param encrypt whether we are encrypting or decrypting.
* @param key the key material to use.
* @param iv the IV.
* @throws GeneralSecurityException on invalid input.
*/
void
init
(
boolean
encrypt
,
SecretKey
key
,
byte
[]
iv
)
throws
GeneralSecurityException
;
/** Encrypts or decrypts data in a single-part operation. */
/**
* Encrypts or decrypts data in a single-part operation.
*
* @param input the input byte array. If encrypting, the plaintext to be
* encrypted. If decrypting, the ciphertext to be decrypted
* including the MAC.
* @param inputOff the offset into the input array where the data to be
* processed starts.
* @param len the number of bytes to be processed. If decrypting, includes
* the MAC length.
* @param output the output buffer the processed bytes go into. If
* encrypting, the ciphertext including the MAC. If
* decrypting, the plaintext.
* @param outputOff the offset into the output byte array the processed
* data starts at.
* @return the number of bytes processed.
* @throws GeneralSecurityException on invalid input.
*/
int
process
(
byte
[]
input
,
int
inputOff
,
int
len
,
byte
[]
output
,
int
outputOff
)
throws
GeneralSecurityException
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment