Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Dec 5, 2024
1 parent ddf783f commit 4e3958a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryptobin/elgamal/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (this ElGamal) Encrypt() ElGamal {
return this.EncryptBytes()
}

return this.EncryptBytes()
return this.EncryptASN1()
}

// 私钥解密
Expand All @@ -28,7 +28,7 @@ func (this ElGamal) Decrypt() ElGamal {
return this.DecryptBytes()
}

return this.DecryptBytes()
return this.EncryptASN1()
}

// ====================
Expand Down

0 comments on commit 4e3958a

Please sign in to comment.