Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:9c8d24ea5fd8507b90c3695c21a1c67e";
Open this in zkREPL →
This file can be included into other zkREPLs with include "gist:9c8d24ea5fd8507b90c3695c21a1c67e";
extern crate curve25519_dalek; | |
extern crate rand; | |
use curve25519_dalek::constants; | |
use curve25519_dalek::traits::MultiscalarMul; | |
use curve25519_dalek::scalar::Scalar; | |
use curve25519_dalek::edwards::EdwardsPoint; | |
use curve25519_dalek::edwards::VartimeEdwardsPrecomputation; | |
use curve25519_dalek::traits::VartimePrecomputedMultiscalarMul; |
I hereby claim:
To claim this, I am signing this object:
package org.code.tlsdecrypt; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; | |
import org.bouncycastle.crypto.InvalidCipherTextException; | |
import org.bouncycastle.crypto.engines.AESEngine; | |
import org.bouncycastle.crypto.engines.AESFastEngine; | |
import org.bouncycastle.crypto.modes.AEADBlockCipher; |
diff --git a/samplecode/hello-rust/enclave/src/lib.rs b/samplecode/hello-rust/enclave/src/lib.rs | |
index ed49b2a..f23800e 100644 | |
--- a/samplecode/hello-rust/enclave/src/lib.rs | |
+++ b/samplecode/hello-rust/enclave/src/lib.rs | |
@@ -43,6 +43,9 @@ use std::vec::Vec; | |
use std::io::{self, Write}; | |
use std::slice; | |
+use std::time::*; | |
+use std::untrusted::time::SystemTimeEx; |
#include <stdlib.h> | |
#include <stdio.h> | |
int login() { | |
int accessLevel = 0xff; | |
char username[16]; | |
char password[32]; | |
printf("Username (max 15 characters): "); | |
gets(username); | |
printf("Password (max 31 characters): "); |
kasndkadaksdbsakjb |
CHeck | |
checklasda | |
akdsja |