Fix AES tests for helpers (#122)
This commit is contained in:
parent
973856d299
commit
934571ce56
2 changed files with 4 additions and 2 deletions
|
|
@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- `ManualAttachmentProcessor`: a new kind of attachment processor where the caller has to first allocate a buffer large enough for the whole data packet to be written to. It can be created with
|
- `ManualAttachmentProcessor`: a new kind of attachment processor where the caller has to first allocate a buffer large enough for the whole data packet to be written to. It can be created with
|
||||||
```processor, err := keyRing.NewManualAttachmentProcessor(estimatedSize, filename, dataBuffer)```.
|
```processor, err := keyRing.NewManualAttachmentProcessor(estimatedSize, filename, dataBuffer)```.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fix random failure in AES tests
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Updated the x/mobile fork and the build script to work with golang 1.16
|
- Updated the x/mobile fork and the build script to work with golang 1.16
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,7 @@ func TestAESEncryption(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = DecryptMessageWithPassword([]byte("Wrong passphrase"), ciphertext)
|
_, err = DecryptMessageWithPassword([]byte("Wrong passphrase"), ciphertext)
|
||||||
assert.EqualError(t, err, "gopenpgp: unable to decrypt message with password: "+
|
assert.NotNil(t, err)
|
||||||
"gopenpgp: error in reading password protected message: gopenpgp: wrong password in symmetric decryption")
|
|
||||||
|
|
||||||
decrypted, err := DecryptMessageWithPassword(passphrase, ciphertext)
|
decrypted, err := DecryptMessageWithPassword(passphrase, ciphertext)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue