diff --git a/sig/yaml_vault.rbs b/sig/yaml_vault.rbs index 2b12a5d..78b137e 100644 --- a/sig/yaml_vault.rbs +++ b/sig/yaml_vault.rbs @@ -2,31 +2,35 @@ module YamlVault class Main @yaml: String @keys: Array[String] - @prefix: String - @suffix: String - @passphrase: String - @sign_passphrase: String - @salt: String - @cipher: String + @prefix: String? + @suffix: String? + @passphrase: String? + @sign_passphrase: String? + @salt: String? + @cipher: String? @key_len: Integer @signature_key_len: Integer @digest: String - @aws_kms_key_id: String - @aws_region: String - @aws_access_key_id: String - @aws_secret_access_key: String - @aws_profile: String - @gcp_kms_resource_id: String - @gcp_credential_file: String + @aws_kms_key_id: String? + @aws_region: String? + @aws_access_key_id: String? + @aws_secret_access_key: String? + @aws_profile: String? + @gcp_kms_resource_id: String? + @gcp_credential_file: String? @cryptor: _Cryptor + def initialize: (String, Array[String], ?String?, ?String?, ?String?, ?passphrase: String?, ?sign_passphrase: String?, ?salt: String?, ?cipher: String, ?key_len: Integer, ?signature_key_len: Integer, ?digest: String, + ?aws_kms_key_id: String?, ?aws_region: String?, ?aws_access_key_id: String?, ?aws_secret_access_key: String?, ?aws_profile: String?, + ?gcp_kms_resource_id: String?, ?gcp_credential_file: String?) -> void + def encrypt: () -> untyped def decrypt: () -> untyped def encrypt_hash: () -> Hash[String, Object] def decrypt_hash: () -> Hash[String, Object] def encrypt_yaml: () -> String def decrypt_yaml: () -> String - def get_cryptor: (String) -> _Cryptor + def get_cryptor: (String?) -> _Cryptor module ValueCryptor class KMS