BN_SWAP(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… BN_SWAP β€” the OpenSSL manual, but make it make sense

okay so we're in the 3ossl corner of the OpenSSL docs, bestie, and today's main character is BN_swap β€” literally just two BIGNUMs trading places. that's it. that's the whole vibe. πŸŽ€


✨ NAME ✨

BN_swap β€” exchange BIGNUMs πŸ¦‹

like, actually exchange them. swap arc. trading-places era. πŸ‘‘

✨ SYNOPSIS ✨

#include <openssl/bn.h>

void BN_swap(BIGNUM *a, BIGNUM *b);

✨ DESCRIPTION ✨

so BN_swap() exchanges the values of a and b. πŸ’–

that's the sentence. that's the function. she's short, she's iconic, she does exactly one thing and she does it flawlessly β€” no cap. 🫢

✨ RETURN VALUES ✨

BN_swap() does not return a value. πŸ«₯

it's void, bestie β€” don't go looking for a status code, there isn't one, she just did the swap and dipped. πŸ’…

Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved. πŸ‘‘

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. πŸ“œ

fr fr read the license before you go using this β€” that part is not a vibe, it's a requirement. πŸ™ˆ

and that's the page!! 🌈 this lil beauty is from the OpenSSL 3.5.0 era, dated 2026-09-25, filed under BN_SWAP(3ossl) β€” mwah, go swap some numbers responsibly πŸ’œπŸŒΈ

πŸ“¦ where this page comes from