FileDocCategorySizeDatePackage
ICryptoAgent.javaAPI Docjid3 0.462153Sun Feb 06 18:11:26 GMT 2005org.blinkenlights.jid3.crypt

ICryptoAgent

public interface ICryptoAgent
author
paul

Fields Summary
Constructors Summary
Methods Summary
public byte[]decrypt(byte[] abyEncryptedData, byte[] abyEncryptionData)
Decrypt an array of bytes.

param
abyEncryptedData an array of encrypted bytes
param
abyEncryptionData an array of bytes which are used to decrypt the encrypted data
return
an array of unencrypted bytes

public byte[]encrypt(byte[] abyRawData, byte[] abyEncryptionData)
Encrypt an array of bytes.

param
abyRawData an array of bytes which are to be encrypted
param
abyEncryptionData an array of bytes which are used to encrypt the raw data
return
an array of encrypted bytes

public java.lang.StringgetOwnerIdentifier()
Get the owner identifier for this encryption method. Each encrypted frame in a tag has its encryption method represented by a unique owner identifier. This value much match the owner identifier of a crypto agent to be used for decryption.

return
a string containing the owner identifier