airsidemobile / JOSESwift

A framework for the JOSE standards JWS, JWE, and JWK written in Swift.
https://www.airsidemobile.com
Apache License 2.0
202 stars 113 forks source link

Reorganize source files into directories #344

Closed daniel-moh closed 2 months ago

daniel-moh commented 2 months ago

Moves some files around to improve organization. No code changes.

Basic structure is:

JOSESwift/Sources
├── Common
│   ├── ASN1DEREncoding.swift
│   ├── ASN1DERParsing.swift
│   ├── AlgorithmExtensions.swift
│   ├── Algorithms.swift
│   ├── DataConvertible.swift
│   ├── DataExtensions.swift
│   ├── Deserializer.swift
│   ├── JOSEHeader.swift
│   ├── JOSESwiftError.swift
│   ├── Payload.swift
│   └── Serializer.swift
├── CryptoPrimitives
│   ├── AESCBC
│   │   └── AES.swift
│   ├── AESGCM
│   │   └── AESGCM.swift
│   ├── EC
│   │   ├── EC.swift
│   │   └── ECDHKeyAgreement.swift
│   ├── HMAC
│   │   └── HMAC.swift
│   ├── PBES2
│   │   └── PBES2.swift
│   ├── RSA
│   │   └── RSA.swift
│   ├── Randomness
│   │   └── SecureRandom.swift
│   └── SHA
│       └── Thumbprint.swift
├── JWE
│   ├── Compression
│   │   ├── Compressor.swift
│   │   └── DeflateWrapper.swift
│   ├── ContentEncryption
│   │   ├── ContentEncryption.swift
│   │   └── DefaultCrypto
│   │       ├── AESCBC
│   │       │   └── AESCBCEncryption.swift
│   │       └── AESGCM
│   │           └── AESGCMEncryption.swift
│   ├── Decrypter.swift
│   ├── Encrypter.swift
│   ├── JWE.swift
│   ├── JWEHeader.swift
│   └── KeyManagement
│       ├── DefaultCrypto
│       │   ├── AESKW
│       │   │   └── AESKeyWrappingMode.swift
│       │   ├── DirectEncryption
│       │   │   └── DirectEncryptionMode.swift
│       │   ├── EC
│       │   │   └── ECKeyEncryption.swift
│       │   ├── PBES2
│       │   │   └── PBES2KeyEncryptionMode.swift
│       │   └── RSA
│       │       └── RSAKeyEncryptionMode.swift
│       └── KeyManagementMode.swift
├── JWK
│   ├── EC
│   │   ├── DataECPrivateKey.swift
│   │   ├── DataECPublicKey.swift
│   │   ├── ECKeyCodable.swift
│   │   ├── ECKeyPair.swift
│   │   ├── ECKeys.swift
│   │   ├── SecKeyECPrivateKey.swift
│   │   └── SecKeyECPublicKey.swift
│   ├── JWK.swift
│   ├── JWKExtensions.swift
│   ├── JWKParameters.swift
│   ├── JWKSet.swift
│   ├── JWKSetCodable.swift
│   ├── RSA
│   │   ├── DataRSAPublicKey.swift
│   │   ├── RSAKeyCodable.swift
│   │   ├── RSAKeys.swift
│   │   └── SecKeyRSAPublicKey.swift
│   └── Symmetric
│       ├── DataSymmetricKey.swift
│       ├── SymmetricKeyCodable.swift
│       └── SymmetricKeys.swift
└── JWS
    ├── DefaultCrypto
    │   ├── EC
    │   │   ├── ECSigner.swift
    │   │   └── ECVerifier.swift
    │   ├── HMAC
    │   │   ├── HMACSigner.swift
    │   │   └── HMACVerifier.swift
    │   └── RSA
    │       ├── RSASigner.swift
    │       └── RSAVerifier.swift
    ├── JWS.swift
    ├── JWSHeader.swift
    ├── Signer.swift
    └── Verifier.swift

33 directories, 64 files
sonarcloud[bot] commented 2 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
26 New Code Smells (required ≤ 0)
8 New Critical Issues (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

daniel-moh commented 2 months ago

Sonar issues are valid but out of scope. This PR just moved files around.