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

Update IKE #6

Merged
merged 33 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6c9251b
Update message.go and type.go
Aug 27, 2024
17d529a
Update decrypt and encrypt in security.go
Aug 28, 2024
666e82c
Add UT in security.go
Aug 28, 2024
b902794
Add sha256 and verifyIntegrity UT
Aug 29, 2024
cc8f1b4
Move security algo in internal folder to security folder
Aug 29, 2024
edac991
Modify IKESA and ChildSA transform types
Aug 29, 2024
1249413
Move types to message folder
Aug 29, 2024
e1a9e8a
Remove xfrm related code and modify ikeSA and childSA struct
Aug 29, 2024
e3766ce
Rename IKESA and ChildSA to IKESAKey and ChildSAKey
Aug 29, 2024
d9e0061
Remove logger and Remove priority in Algo struct
Aug 30, 2024
e7401d6
Modify encr init function name to NewCrypto
Sep 2, 2024
842edc9
Modify new ChildSAKey and IKESAKey function
Sep 2, 2024
cf70758
Pass Log as a parameter into the function in message.go
Sep 2, 2024
ec0650f
Move decrypt/encrypt related code to ike.go and add encode/decode fun…
Sep 3, 2024
c37759f
Add ike encode/decode UT
Sep 3, 2024
7f20dca
Fix lint error
Sep 3, 2024
43cd876
Modify NewIKESAKey function
Sep 3, 2024
83e1d68
Modify ESNType interface to ESN struct
Sep 3, 2024
2c893b2
Remove SPI in IKESAKey
Sep 4, 2024
84b606d
Modify ike decode to IkeMsgDecrypt due to application need to get IKE…
Sep 4, 2024
697410c
refactor codes
tim-ywliu Sep 6, 2024
31d6325
fix msg len check in GetSPI()
tim-ywliu Sep 6, 2024
1d57e26
add stringer for ikeSAKey
tim-ywliu Sep 6, 2024
ed3e517
Add parse IKE header function
Sep 11, 2024
720d048
Modify DecodeDecrypt function parameter
Sep 12, 2024
0a65e2a
Add UT in all IKE payload
Sep 12, 2024
f1a1290
Seperate IKE payload in message into an independent file
Sep 13, 2024
5bc2b12
Rename filename from Payload to payload in mesage folder
Sep 13, 2024
f90b68f
Modify IKESAKey String()
Sep 13, 2024
81e633a
Modify golangci and fix Gosec issue
Sep 16, 2024
e3a4e3d
Modify get TransfromID function to public function
Sep 16, 2024
21dc71d
Fix gosec issue
Sep 18, 2024
e4fb229
Fix golint error
Sep 18, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18' ]
go: ['1.21' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -v ./...
10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18' ]
go: [ '1.21' ]
steps:
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.45.2
version: v1.57.2

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
Loading
Loading