Package freenet.crypt

Examples of freenet.crypt.EncryptedRandomAccessBuffer


        LockableRandomAccessBuffer raf = factory.makeRAF(paddedSize);
        if(secret != null) {
            if(realSize != paddedSize)
                raf = new PaddedRandomAccessBuffer(raf, realSize);
            try {
                raf = new EncryptedRandomAccessBuffer(TempBucketFactory.CRYPT_TYPE, raf, secret, true);
            } catch (GeneralSecurityException e) {
                Logger.error(this, "Cannot create encrypted tempfile: "+e, e);
            }
        }
        return raf;
View Full Code Here


          LockableRandomAccessBuffer ret = diskRAFFactory.makeRAF(paddedSize);
          if(encrypt) {
              if(realSize != paddedSize)
                  ret = new PaddedRandomAccessBuffer(ret, realSize);
              try {
                  ret = new EncryptedRandomAccessBuffer(CRYPT_TYPE, ret, secret, true);
              } catch (GeneralSecurityException e) {
                  Logger.error(this, "Cannot create encrypted tempfile: "+e, e);
              }
          }
          return ret;
View Full Code Here

TOP

Related Classes of freenet.crypt.EncryptedRandomAccessBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.