Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1030462 // BouncyCastle + web-push Include

JavaX fragment (include)

lib 1011969 lib 1011968 // bouncycastle
static LS _stickyLibs_bouncyCastle = ll(#1011969, #1011968);

lib 1400450 // web-push-5.1.1

import org.bouncycastle.jce.ECNamedCurveTable;
import org.bouncycastle.jce.interfaces.ECPrivateKey;
import org.bouncycastle.jce.interfaces.ECPublicKey;
import org.bouncycastle.jce.spec.ECNamedCurveParameterSpec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;

svoid registerBouncyCastle {
  Provider provider = Security.getProvider(org.bouncycastle.jce.provider.BouncyCastleProvider.PROVIDER_NAME);
  if (provider == null) {
    print("Registering BouncyCastle");
    Security.addProvider(new BouncyCastleProvider);
    provider = Security.getProvider(org.bouncycastle.jce.provider.BouncyCastleProvider.PROVIDER_NAME);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030462
Snippet name: BouncyCastle + web-push Include
Eternal ID of this version: #1030462/4
Text MD5: 2bdace83c9002595afbb761fd2b218ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-21 17:45:59
Source code size: 787 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 155 / 294
Version history: 3 change(s)
Referenced in: [show references]