mirror of
https://github.com/danbulant/jose
synced 2026-05-19 04:18:52 +00:00
style: lib/jwe/encrypt.js
This commit is contained in:
parent
e0a2d57926
commit
eb482a8ab8
1 changed files with 5 additions and 1 deletions
|
|
@ -190,7 +190,11 @@ class Encrypt {
|
|||
let aad
|
||||
if (this._aad) {
|
||||
final.aad = base64url.encode(this._aad)
|
||||
aad = Buffer.concat([Buffer.from(final.protected || ''), Buffer.from('.'), Buffer.from(final.aad)])
|
||||
aad = Buffer.concat([
|
||||
Buffer.from(final.protected || ''),
|
||||
Buffer.from('.'),
|
||||
Buffer.from(final.aad)
|
||||
])
|
||||
} else {
|
||||
aad = Buffer.from(final.protected || '')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue