Exemplo n.º 1
0
 bool IKms.RemoveKeyring(IKeyring keyring)
 {
     foreach (IKeyring kr in _Keyrings)
     {
         if (kr.Name == keyring.Name)
         {
             _Keyrings.Remove(kr);
             return(true);
         } //if (kr.Name == keyring.Name)
     }
     return(false);
 }
Exemplo n.º 2
0
        IKeyring IKms.AddKeyring(IKeyring keyring)
        {
            foreach (IKeyring kr in _Keyrings)
            {
                if (kr.Name == keyring.Name)
                {
                    _Keyrings.Remove(kr);
                    break;
                } //if (kr.Name == keyring.Name)
            }
            _Keyrings.Add(keyring);

            return(keyring);
        }
 public LegacyHmac256Encrypter(LegacyHmac256Cipher cipher, IKeyring keyring, string signingKeyName)
 {
     _cipher         = cipher;
     _keyring        = keyring;
     _signingKeyName = signingKeyName;
 }
Exemplo n.º 4
0
 public LegacyRsaDecrypter(IKeyring keyring, IEncryptionAlgorithm cipher)
 {
     _keyring = keyring;
     _cipher  = cipher;
 }
 public Decrypter(IEncryptionAlgorithm cipher, IKeyring keyring)
 {
     _cipher  = cipher;
     _keyring = keyring;
 }
 public AeadAes256CbcHmacSha512Provider(IEncryptionAlgorithm cipher, IKeyring keyring)
 {
     _cipher  = cipher;
     _keyring = keyring;
 }
 public Aes256CbcHmacSha256Provider(IKeyring keyring, IEncryptionAlgorithm cipher)
 {
     _keyring = keyring;
     _cipher  = cipher;
 }