Skip to content

Instantly share code, notes, and snippets.

@stepanhruda
Forked from alloy/crypto.c
Last active August 29, 2015 14:26
Show Gist options
  • Save stepanhruda/05d0dc0411dea8d706f5 to your computer and use it in GitHub Desktop.
Save stepanhruda/05d0dc0411dea8d706f5 to your computer and use it in GitHub Desktop.
int _ccec_x963_import_priv_size(int arg0) {
rdi = arg0;
rax = 192;
if (rdi <= 198) {
if (rdi <= 144) {
if (rdi != 73) {
if (rdi == 85) {
rax = 224;
}
else {
if (rdi == 97) {
rax = 256;
}
else {
rax = 0;
}
}
}
}
else {
if (rdi == 145) {
rax = 384;
}
else {
rax = 0;
}
}
}
else {
if (rdi == 199) {
rax = 521;
}
else {
rax = 0;
}
}
return rax;
}
int _ccec_x963_import_pub_size(int arg0) {
rdi = arg0;
rax = 192;
if (rdi <= 132) {
if (rdi <= 96) {
if (rdi != 49) {
if (rdi == 57) {
rax = 224;
}
else {
if (rdi == 65) {
rax = 256;
}
else {
rax = 0;
}
}
}
}
else {
if (rdi == 97) {
rax = 384;
}
else {
rax = 0;
}
}
}
else {
if (rdi == 133) {
rax = 521;
}
else {
rax = 0;
}
}
return rax;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment