Package com.google.k2crypto.keyversions.AesKeyVersionProto

Examples of com.google.k2crypto.keyversions.AesKeyVersionProto.AesKeyVersionCore


    protected Builder withCore(KeyVersionCore kvCore)
        throws InvalidProtocolBufferException {
      super.withCore(kvCore);
     
      // Extract info from core
      AesKeyVersionCore core = kvCore.getExtension(AesKeyVersionCore.extension);
      this.matterVector(core.getMatter().toByteArray(), null);
     
      // valueOf()s below can fail if the mode/padding stored is unsupported
      this.mode(Mode.valueOf(core.getBlockMode().name()));
      this.padding(Padding.valueOf(core.getPadding().name()));
     
      return this;
    }
View Full Code Here

TOP

Related Classes of com.google.k2crypto.keyversions.AesKeyVersionProto.AesKeyVersionCore

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.