1 21 22 package org.apache.derby.iapi.services.crypto; 23 24 import java.security.Key ; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 47 48 public interface CipherProvider 49 { 50 51 69 int encrypt(byte[] cleartext, int offset, int length, 70 byte[] ciphertext, int outputOffset) 71 throws StandardException; 72 73 91 int decrypt(byte[] ciphertext, int offset, int length, 92 byte[] cleartext, int outputOffset) 93 throws StandardException; 94 95 96 99 public int getEncryptionBlockSize(); 100 } 101 | Popular Tags |