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); }
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; }
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; }