Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fine tune API changes #216

Merged
4 commits merged into from
Feb 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mark legacy context types as deprecated
  • Loading branch information
daniel-moh committed Feb 20, 2020
commit ef686a1d7c7c8a05f2d1d50e05308cde63adb48f
4 changes: 3 additions & 1 deletion JOSESwift/Sources/Decrypter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ extension Decrypter {
}
}

@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct DecryptionContext {
let header: JWEHeader
let encryptedKey: Data
Expand All @@ -112,7 +113,8 @@ public struct DecryptionContext {
let authenticationTag: Data
}

public struct SymmetricDecryptionContext {
@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricDecryptionContext {
let ciphertext: Data
let initializationVector: Data
let additionalAuthenticatedData: Data
Expand Down
2 changes: 2 additions & 0 deletions JOSESwift/Sources/Encrypter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ extension Encrypter {
}
}

@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct EncryptionContext {
let encryptedKey: Data
let ciphertext: Data
let authenticationTag: Data
let initializationVector: Data
}

@available(*, deprecated, message: "This type will be removed with the next major release.")
public struct SymmetricEncryptionContext {
let ciphertext: Data
let authenticationTag: Data
Expand Down