Skip to content

Commit

Permalink
Change PgpEncryptionOptions to Options
Browse files Browse the repository at this point in the history
  • Loading branch information
dinukaamarasinghe817 committed May 11, 2024
1 parent 78e3fb4 commit 557f72b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ballerina/encrypt_decrypt.bal
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public isolated function decryptAesGcm(byte[] input, byte[] key, byte[] iv, AesP
# + publicKeyPath - Path to the public key
# + options - PGP encryption options
# + return - Encrypted data or else a `crypto:Error` if the key is invalid
public isolated function encryptPgp(byte[] plainText, string publicKeyPath, *PgpEncryptionOptions options)
public isolated function encryptPgp(byte[] plainText, string publicKeyPath, *Options options)
returns byte[]|Error = @java:Method {
name: "encryptPgp",
'class: "io.ballerina.stdlib.crypto.nativeimpl.Encrypt"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/pgp_utils.bal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# + symmetricKeyAlgorithm - Specifies the symmetric key algorithm used for encryption
# + armor - Indicates whether ASCII armor is enabled for the encrypted output
# + withIntegrityCheck - Indicates whether integrity check is included in the encryption
public type PgpEncryptionOptions record {|
public type Options record {|
CompressionAlgorithmTags compressionAlgorithm = ZIP;
SymmetricKeyAlgorithmTags symmetricKeyAlgorithm = AES_256;
boolean armor = true;
Expand Down

0 comments on commit 557f72b

Please sign in to comment.