Index

A B C D E F G K N R S W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

addRecipient(byte[], PrivateKey, PublicKey) - Method in class no.uio.ifi.crypt4gh.util.Crypt4GHUtils
Adds recipient to a header.

B

BEGIN_CRYPT4GH_ENCRYPTED_PRIVATE_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Header line text for private key file in Crypt4GH format
BEGIN_CRYPT4GH_PUBLIC_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Header line text for public key file in Crypt4GH format
BEGIN_PRIVATE_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Header line text for private key file in OpenSSL format
BEGIN_PUBLIC_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Header line text for public key file in OpenSSL format

C

CHA_CHA_20 - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
A constant string with the value "ChaCha20"
constructPrivateKey(byte[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Constructs X25519 private key from scalar.
constructPublicKey(byte[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Constructs X25519 PUBLIC key from U.
CRYPT4GH_AUTH_MAGIC - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Magic number string used at the beginning of private key files in Crypt4GH format
Crypt4GHEntity - Interface in no.uio.ifi.crypt4gh.pojo
Crypt4GH entity, mostly to extend Serializable interface, but also to provide LittleEndian conversion methods.
Crypt4GHInputStream - Class in no.uio.ifi.crypt4gh.stream
Crypt4GHInputStream that wraps existing InputStream.
Crypt4GHInputStream(InputStream, PrivateKey) - Constructor for class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream
Constructs Crypt4GHInputStream that wraps existing InputStream.
Crypt4GHInputStream(InputStream, DataEditList, PrivateKey) - Constructor for class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream
Constructs Crypt4GHInputStream that wraps existing InputStream with DataEditList.
Crypt4GHOutputStream - Class in no.uio.ifi.crypt4gh.stream
Crypt4GHOutputStream that wraps existing OutputStream.
Crypt4GHOutputStream(OutputStream, PrivateKey, PublicKey) - Constructor for class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
Constructs the Crypt4GHOutputStream by wrapping existing OutputStream.
Crypt4GHOutputStream(OutputStream, DataEditList, PrivateKey, PublicKey) - Constructor for class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
Constructs the Crypt4GHOutputStream by wrapping existing OutputStream with DataEditList included to a header.
Crypt4GHUtils - Class in no.uio.ifi.crypt4gh.util
A bunch of methods mostly for working with Crypt4GH headers.

D

decodeKey(String) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Decodes Base64 key string, surrounded by header and footer.
decrypt(SecretKey) - Method in interface no.uio.ifi.crypt4gh.pojo.EncryptableEntity
Decrypts the entity.
derivePublicKey(PrivateKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Derives X25519 public key from the given X25519 private key.

E

encodeKey(Key) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Extracts either scalar from the X25519 private key, or U from the X25519 public key.
encrypt(byte[], SecretKey) - Method in interface no.uio.ifi.crypt4gh.pojo.EncryptableEntity
Encrypts the entity.
EncryptableEntity - Interface in no.uio.ifi.crypt4gh.pojo
Crypt4GH entity that is supposed to be encrypted/decrypted.
END_CRYPT4GH_ENCRYPTED_PRIVATE_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Footer line text for private key file in Crypt4GH format
END_CRYPT4GH_PUBLIC_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Footer line text for public key file in Crypt4GH format
END_PRIVATE_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Footer line text for private key file in OpenSSL format
END_PUBLIC_KEY - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
Footer line text for public key file in OpenSSL format

F

flush() - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
Flushes the internal buffer before flushing the underlying stream.
flushBuffer() - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
 

G

generateDiffieHellmanSharedKey(PrivateKey, PublicKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates Diffie Hellman shared key from sender's X25519 private and recipient's X25519 public keys.
generateKeyPair() - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates X25519 key pair.
generatePrivateKey() - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates X25519 private key.
generateReaderSharedKey(PrivateKey, PublicKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates reader's shared key based on recipient's X25519 private and sender's X25519 public keys.
generateSessionKey() - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates ChaCha20 secret key.
generateWriterSharedKey(PrivateKey, PublicKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Generates writer's shared key based on sender's X25519 private and recipient's X25519 public keys.
getHeader() - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream
Gets header.
getHeader() - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
Gets header.
getInstance() - Static method in class no.uio.ifi.crypt4gh.util.Crypt4GHUtils
 
getInstance() - Static method in class no.uio.ifi.crypt4gh.util.KeyUtils
 
getInt(byte[]) - Static method in interface no.uio.ifi.crypt4gh.pojo.Crypt4GHEntity
Utility method to get little endian integer from byte array.
getLong(byte[]) - Static method in interface no.uio.ifi.crypt4gh.pojo.Crypt4GHEntity
Utility method to get little endian long from byte array.
getScalar(PrivateKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Extracts scalar from the X25519 private key as a byte array.
getU(PublicKey) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Extracts U from the X25519 public key as a byte array.

K

KeyUtils - Class in no.uio.ifi.crypt4gh.util
A bunch of methods for generating/constructing/reading/writing/deriving keys.

N

no.uio.ifi.crypt4gh - module no.uio.ifi.crypt4gh
 
no.uio.ifi.crypt4gh.pojo - package no.uio.ifi.crypt4gh.pojo
 
no.uio.ifi.crypt4gh.stream - package no.uio.ifi.crypt4gh.stream
 
no.uio.ifi.crypt4gh.util - package no.uio.ifi.crypt4gh.util
 

R

read() - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream
read(byte[], int, int) - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream
readCrypt4GHPrivateKey(byte[], char[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Reads Crypt4GH private key.
readPrivateKey(File, char[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Reads private key (OpenSSL or Crypt4GH format) file.
readPrivateKey(String, char[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Reads private key (OpenSSL or Crypt4GH format) file.
readPublicKey(File) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Reads public key (OpenSSL or Crypt4GH format) file.
readPublicKey(String) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Reads public key (OpenSSL or Crypt4GH format).

S

serialize() - Method in interface no.uio.ifi.crypt4gh.pojo.Crypt4GHEntity
Serializes the entity to a byte array.
setRecipient(byte[], PrivateKey, PublicKey) - Method in class no.uio.ifi.crypt4gh.util.Crypt4GHUtils
Sets recipient to a header.
skip(long) - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHInputStream

W

write(int) - Method in class no.uio.ifi.crypt4gh.stream.Crypt4GHOutputStream
Writes a byte to an internal buffer and flushes this buffer when it get's full.
writeCrypt4GHKey(File, Key, char[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Writes the key to a file in Crypt4GH format.
writeCrypt4GHKey(Writer, Key, char[]) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Writes the key using a supplied writer in Crypt4GH format.
writeOpenSSLKey(File, Key) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Writes the key to a file in OpenSSL format.
writeOpenSSLKey(Writer, Key) - Method in class no.uio.ifi.crypt4gh.util.KeyUtils
Writes the key using a supplied writer in OpenSSL format.

X

X25519 - Static variable in class no.uio.ifi.crypt4gh.util.KeyUtils
A constant string with the value "X25519"
A B C D E F G K N R S W X 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form