Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ env:
jobs:
build:
name: Build RIA DigiDoc on macOS
runs-on: macos-26
runs-on: xcode-27
strategy:
matrix:
xcode:
- 26.6
- 27.1
platform:
- iOS
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
swift:
name: CodeQL (swift)
if: contains(github.repository, 'open-eid/RIA-DigiDoc-iOS')
runs-on: macos-26
runs-on: xcode-27
timeout-minutes: 120
permissions:
contents: read
Expand All @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
xcode:
- 26.6
- 27.1
platform:
- iOS
steps:
Expand Down
4 changes: 2 additions & 2 deletions Modules/CommonsLib/Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.3
// swift-tools-version: 6.4
// SPDX-FileCopyrightText: Estonian Information System Authority
// SPDX-License-Identifier: LGPL-2.1-or-later

Expand All @@ -18,7 +18,7 @@ let package = Package(
.library(name: "CommonsLibMocks", targets: ["CommonsLibMocks"])
],
dependencies: [
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 3, 2))
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 5, 0))
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
7 changes: 3 additions & 4 deletions Modules/ConfigLib/Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.3
// swift-tools-version: 6.4
// SPDX-FileCopyrightText: Estonian Information System Authority
// SPDX-License-Identifier: LGPL-2.1-or-later

Expand All @@ -18,8 +18,8 @@ let package = Package(
.library(name: "ConfigLibMocks", targets: ["ConfigLibMocks"])
],
dependencies: [
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 3, 2)),
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: .init(5, 12, 0)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 5, 0)),
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: .init(5, 12, 2)),
.package(path: "../CommonsLib"),
.package(path: "../UtilsLib"),
.package(path: "../Test/CommonsTestShared")
Expand Down Expand Up @@ -62,7 +62,6 @@ let package = Package(
"CommonsLib",
"UtilsLib",
"CommonsTestShared",
.product(name: "FactoryTesting", package: "Factory"),
.product(name: "CommonsLibMocks", package: "commonslib")
]
)
Expand Down
12 changes: 7 additions & 5 deletions Modules/CryptoLib/Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.3
// swift-tools-version: 6.4
// SPDX-FileCopyrightText: Estonian Information System Authority
// SPDX-License-Identifier: LGPL-2.1-or-later

Expand All @@ -20,12 +20,15 @@ let package = Package(
.library(name: "CryptoLibMocks", targets: ["CryptoLibMocks"])
],
dependencies: [
.package(url: "https://github.com/filom/ASN1Decoder", exact: .init(1, 10, 0)),
.package(url: "https://github.com/filom/ASN1Decoder", exact: .init(1, 10, 1)),
.package(url: "https://github.com/leif-ibsen/BigInt.git", exact: .init(1, 24, 0)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 3, 2)),
.package(url: "https://github.com/hmlongco/Factory", exact: .init(3, 5, 0)),
.package(path: "../ConfigLib"),
.package(path: "../CommonsLib"),
.package(url: "https://github.com/open-eid/nfc-iOS-lib.git", revision: "1b7bb16d684f248a4fba74a3413f9e5d7c0e5f4a"),
.package(
url: "https://github.com/open-eid/nfc-iOS-lib.git",
revision: "1b7bb16d684f248a4fba74a3413f9e5d7c0e5f4a"
),
.package(path: "../UtilsLib")
],
targets: [
Expand Down Expand Up @@ -105,7 +108,6 @@ let package = Package(
"CryptoObjCWrapper",
"CommonsLib",
"UtilsLib",
.product(name: "FactoryTesting", package: "Factory"),
.product(name: "CommonsLibMocks", package: "commonslib")
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,104 +8,102 @@
*/

#ifndef OPENSSL_AES_H
# define OPENSSL_AES_H
# pragma once
#define OPENSSL_AES_H
#pragma once

# include <openssl/macros.h>
# ifndef OPENSSL_NO_DEPRECATED_3_0
# define HEADER_AES_H
# endif
#include <openssl/macros.h>
#ifndef OPENSSL_NO_DEPRECATED_3_0
#define HEADER_AES_H
#endif

# include <openssl/opensslconf.h>
#include <openssl/opensslconf.h>

# include <stddef.h>
# ifdef __cplusplus
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
# endif

# define AES_BLOCK_SIZE 16
#endif

# ifndef OPENSSL_NO_DEPRECATED_3_0
#define AES_BLOCK_SIZE 16

# define AES_ENCRYPT 1
# define AES_DECRYPT 0
#ifndef OPENSSL_NO_DEPRECATED_3_0

# define AES_MAXNR 14
#define AES_ENCRYPT 1
#define AES_DECRYPT 0

#define AES_MAXNR 14

/* This should be a hidden type, but EVP requires that the size be known */
struct aes_key_st {
# ifdef AES_LONG
#ifdef AES_LONG
unsigned long rd_key[4 * (AES_MAXNR + 1)];
# else
#else
unsigned int rd_key[4 * (AES_MAXNR + 1)];
# endif
#endif
int rounds;
};
typedef struct aes_key_st AES_KEY;

# endif
# ifndef OPENSSL_NO_DEPRECATED_3_0
#endif
#ifndef OPENSSL_NO_DEPRECATED_3_0
OSSL_DEPRECATEDIN_3_0 const char *AES_options(void);
OSSL_DEPRECATEDIN_3_0
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
AES_KEY *key);
AES_KEY *key);
OSSL_DEPRECATEDIN_3_0
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
AES_KEY *key);
AES_KEY *key);
OSSL_DEPRECATEDIN_3_0
void AES_encrypt(const unsigned char *in, unsigned char *out,
const AES_KEY *key);
const AES_KEY *key);
OSSL_DEPRECATEDIN_3_0
void AES_decrypt(const unsigned char *in, unsigned char *out,
const AES_KEY *key);
const AES_KEY *key);
OSSL_DEPRECATEDIN_3_0
void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
const AES_KEY *key, const int enc);
const AES_KEY *key, const int enc);
OSSL_DEPRECATEDIN_3_0
void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, const int enc);
size_t length, const AES_KEY *key,
unsigned char *ivec, const int enc);
OSSL_DEPRECATEDIN_3_0
void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
OSSL_DEPRECATEDIN_3_0
void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
OSSL_DEPRECATEDIN_3_0
void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num, const int enc);
OSSL_DEPRECATEDIN_3_0
void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num);
size_t length, const AES_KEY *key,
unsigned char *ivec, int *num);

/* NB: the IV is _two_ blocks long */
OSSL_DEPRECATEDIN_3_0
void AES_ige_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char *ivec, const int enc);
size_t length, const AES_KEY *key,
unsigned char *ivec, const int enc);
/* NB: the IV is _four_ blocks long */
OSSL_DEPRECATEDIN_3_0
void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key, const AES_KEY *key2,
const unsigned char *ivec, const int enc);
size_t length, const AES_KEY *key, const AES_KEY *key2,
const unsigned char *ivec, const int enc);
OSSL_DEPRECATEDIN_3_0
int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
unsigned char *out, const unsigned char *in,
unsigned int inlen);
unsigned char *out, const unsigned char *in,
unsigned int inlen);
OSSL_DEPRECATEDIN_3_0
int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
unsigned char *out, const unsigned char *in,
unsigned int inlen);
# endif

unsigned char *out, const unsigned char *in,
unsigned int inlen);
#endif

# ifdef __cplusplus
#ifdef __cplusplus
}
# endif
#endif

#endif
Loading
Loading