Skip to content

Commit

Permalink
Release 1.1.89.2
Browse files Browse the repository at this point in the history
Release 1.1.89.2 (#10)
  • Loading branch information
antkorczak authored May 10, 2023
2 parents b4a205e df207bf commit bddcda6
Show file tree
Hide file tree
Showing 895 changed files with 4,757 additions and 3,261 deletions.
24 changes: 11 additions & 13 deletions CryptoCore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -40,15 40,16 @@ buildscript {
}

plugins {
alias(libs.plugins.lombok)
alias(libs.plugins.gradle.versions)
alias(libs.plugins.modernizer)
id 'java-library'
id 'idea'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

ext['junit-jupiter.version'] = "${junit5_version}"

jar {
archiveBaseName.set('CryptoCore')
archiveVersion.set(getBuildVersion())
Expand Down Expand Up @@ -76,17 77,14 @@ repositories {

dependencies {
implementation project(':Utils')
implementation "org.bouncycastle:bcpkix-jdk15on:${bouncycastle_version}"
implementation "org.slf4j:slf4j-api:${slf4j_version}"

testImplementation "org.junit.jupiter:junit-jupiter-api:${junit5_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit5_version}"
testImplementation "org.junit.platform:junit-platform-launcher:${junit5_platform_version}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junit5_version}"
testImplementation "org.junit.platform:junit-platform-runner:${junit5_platform_version}"
testImplementation "org.mockito:mockito-inline:${mockito_version}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockito_version}"
testImplementation "com.github.valfirst:slf4j-test:${slf4j_test_version}"
implementation libs.bouncycastle
implementation libs.slf4j.api

testImplementation platform(libs.junit.bom)
testImplementation libs.junit.jupiter
testImplementation libs.bundles.mockito
testImplementation libs.slf4j.test
}

def getBuildVersion() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -34,7 34,6 @@
package com.intel.bkp.crypto.curve;

import com.intel.bkp.crypto.CryptoUtils;
import com.intel.bkp.crypto.constants.CryptoConstants;
import com.intel.bkp.crypto.interfaces.ICurveSpec;
import com.intel.bkp.utils.ByteBufferSafe;
import com.intel.bkp.utils.PaddingUtils;
Expand All @@ -51,6 50,7 @@

import static com.intel.bkp.crypto.asn1.Asn1ParsingUtils.extractR;
import static com.intel.bkp.crypto.asn1.Asn1ParsingUtils.extractS;
import static com.intel.bkp.crypto.constants.CryptoConstants.EC_KEY;
import static com.intel.bkp.utils.HexConverter.fromHex;
import static com.intel.bkp.utils.HexConverter.toHex;

Expand Down Expand Up @@ -107,9 107,14 @@ public static CurvePoint fromPubKey(byte[] pointXY, CurveSpec curveSpec) {
return from(pointX, pointY, curveSpec);
}

public static CurvePoint fromPubKeyEncoded(byte[] encodedPublicKey)
throws NoSuchAlgorithmException, InvalidKeySpecException {
return from(CryptoUtils.toPublicEncodedBC(encodedPublicKey, EC_KEY));
}

public static CurvePoint fromPubKeyEncoded(byte[] encodedPublicKey, CurveSpec pointSpec)
throws NoSuchAlgorithmException, InvalidKeySpecException {
return from(CryptoUtils.toPublicEncodedBC(encodedPublicKey, CryptoConstants.EC_KEY), pointSpec);
return from(CryptoUtils.toPublicEncodedBC(encodedPublicKey, EC_KEY), pointSpec);
}

public static CurvePoint fromSignature(byte[] signature, ICurveSpec spec) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 3,7 @@
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
* Copyright 2020-2023 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
Loading

0 comments on commit bddcda6

Please sign in to comment.