All Downloads are FREE. Search and download functionalities are using the official Maven repository.

CMM_Compile.__default Maven / Gradle / Ivy

The newest version!
// Class __default
// Dafny class __default compiled into Java
package CMM_Compile;

import software.amazon.cryptography.keystore.internaldafny.types.*;
import software.amazon.cryptography.materialproviders.internaldafny.types.*;
import AwsArnParsing_Compile.*;
import AwsKmsMrkMatchForDecrypt_Compile.*;
import AwsKmsUtils_Compile.*;
import KeyStoreErrorMessages_Compile.*;
import KmsArn_Compile.*;
import Structure_Compile.*;
import KMSKeystoreOperations_Compile.*;
import DDBKeystoreOperations_Compile.*;
import CreateKeys_Compile.*;
import CreateKeyStoreTable_Compile.*;
import GetKeys_Compile.*;
import AwsCryptographyKeyStoreOperations_Compile.*;
import software.amazon.cryptography.keystore.internaldafny.*;
import AlgorithmSuites_Compile.*;
import Materials_Compile.*;
import Keyring_Compile.*;
import MultiKeyring_Compile.*;
import AwsKmsMrkAreUnique_Compile.*;
import Constants_Compile.*;
import MaterialWrapping_Compile.*;
import CanonicalEncryptionContext_Compile.*;
import IntermediateKeyWrapping_Compile.*;
import EdkWrapping_Compile.*;
import ErrorMessages_Compile.*;
import AwsKmsKeyring_Compile.*;
import StrictMultiKeyring_Compile.*;
import AwsKmsDiscoveryKeyring_Compile.*;
import DiscoveryMultiKeyring_Compile.*;
import AwsKmsMrkDiscoveryKeyring_Compile.*;
import MrkAwareDiscoveryMultiKeyring_Compile.*;
import AwsKmsMrkKeyring_Compile.*;
import MrkAwareStrictMultiKeyring_Compile.*;
import LocalCMC_Compile.*;
import StormTracker_Compile.*;
import software.amazon.cryptography.internaldafny.StormTrackingCMC.*;
import CacheConstants_Compile.*;
import AwsKmsHierarchicalKeyring_Compile.*;
import AwsKmsRsaKeyring_Compile.*;
import EcdhEdkWrapping_Compile.*;
import RawECDHKeyring_Compile.*;
import AwsKmsEcdhKeyring_Compile.*;
import RawAESKeyring_Compile.*;
import RawRSAKeyring_Compile.*;

@SuppressWarnings({"unchecked", "deprecation"})
public class __default {
  public __default() {
  }
  public static boolean RequiredEncryptionContextKeys_q(Wrappers_Compile.Option>> requiredEncryptionContextKeys, software.amazon.cryptography.materialproviders.internaldafny.types.EncryptionMaterials encryptionMaterials)
  {
    return ((dafny.Function2>>, software.amazon.cryptography.materialproviders.internaldafny.types.EncryptionMaterials, Boolean>)(_0_requiredEncryptionContextKeys, _1_encryptionMaterials) -> dafny.Helpers.Quantifier(((_0_requiredEncryptionContextKeys).UnwrapOr(dafny.DafnySequence.>_typeDescriptor(UTF8.ValidUTF8Bytes._typeDescriptor()), dafny.DafnySequence.> empty(UTF8.ValidUTF8Bytes._typeDescriptor()))).UniqueElements(), true, ((_forall_var_0_boxed0) -> {
      dafny.DafnySequence _forall_var_0 = ((dafny.DafnySequence)(java.lang.Object)(_forall_var_0_boxed0));
      dafny.DafnySequence _2_k = (dafny.DafnySequence)_forall_var_0;
      if (UTF8.ValidUTF8Bytes._Is(_2_k)) {
        return !(((_0_requiredEncryptionContextKeys).UnwrapOr(dafny.DafnySequence.>_typeDescriptor(UTF8.ValidUTF8Bytes._typeDescriptor()), dafny.DafnySequence.> empty(UTF8.ValidUTF8Bytes._typeDescriptor()))).contains(_2_k)) || (((_1_encryptionMaterials).dtor_requiredEncryptionContextKeys()).contains(_2_k));
      } else {
        return true;
      }
    }))).apply(requiredEncryptionContextKeys, encryptionMaterials);
  }
  public static boolean EncryptionContextComplete(software.amazon.cryptography.materialproviders.internaldafny.types.DecryptMaterialsInput input, software.amazon.cryptography.materialproviders.internaldafny.types.DecryptionMaterials decryptionMaterials)
  {
    dafny.DafnyMap, ? extends dafny.DafnySequence> _0_reproducedEncryptionContext = ((input).dtor_reproducedEncryptionContext()).UnwrapOr(dafny.DafnyMap., dafny.DafnySequence>_typeDescriptor(UTF8.ValidUTF8Bytes._typeDescriptor(), UTF8.ValidUTF8Bytes._typeDescriptor()), dafny.DafnyMap.fromElements());
    return ((dafny.Function2, ? extends dafny.DafnySequence>, software.amazon.cryptography.materialproviders.internaldafny.types.DecryptionMaterials, Boolean>)(_1_reproducedEncryptionContext, _2_decryptionMaterials) -> dafny.Helpers.Quantifier(((_1_reproducedEncryptionContext).keySet()).Elements(), true, ((_forall_var_0_boxed0) -> {
      dafny.DafnySequence _forall_var_0 = ((dafny.DafnySequence)(java.lang.Object)(_forall_var_0_boxed0));
      dafny.DafnySequence _3_k = (dafny.DafnySequence)_forall_var_0;
      return !(((_1_reproducedEncryptionContext).keySet()).>contains(_3_k)) || ((((_2_decryptionMaterials).dtor_encryptionContext()).>contains(_3_k)) && ((((dafny.DafnySequence)(java.lang.Object)(((_2_decryptionMaterials).dtor_encryptionContext()).get(_3_k)))).equals(((dafny.DafnySequence)(java.lang.Object)((_1_reproducedEncryptionContext).get(_3_k))))));
    }))).apply(_0_reproducedEncryptionContext, decryptionMaterials);
  }
  public static boolean ReproducedEncryptionContext_q(software.amazon.cryptography.materialproviders.internaldafny.types.DecryptMaterialsInput input) {
    dafny.DafnyMap, ? extends dafny.DafnySequence> _0_reproducedEncryptionContext = ((input).dtor_reproducedEncryptionContext()).UnwrapOr(dafny.DafnyMap., dafny.DafnySequence>_typeDescriptor(UTF8.ValidUTF8Bytes._typeDescriptor(), UTF8.ValidUTF8Bytes._typeDescriptor()), dafny.DafnyMap.fromElements());
    return ((dafny.Function2, ? extends dafny.DafnySequence>, software.amazon.cryptography.materialproviders.internaldafny.types.DecryptMaterialsInput, Boolean>)(_1_reproducedEncryptionContext, _2_input) -> dafny.Helpers.Quantifier(((_1_reproducedEncryptionContext).keySet()).Elements(), true, ((_forall_var_0_boxed0) -> {
      dafny.DafnySequence _forall_var_0 = ((dafny.DafnySequence)(java.lang.Object)(_forall_var_0_boxed0));
      dafny.DafnySequence _3_k = (dafny.DafnySequence)_forall_var_0;
      return !((((_1_reproducedEncryptionContext).keySet()).>contains(_3_k)) && (((_2_input).dtor_encryptionContext()).>contains(_3_k))) || ((((dafny.DafnySequence)(java.lang.Object)(((_2_input).dtor_encryptionContext()).get(_3_k)))).equals(((dafny.DafnySequence)(java.lang.Object)((_1_reproducedEncryptionContext).get(_3_k)))));
    }))).apply(_0_reproducedEncryptionContext, input);
  }
  @Override
  public java.lang.String toString() {
    return "CMM._default";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy